Navigation from ErrorBoundary doesn't work when using clientLoader #9613
Unanswered
dziugas-liaudinskas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm experiencing an issue with the
clientLoader
andErrorBoundary
in myroot.tsx
file. TheclientLoader
hashydrate
set totrue
, and theErrorBoundary
contains a<Link>
that navigates to the Home Page ('/').Steps to Reproduce:
ErrorBoundary
to go back to the Home Page ('/').Expected Behavior:
The URL should change to the Home Page ('/') and the home page content should be displayed.
Actual Behavior:
The URL changes to the correct one ('/'), but the Error component is still displayed.
Additional Information:
If I comment out
clientLoader.hydrate = true
, the scenario works correctly. However, I need thehydrate
property to be set to true.Demo Case:
Here's a demo case where you can see the issue in action.
Beta Was this translation helpful? Give feedback.
All reactions