After returning a new state object from a reduce method there are now two state objects being used by the store. The one stored on model.state and the one stored on the AltStore instance.
The easiest way to see this is by checking whether the state passed into the reduce method is the same as that available onthis ( the model as reduce is called on it ). I would expect it to be, but it is not.
After returning a new state object from a reduce method there are now two state objects being used by the store. The one stored on
model.state
and the one stored on theAltStore
instance.The easiest way to see this is by checking whether the state passed into the
reduce
method is the same as that available onthis
( the model as reduce is called on it ). I would expect it to be, but it is not.