Scroll restoration not working with Infinite Queries in React Table. #2493
Unanswered
BalasubramaniM
asked this question in
General
Replies: 1 comment 1 reply
-
react-query doesn't do anything specific for scroll restoration. It's just because the data comes from the cache, it is instantly displayed on the screen, so the browser can restore properly. If you have a codesandbox reproduction of your situation, I can take a closer look at it. |
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.
-
I'm currently using InfiniteQueries for onScroll pagination in my React Table V7 and everything works as expected.
But when I get into some other page (in detail page from list view) and when I come back, my scroll position is lost in the Table and it comes back to the top. In the Scroll Restoration docs it is mentioned that
My cache time is 5 minutes in this case. Can anyone help me here?
https://react-query.tanstack.com/guides/infinite-queries#_top
Beta Was this translation helpful? Give feedback.
All reactions