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
exportfunctioninjectReducer(key,reducer,force=false){// If already set, do nothing.if(has(store.injectedReducers,key)||force)return;set(store.injectedReducers,key,reducer);store.replaceReducer(combineReducersRecurse(store.injectedReducers));}
What is the purpose of the force parameter?
If injectedReducers has the reducer key, it won't replace it
If we force it by settings force to true, it won't replace it either.
Should not the force parameter set to true replace the reducer even if injectedReducers has it?
The text was updated successfully, but these errors were encountered:
Hey there,
I see in the source code:
What is the purpose of the
force
parameter?If
injectedReducers
has the reducer key, it won't replace itIf we force it by settings
force
totrue
, it won't replace it either.Should not the
force
parameter set to true replace the reducer even ifinjectedReducers
has it?The text was updated successfully, but these errors were encountered: