How to integrate Algolia React Hooks with Tanstack Table v8? (just a global filter is enough)
I am trying to figure out how to put together the search hooks from
react-instantsearch-hooks-web
package, into the example of filtering https://tanstack.com/table/v8/docs/examples/react/filters
The Algolia hooks provide something like:
import { useHits } from 'react-instantsearch-hooks-web'
const { hits } = useHits()
But when I use that hits
on:state: {
rowSelection,
hits
},
from useReactTable
it's not working.
While I think it's pretty straightforward to solve this using @tanstack/match-sorter-utils
I would like to avoid installing another package to my app. And since I'm already using Algolia to search the +3K list of users, would be nice to be able to do it.React Table Filters Example | TanStack Table Docs
An example showing how to implement Filters in React Table
0 Replies