Skip to content

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