-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support for server side rendering #27
Comments
I second this request! I would like to use this in nextjs. |
any update on this? |
@Swizec I have updated the PR to use |
Any reason why this hasn't been merged yet? |
Also, I've added a comment to the above PR, as the code isn't entirely correct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can use a flag named isSSR and use useEffect hook instead of useLayoutEffect.
https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
The text was updated successfully, but these errors were encountered: