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

Consider exposing root reducer on store #15

Open
lastmjs opened this issue Jun 12, 2020 · 0 comments
Open

Consider exposing root reducer on store #15

lastmjs opened this issue Jun 12, 2020 · 0 comments

Comments

@lastmjs
Copy link
Owner

lastmjs commented Jun 12, 2020

Right now there is no official way to get to the generated root reducer when using createObjectStore. We can provide a custom reducer that is combined with the root reducer, but we can't get to the root reducer itself. My use case for this is performing tasks after the state has been updated, for example persisting the entire state to local storage. I can do it in a listener, but it might be nice to create reducer that encapsulates this functionality, a pattern I've used elsewhere

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

1 participant