-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[BUG] Shown Warning : useLayoutEffect does nothing on the server... (When choose antd UI Framework) #1493
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hey @illusi03 , |
Thank you for response this issue @omeraplak |
Hey @illusi03 , |
@omeraplak hello, it seems in recent versions of refine this issue pop up again, i think it may have to do with nextjs-router components import ErrorComponent which in turn use a useLayoutEffect |
Hey @duong98, |
Describe the bug
Fresh installation with Antd , but shown Warning
useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Not showing warning
Screenshots

Desktop (please complete the following information):
Additional context
Thankyou very much
The text was updated successfully, but these errors were encountered: