Skip to content
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

Open
divdavem opened this issue Apr 19, 2024 · 0 comments
Open

SSR hydration warnings in react #715

divdavem opened this issue Apr 19, 2024 · 0 comments

Comments

@divdavem
Copy link
Member

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 in useDirective.
@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant