-
-
Notifications
You must be signed in to change notification settings - Fork 823
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
Route component flicker when using beforeLoad #3070
Comments
I got the same issue too |
Quite frustrated with this, but it seems like no one cares, or it’s just something that naturally happens. I don’t understand; it’s been over two weeks already. |
I've ran into this before and have found the solution from this issue to work. |
@gianlazaro |
Which project does this relate to?
Router
Describe the bug
Watch the video, when I use beforeLoad, my Route Component flickers. This is a small example, but I encounter the same issue in my main project. The login screen or dashboard screen after login flickers when reloading if I use beforeLoad. This does not happen with react-router.
Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-3482dvgb?file=src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
Add beforeLoad in Route component.
Expected behavior
I don’t want the Route Component to flicker.
Screenshots or Videos
Screen.Recording.2024-12-26.at.22.49.19.mov
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: