T
TanStack3y ago
fascinating-indigo

React query with paginator.

What should I use if for example I have a list of items and they are paginated (see image). At the moment I would display 5 items per page (bubble) Preferably I would want to load all the data of each visible bubble. In this case 1 2 3 4 17 18 19 20
No description
1 Reply
optimistic-gold
optimistic-gold3y ago
Prefetching | TanStack Query Docs
If you're lucky enough, you may know enough about what your users will do to be able to prefetch the data they need before it's needed! If this is the case, you can use the prefetchQuery method to prefetch the results of a query to be placed into the cache:

Did you find this page helpful?