adam-cowley / use-neo4j

React Hooks for Neo4j
MIT License
73 stars 21 forks source link

Neo4jProvider should not assume `windows` global #12

Open stefanprobst opened 2 years ago

stefanprobst commented 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!