T
TanStack3y ago
xenophobic-harlequin

React Query with Conjunction of React Table

I am using both of this packages in a long time, for some time I noticed that when the 'query' fetches for a new data (for example when a user leaves to scope of the browser and then returns) the query data which is immediately transfers to the table resulting in a re-render, which basically means that the table loses is state - that resulting the problem, that if a user was one page 2 for example after the re-fetching the site will flicker and the user will be one page 1. What could I do to solve this issue?
1 Reply
flat-brown
flat-brown3y ago
Make sure your query doesn’t have some dynamic values that change when move between page/scope.

Did you find this page helpful?