Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement scroll restoration in paginated lists #4

Open
damianstasik opened this issue Jan 4, 2022 · 0 comments
Open

Implement scroll restoration in paginated lists #4

damianstasik opened this issue Jan 4, 2022 · 0 comments

Comments

@damianstasik
Copy link
Owner

damianstasik commented Jan 4, 2022

Scroll restoration should be already handled by React Query out of the box, but if the data was GC'ed or the cache expired the queries should be configured in a way that allows them to fetch required data starting from the first "page" up to the current page (set with page query string).

The page parameter could be passed with initialData, but that has to be tested if useInfiniteQuery will fetch all previous pages.

@damianstasik damianstasik moved this to Todo in Discoverify Mar 19, 2023
@damianstasik damianstasik moved this from Todo to Backlog in Discoverify Mar 19, 2023
@damianstasik damianstasik moved this from Backlog to Todo in Discoverify Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant