Refresh table on invalidate query with react query #183
Unanswered
Moaaz-Hajat
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Is your data being memoized? If so, make sure the dependency array is correct. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I am using the example that was in the docs for react query, I have a form that is rendered on the page that I call the ExampleWithReactQueryProvider component. When I click submit on the form, I want to refresh the data with queryClient.invalidateQueries("table-data") . But the data does not refresh. I think it has something to do with when we define the key in the useQuery that includes the filter state variables etc. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi
How would one refresh the table when invalidating a query using a table with react query? When I try to invalidate the query with react-query the table does not re-render/refresh.
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions