lundegaard / react-union

⚛️ Collection of tools allowing to React.js applications to run on specific server-side environments such as Content Management Systems (CMS) or Portals.
http://react-union.org/
MIT License
94 stars 13 forks source link

Redux boilerplate #13

Open tommmyy opened 6 years ago

tommmyy commented 6 years ago

Show how to:

gpalsingh commented 4 years ago

Hi, any update on this issue?

jamescoq commented 4 years ago

Hi not yet. But you can have a look here https://github.com/tommmyy/finland-react-union/tree/03-namespaced-redux to get some inspiration.

gpalsingh commented 4 years ago

Hi not yet. But you can have a look here https://github.com/tommmyy/finland-react-union/tree/03-namespaced-redux to get some inspiration.

Thanks for the help. Now I'm stuck on figuring out how to add redux store persistence. Simple using redux-persist didn't work out. I also tried using isPersistent: true as an option for withReducers but that didn't work either. What am I missing?

Edit: I fixed it by combining the reducers first using combineReducers so the error was on my end. It still would be nice to have a guide showing how to achieve code-splitting while persisting state.

I was able to persist the global state but still dont't seem to be able to make the widget state work with it.