ErrorBoundary causes hydration mismatch and style flicker on non-existent routes #10734
Unanswered
DanielRamosAcosta
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
Link to StackBlitz
I’ve started a new personal project with Remix, and I've added error handling following the Error Handling documentation.
I created a custom
ErrorBoundary
component as described. But when I navigate to a non-existent route (e.g.,/not-exists
), the page briefly renders with the correct styles, then re-renders without them.Console output:
What’s strange is that this is a completely new project, set up exactly as described in the official documentation for error handling.
I’m not sure whether this is a Remix bug or an issue with the documentation itself.
System Info
Used Package Manager
npm
Expected Behavior
The
ErrorBoundary
page should render correctly without losing styles, and hydration should complete without errors or warnings.Actual Behavior
Beta Was this translation helpful? Give feedback.
All reactions