Replies: 2 comments
-
I can take a look at the codesandbox example if you provide it. I think it would also make for a neat example :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
ok, my example was very complex because of the use of useEffect to setGlobalFilter and hideColumns on load. this simple example works: https://codesandbox.io/s/react-table-query-75jkb3 after seeing this example I succeeded refactoring my table to use the query inside |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
for some reason when I use
useQuery
anduseTable
in the same component I get infinite renders and the app crashes. for now I putuseQuery
in a container component that then renders the table only once data is available (behinedif (query.data) ...
). This works, but I need to create a wrapping component (and name it! :) )I'll try to get a codesandbox as an example. but I was wondering how to community works with both libraries and what are the best practices for this?
edit: I tried searching both libraries issues and discussions but didn't find a similar question
Beta Was this translation helpful? Give feedback.
All reactions