[v8] something is wrong with my global filter #4229
Unanswered
nacarvajalatfluid
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a slightly modified implementation of the react-table v8 filters: https://tanstack.com/table/v8/docs/examples/react/filters
The original seem to use a custom filter function to filter the table globally but it requires another library that i don't want to include, the documentation mentions built-in functions that i can use, however the table stops filtering as soon as i change it, i tried not including the
globalFilterFn
as well as setting it toglobalFilterFn: "includesString"
which is one of the built-in functions i mentioned but nothing has worked so far.here is my code:
a link to CodeSanbox with it: https://codesandbox.io/s/long-monad-652jcm?file=/src/main.tsx
I'm still very inexperienced in React and even more with typescript so maybe i'm missing something obvious.
am i misinterpreting the docs, maybe custom function are always necessary when building a global filter?
I also made the question in StackOverflow: https://stackoverflow.com/questions/73128553/global-filter-in-react-table-v8-isnt-working/73128660#73128660
Beta Was this translation helpful? Give feedback.
All reactions