sandiiarov / use-events

🍭 Event hooks
https://sandiiarov.github.io/use-events
492 stars 16 forks source link

Make useWindowResize safe for server-side render #168

Open jemeric opened 5 years ago

jemeric commented 5 years ago

The problem is that this hook as it is cannot be safely used in server-side rendering and thus will break isomorphic applications.

I've opened a PR to demonstrate a possible solution for this: https://github.com/sandiiarov/use-events/pull/167