Replies: 1 comment
-
For performance reasons you may prefer to use a bidirectional infinite query. |
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.
-
Hello,
I've tried looking in the documentation and here, but I haven't found anything similar to what I'm trying to achieve. I have a table with an infinite scroll and I would like to store the current last page in a url query parameter. When the page is refreshed (or if someone clicks on a link with a query parameter indicating a page), I retrieve the query parameter and would like to force the useInfiniteQuery hook to retrieve all pages that precede that number (i.e. retrieve all content). For example, as a user I will scroll and get to /something/special?page=4. If I do a refresh, I will want to load pages 1, 2, 3 and 4 and display them the same as if the user scrolled to page 4. Thank you very much for your advice.
Beta Was this translation helpful? Give feedback.
All reactions