-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v7 - Scripts|Links hydratation error in ErrorBoundary #12400
Comments
The ErrorBoundary doesn't need the full HTML content, as it will pull from the root Layout component. Adding |
@timdorr, Just tried with layout! thanks it resolves a part, but not all. Now I have the same issue than remix-run/remix#9144 See last comment of this issue for more information and an example to reproduce the issue
|
@timdorr in fact I Just tested again The issue is the same if you go in layout or out layout Please reopen as it is an issue I think |
This is happening to me, too
|
I'm using React Router as a...
framework
Reproduction
Just add
<Scripts />
in ErrorBoundary in root.tsx then run dev, example:You will have this hydratation error:
Which causes
Uncaught Error: Hydration failed because the initial UI does not match what was rendered on the server.
My use case is to use mantine in error ErrorBoundary which requires scripts (https://mantine.dev/guides/remix/)
System Info
Used Package Manager
pnpm
Expected Behavior
Should not have hydratation error
Actual Behavior
hydratation error provoking mantine not working
Seem to have same behavior with in
The text was updated successfully, but these errors were encountered: