Open stefanprobst opened 2 years ago
currently, the Neo4jProvider assumes window is available (when trying to read from localStorage). this should either be wrapped with typeof window !== 'undefined', or moved into a useEffect, so it will work in frameworks like next.js. thanks!
Neo4jProvider
window
localStorage
typeof window !== 'undefined'
useEffect
currently, the
Neo4jProvider
assumeswindow
is available (when trying to read fromlocalStorage
). this should either be wrapped withtypeof window !== 'undefined'
, or moved into auseEffect
, so it will work in frameworks like next.js. thanks!