combineCrossSliceReducers is very similar to combineSectionReducers but with a small twist:
While combineSectionReducers passes the original entireState as a third parameter to each reducer, combineCrossSliceReducers passes the updated state which is the result of all previous reducers.
combineCrossSliceReducers is very similar to combineSectionReducers but with a small twist:
While combineSectionReducers passes the original
entireState
as a third parameter to each reducer, combineCrossSliceReducers passes the updated state which is the result of all previous reducers.Example:
but with combineCrossSliceReducers: