briebug / ngrx-auto-entity

NgRx Auto-Entity: Simplifying Reactive State
https://briebug.gitbook.io/ngrx-auto-entity/
Other
66 stars 12 forks source link

Auto-entity meta-reducer does not pass next state to next reducer #170

Closed jrista closed 3 years ago

jrista commented 3 years ago

When the auto-entity meta-reducer handles an auto-entity action, instead of generating a next state that is then passed on to the next reducer/meta-reducer in the chain, it simply returns the next state directly which ends propagation.

While the auto-entity meta reducer is able to manage its own state, this prevents any opportunity for the end developer to handle auto-entity actions in their own reducers to manage additional state.

Recommend generating a next state and passing that to the next reducer/meta-reducer, so that all reducers have the opportunity to reduce all auto-entity actions.