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

Layout Effect Warning #48

Closed
aj-ya opened this issue Sep 18, 2022 · 1 comment
Closed

Layout Effect Warning #48

aj-ya opened this issue Sep 18, 2022 · 1 comment

Comments

@aj-ya
Copy link
Contributor

aj-ya commented Sep 18, 2022

Warning:

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 avoid this, useLayoutEffect should only be used in components that render exclusively on the client

Root Issue: facebook/react#14927

Details about useLayoutEffect:

Possible Solutions ->

@aj-ya
Copy link
Contributor Author

aj-ya commented Sep 18, 2022

Looks like it has already been solved with the @jengui/utils useLayoutEffect ... just wasn't used in the accordion 😃

@aj-ya aj-ya closed this as completed Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant