Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix state after returning new state object from reduce. #645

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JorgenEvens
Copy link

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.

@JorgenEvens
Copy link
Author

I've added node 5.11 to the list of node engines to test on Travis-CI as Babel does not seem to be to happy with node v6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant