-
Notifications
You must be signed in to change notification settings - Fork 12
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
SSR hydration warnings in react #715
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using
useDirective
in react with a directive that runs server-side and adds some attributes, the generated markup on the server does not match the generated markup on the client (as seen by react).As part of #698, to avoid the hydration warning raised by react, I had initially added
suppressHydrationWarning
inuseDirective
.@quentinderoubaix suggested to remove it and I followed his suggestion, but now we have warnings in development mode when using AgnosUI components with SSR.
Should we solve this by simply adding back
suppressHydrationWarning
or should we find a better solution?The text was updated successfully, but these errors were encountered: