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

Doesn't support SSR #6

Open
0xsven opened this issue May 21, 2019 · 0 comments · May be fixed by #7
Open

Doesn't support SSR #6

0xsven opened this issue May 21, 2019 · 0 comments · May be fixed by #7

Comments

@0xsven
Copy link

0xsven commented May 21, 2019

Tried to use this with next.js, which has SSR out-of-the-box.

I am getting the window is not defined error. Consider running code that uses window from useEffect hooks, so they only run on the client.

evenchange4 added a commit to evenchange4/window-scroll-position that referenced this issue May 31, 2019
@evenchange4 evenchange4 linked a pull request May 31, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant