router
router copied to clipboard
`beforeLoad` does not run when resetting from `errorComponent`
Describe the bug
beforeLoad does not run when resetting from errorComponent
Your Example Website or App
https://stackblitz.com/edit/github-v42bzy?file=src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
- See the error component
- Press the reset button within the errorComponent
-
beforeLoaddoes not run, resulting in the errorComponent not being displayed again.
Expected behavior
beforeLoad should also run when resetting from errorComponent
Screenshots or Videos
No response
Platform
- OS: [macOS]
- Browser: [Chrome]
- Version: [125.0]
Additional context
No response