Open jemeric opened 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
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