Vite Remix Hydration issues with antd-mobile #9186
Unanswered
typytypytypy
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.
-
I have recently upgraded to remix v2 and vite. I'm having an issue with hydration, getting this error:
Warning: Expected server HTML to contain a matching <style> in <head>.
After digging in, I can see that it is antd-mobile styles that are getting added into the head in a <style> block. But, I'm not sure why this is happening.
I'm importing the styles in root.tsx
And I'm using named imports for the components, ex:
import { Badge } from "antd-mobile/es/components/badge/badge";
I've seen some other discussions about hydration issues with MUI (here) and I'm not sure if this is related or different?
Other Info:
Beta Was this translation helpful? Give feedback.
All reactions