react-use icon indicating copy to clipboard operation
react-use copied to clipboard

useHash is not SSR compatible

Open kristian240 opened this issue 5 years ago • 3 comments

What is the current behavior?

Error window is undefined is 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:

Just use useHash() on SSR project.

What is the expected behavior?

If there isn't window object use some default values.

kristian240 avatar May 06 '20 07:05 kristian240

Same issue, still not merged/fixed.

fabien avatar Apr 03 '21 15:04 fabien

+1

marek-baranowski avatar Jun 21 '21 20:06 marek-baranowski

Still an issue

l-portet avatar May 07 '24 17:05 l-portet