Skip to content
Discussion options

You must be logged in to vote

I found that Vite HMR doesn't work for CSS if you have hydration errors. Remix and React 18.2 have issues with hydration if you have browser extensions installed that modify the DOM.

I find that installing React 18.3 Canary fixes the hydration problem. Even Next.js uses canary so I don't think that's a concern.

See my Remix+Vite template for guidance.

https://github.com/kiliman/remix-vite-template

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tombohub
Comment options

Answer selected by tombohub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants