router icon indicating copy to clipboard operation
router copied to clipboard

`beforeLoad` does not run when resetting from `errorComponent`

Open Zebeqo opened this issue 1 year ago • 0 comments

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

  1. See the error component
  2. Press the reset button within the errorComponent
  3. beforeLoad does 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

Zebeqo avatar May 28 '24 09:05 Zebeqo