You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a usecase where I have some "Higher-Order redux store" that wouldwrap a store's currentReducer via a custom combineReducers and then replace the new reducer through the store's replaceReducer.
The text was updated successfully, but these errors were encountered:
I'm not sure I understand the problem. Higher order store (aka "store enhancer" in our docs) takes a createStore and returns a createStore. This means it has full access to createStore arguments (including the reducer) and can wrap it before passing to the next function. You can look here for an example (at the very end of the file is a store enhancer that wraps the reducer): https://github.com/gaearon/redux-devtools/blob/master/src/instrument.js
Can
currentReducer
be exposed?https://github.com/rackt/redux/blob/c5d9a8a11897ea558c348e02eaf76038563d57b9/src/createStore.js#L38
I have a usecase where I have some "Higher-Order redux store" that wouldwrap a store's
currentReducer
via a customcombineReducers
and then replace the new reducer through the store'sreplaceReducer
.The text was updated successfully, but these errors were encountered: