-
When I change css module it doesn't reload. Is that normal or a bug? |
Beta Was this translation helpful? Give feedback.
Answered by
kiliman
Feb 18, 2024
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tombohub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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