Store#replaceReducer()

replaceReducer(nextReducer)

Replaces the reducer currently used by the store to calculate the state.

It is an advanced API. You might need this if your app implements code splitting, and you want to load some of the reducers dynamically. You might also need this if you implement a hot reloading mechanism for Redux.

Arguments

  1. reducer (Function) The next reducer for the store to use.
doc_Redux
2016-11-27 05:58:38
Comments
Leave a Comment

Please login to continue.