Open
Description
Describe the bug
As described in the title there are two issues I've faced when an error is thrown inside stringifyParams
.
- The
defaultErrorComponent
is rendered in stead of the providederrorComponent
on the route or parent route. - The app breaks completely (= blank page → not displaying
ErrorComponent
) when landing on the route that throws an error instringifyParams
)
Your Example Website or App
Steps to Reproduce the Bug or Issue
- Go to this Stackblitz
- Navigate to the "Nested about"-page to see the app break.
- Now refresh the preview window and notice that the entire app is blank (even the content that lives outside the RouterProvider).
Expected behavior
- On 2. I expected to see the content of the errorComponent defined in
nested/index.tsx
,nested/route.tsx
orindex.tsx
- On 3. I expected to see the same errorComponent after refreshing the page
Screenshots or Videos
Screen.Recording.2024-06-26.at.15.15.14.mov
Platform
- OS: [e.g. macOS]
- Browser: Seen in Edge 124, Safari 17.3 & Firefox 127
Additional context
If you need more info let me know!