-
Notifications
You must be signed in to change notification settings - Fork 30
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
Warning: Did not expect server HTML to contain a <path> in <svg>. #22
Comments
I'm guessing you are following the |
Actually, I just cloned the starter repo and run |
Well, that makes it easier to look into. Thanks 😄 For whoever looks into this first: that warning is issued when React first mounts/hydrates against server side code but is unable to match 1:1 the server DOM with DOM generated client-side. One quick example would be: HTML from server
and a React component
Identical! Except the React component renders without any white space: A quick glance at this error makes me think the server-rendered icon isn't the empty one, but then on first pass within the browser the icon set hasn't loaded yet and React starts with the empty icon, no longer matching the SSR DOM. |
Hey, is there a solution for this ? |
The text was updated successfully, but these errors were encountered: