amcdnl/ngrx-actions

Unexpected state mutation in reducers

DerekSchmid opened this issue · 0 comments

I have created a sample project that demonstrates an issue I have encountered in one work projects. I am using a meta-reducer in order to reset the store state. The expected result is to have the initial state set, but one of the boolean values in the state is unexpectedly flipped.

I provided a nearly identical second store with the traditional ngrx implementation of the reducer and this problem does not exist. I have been looking for a solution, but have not had luck.

Here is the project: https://github.com/DerekSchmid/ngrx-actions-bug