Struggling with Typescript + setGlobalFilter #3682
Unanswered
mikemorton
asked this question in
Q&A
Replies: 1 comment
-
Free stackoverflow karma if you know the answer and want to answer there as well: https://stackoverflow.com/questions/70911185/how-does-react-table-v7-7-9-work-in-typescript-with-global-filtering |
Beta Was this translation helpful? Give feedback.
0 replies
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
react-table
that is working nicely in typescript.I would like to add global filtering. If I simply add the plugin hook, it compiles:
But if I try to add the
setGlobalFilter
option, I get a compiler error:I have
"@types/react-table": "^7.7.9"
in my dev-dependencies and can confirm that it can find those types. It's not clear to me why it won't allow me to use setGlobalFilter after I pass in the useGlobalFilter plugin/hook.Beta Was this translation helpful? Give feedback.
All reactions