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

Route component flicker when using beforeLoad #3070

Open
hoangtrung99 opened this issue Dec 26, 2024 · 0 comments
Open

Route component flicker when using beforeLoad #3070

hoangtrung99 opened this issue Dec 26, 2024 · 0 comments

Comments

@hoangtrung99
Copy link

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

  • OS: MacOS
  • Browser: Arc Browser
  • Version: 1.92.3

Additional context

No response

@hoangtrung99 hoangtrung99 changed the title Route component flash when using beforeLoad Route component flicker when using beforeLoad Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant