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

Support for server side rendering #27

Open
nishanBende opened this issue Jan 22, 2020 · 5 comments
Open

Support for server side rendering #27

nishanBende opened this issue Jan 22, 2020 · 5 comments

Comments

@nishanBende
Copy link

We can use a flag named isSSR and use useEffect hook instead of useLayoutEffect.
https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85

@sorensenjg
Copy link

I second this request! I would like to use this in nextjs.

@kevinkashou
Copy link

any update on this?

@nishanBende
Copy link
Author

@Swizec I have updated the PR to use typeof window to determine SSR or CSR instead of adding a new flag.

@timohermans
Copy link

Any reason why this hasn't been merged yet?

@timohermans
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants