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

Redux boilerplate

Open tommmyy opened this issue 7 years ago • 3 comments

Show how to:

  • unify the state through all widgets
  • manage multiple instances of the same widget

tommmyy avatar Feb 16 '18 08:02 tommmyy

Hi, any update on this issue?

gpalsingh avatar Nov 18 '19 14:11 gpalsingh

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.

jamescoq avatar Nov 18 '19 19:11 jamescoq

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.

gpalsingh avatar Nov 27 '19 05:11 gpalsingh