Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redux boilerplate #13

Open
tommmyy opened this issue Feb 16, 2018 · 3 comments
Open

Redux boilerplate #13

tommmyy opened this issue Feb 16, 2018 · 3 comments
Assignees

Comments

@tommmyy
Copy link
Collaborator

tommmyy commented Feb 16, 2018

Show how to:

  • unify the state through all widgets
  • manage multiple instances of the same widget
@tommmyy tommmyy self-assigned this Feb 16, 2018
@tommmyy tommmyy changed the title [react-union] Redux boilerplate Redux boilerplate Apr 5, 2018
@gpalsingh
Copy link

Hi, any update on this issue?

@jamescoq
Copy link
Collaborator

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
Copy link

gpalsingh commented Nov 27, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants