Replies: 1 comment 2 replies
-
@dtinth Pretty sure you can take your entry.client.tsx and do a renderRoot instead of hydrateRoot. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using MUI in a Remix SPA app I’m developing.
I found that when our user has some Chrome extensions installed, hydration would fail, leading to errors like this and styles not working.
When hydration is working properly, it would look like this:
This “gotcha” is documented in Remix’s docs:
However, it isn’t practical for us to ask our users to always use our app in incognito mode. Each user may have different extensions installed, and that’s out of our control.
In order to avoid SSR hydration-related headache, is it possible to tell Remix to not hydrate the HTML, and instead, do something like what Create React App does, i.e., mounting into
#root
without hydration?Beta Was this translation helpful? Give feedback.
All reactions