-
Notifications
You must be signed in to change notification settings - Fork 114
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
window is not defined (SSR) #827
Comments
1 task
Yes, I'll fix that later this day. |
Fixed in 4.0.3 |
@JohannesKlauss I'm still getting an issue when running server-side because of the usage of |
nicksrandall
added a commit
to nicksrandall/react-hotkeys-hook
that referenced
this issue
Nov 8, 2022
This will prevent React from complaining when `useLayoutEffect` is run on server. See JohannesKlauss#827
Closed
This should be fixed with version 4.0.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would it be possible to make this hook SSR compatible by wrapping this fn in a guard to only run on the client?
react-hotkeys-hook/src/isHotkeyPressed.ts
Line 42 in cc8aeed
The text was updated successfully, but these errors were encountered: