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

[Bug]: revalidate (from useRevalidator hook) causes page twitching effect while scrolling the page with <ScrollRestoration /> component #12157

Open
DimaAmega opened this issue Oct 18, 2024 · 0 comments
Labels

Comments

@DimaAmega
Copy link

DimaAmega commented Oct 18, 2024

What version of React Router are you using?

6.27.0

Steps to Reproduce

Actually i was trying to setup page with long table (like scrollable page) that constantly refresh data from loader every n ms/s by calling revalidate(). It works, but using revalidate with <ScrollRestoration /> while scrolling the page causes page twitching.
Without <ScrollRestoration /> component on the page everything is working fine, so i believe this is the bug

Minimal example here:
https://stackblitz.com/edit/vitejs-vite-go7kak?file=src%2Fmain.tsx

Expected Behavior

Screen.Recording.2024-10-18.at.22.01.19.mov

Actual Behavior

Screen.Recording.2024-10-18.at.22.01.39.mov
@DimaAmega DimaAmega added the bug label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant