-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Describe the bug
When adding beforeLoad to a route (even an empty one), the router gets mounted and then displays a white page for approx. 400ms before the actual page is rendered.
Your Example Website or App
https://stackblitz.com/github/tanstack/router/tree/main/examples/react/quickstart-file-based
Steps to Reproduce the Bug or Issue
- Fork the file-based QuickStart example on StackBlitz.
- Add an
beforeLoad: () => {}to any page - I chose the about page. - Go to the page you changed and reload the page in the browser.
Expected behavior
Simply adding the beforeLoad option should not materially change load times.
Screenshots or Videos
router.mp4
Platform
- OS: macOS Sonoma
- Browser: Arc
- Version: 1.56.0
Additional context
No response
r253hmdryou, uap-dev, Patadam, rude-seagull and raiyansarker
Metadata
Metadata
Assignees
Labels
No labels