You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using useOrientation in an SSR app it causes the error window is undefined to be thrown.
Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than react-use. Paste the link to your JSFiddle or CodeSandbox example below:
Use useOrientation in an SSR project
What is the expected behaviour?
If there isn't window object use some default values.
The text was updated successfully, but these errors were encountered:
What is the current behaviour?
When using
useOrientation
in an SSR app it causes the errorwindow is undefined
to be thrown.Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than react-use. Paste the link to your JSFiddle or CodeSandbox example below:
Use
useOrientation
in an SSR projectWhat is the expected behaviour?
If there isn't window object use some default values.
The text was updated successfully, but these errors were encountered: