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

Lazy initial state for page visible hook

Open mdarens opened this issue 6 years ago • 0 comments

Using this hook in the client app bundle for a gatsby site causes build errors if the module is statically imported, as it tries to reference properties on document. Using lazy state initialization may fix this. It may not! Thanks for your time!

mdarens avatar Mar 20 '19 23:03 mdarens