MCPcopy
hub / github.com/reduxjs/redux / replaceReducer

Method replaceReducer

src/types/store.ts:156–156  ·  view source on GitHub ↗

* Replaces the reducer currently used by the store to calculate the state. * * 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. * * @pa

(nextReducer: Reducer<S, A>)

Source from the content-addressed store, hash-verified

154 * @param nextReducer The reducer for the store to use instead.
155 */
156 replaceReducer(nextReducer: Reducer<S, A>): void
157
158 /**
159 * Interoperability point for observable/reactive libraries.

Callers 10

store.tsFile · 0.80
replaceReducerFunction · 0.80
replaceReducerExtenderFunction · 0.80
createPersistEnhancerFunction · 0.80
finalHelmersonExampleFunction · 0.80
configureStoreFunction · 0.80
configureStoreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected