NoriginMedia / react-spatial-navigation

DEPRECATED. HOC-based Spatial Navigation. NEW Hooks version is available here: https://github.com/NoriginMedia/norigin-spatial-navigation
MIT License
226 stars 64 forks source link

Error when Server Side Rendering #94

Closed stuartflanagan closed 3 years ago

stuartflanagan commented 3 years ago

Describe the bug Server Side Rendering and Static Builds fail with window is undefined

To Reproduce Render Component that utilises withFocusable on an environment without the window object

Expected behavior All operations that require window should not run and component should render on the server without issue.

Screenshots

Screen Shot 2021-06-26 at 10 00 27 pm

Additional context This issue was fixed

asgvard commented 3 years ago

Closing as fixed by #95, will be part of the next release on Monday 28th