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

using replaceReducer in module #348

Closed
rt2zz opened this issue Jul 28, 2015 · 2 comments
Closed

using replaceReducer in module #348

rt2zz opened this issue Jul 28, 2015 · 2 comments

Comments

@rt2zz
Copy link

rt2zz commented Jul 28, 2015

I am contemplating having https://github.com/rt2zz/redux-persist use replaceReducer to implement a "auto rehydration" feature. Basically it would apply a higher order reducer behind the scenes to do some custom handling on rehydration actions.

The question: is it safe / idiomatic to use replaceReducer outside of development tools / hot reloading?

@gaearon
Copy link
Contributor

gaearon commented Jul 28, 2015

Better not to rely on them. They're a temporary escape hatch and I foresee we'll have a better solution soon after 1.0 ships.

@gaearon
Copy link
Contributor

gaearon commented Jul 31, 2015

Let's continue the discussion in #350.

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

2 participants