jhonnymichel / react-hookstore

A state management library for react using the bleeding edge hooks feature

Home Page:https://codesandbox.io/s/r58pqonkop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

server side rendering support?

pencilcheck opened this issue · comments

Getting errors such as ReferenceError: window is not defined when running with nextjs with ssr enabled, is there a way to get around it?

Btw, the "window" usage seems to be added by webpack, a simple tweak of webpack config should be able to eliminate that.

@pencilcheck good catch, I'll fix this tomorrow, hope you're not getting too let down by it

Nah it’s ok. I just copied the file and use it as a local lib for now which is not ideal but it works until you fix it.

@pencilcheck just updated the lib and version 1.2.1 solves the window is not defined error. Would you try it out?

Wow, thanks for update. It worked.