Closed nhunzaker closed 5 years ago
This commit fixes a bug where toggling an action would not invalidate snapshot cache state, resulting in an incorrect state:
repo.addDomain('test', { getInitialState() { return true } }) let action = repo.reset({ test: false }) action.toggle() expect(repo).toHaveState('test', true) action.toggle() expect(repo).toHaveState('test', false) // This failed
The solution is to track disabled action state as a part of the snapshot, just like the status and payload field.
Resolves: https://github.com/vigetlabs/microcosm/issues/525
This commit fixes a bug where toggling an action would not invalidate snapshot cache state, resulting in an incorrect state:
The solution is to track disabled action state as a part of the snapshot, just like the status and payload field.
Resolves: https://github.com/vigetlabs/microcosm/issues/525