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

Adjust mapState helper to refer to actual state #528

Merged
merged 2 commits into from
Dec 17, 2016

Conversation

ktsn
Copy link
Member

@ktsn ktsn commented Dec 17, 2016

I noticed that the local state in the mapState helper will not be updated sometimes.
e.g. when using replaceState (https://jsfiddle.net/vx5092oa/)

This is because it refers to state option object in each module rather than the actual state tree.

I added state property in the local context that refers the state sub-tree. Also it can simplify module registration a little :)

/ping @yyx990803

@yyx990803 yyx990803 merged commit 81c35d4 into vuejs:dev Dec 17, 2016
@ktsn ktsn deleted the adjust-map-state-helper branch January 4, 2017 14:44
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.

2 participants