You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The onLoad event will not be triggered by the router object when the page is loaded for the first time. However, the onLoad event is correctly triggered when switching to the routing page later.
The issue should be visible on the first load, with the NProgress progress bar spinning at the top, because the onLoad event was not triggered
Clicking the Home or About links on the top to switch routes will end the progress bar normally, because the router object successfully triggered the onLoad event
To reproduce the issue again, you can click the refresh icon above
Expected behavior
The onLoad event is correctly triggered on the first load.
Screenshots or Videos
No response
Platform
OS: macOS
Browser: Chrome
Version: 1.112.17
Additional context
No response
The text was updated successfully, but these errors were encountered:
Which project does this relate to?
Router
Describe the bug
The
onLoad
event will not be triggered by therouter
object when the page is loaded for the first time. However, theonLoad
event is correctly triggered when switching to the routing page later.Your Example Website or App
https://stackblitz.com/edit/tanstack-router-cooeyhbd?file=src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
NProgress
progress bar spinning at the top, because theonLoad
event was not triggeredHome
orAbout
links on the top to switch routes will end the progress bar normally, because therouter
object successfully triggered theonLoad
eventExpected behavior
The onLoad event is correctly triggered on the first load.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: