Skip to content

Conversation

CodinCat
Copy link
Contributor

Currently reassigning value to a reactive property will cause the reactivity becomes invalid. (the proxy wrapper is removed during reassigning)

Reproduce: https://codesandbox.io/s/brave-dawn-cg56l

This change simply keeps the reactive property as is. Not sure if this is the correct way to fix this.

@yyx990803
Copy link
Member

Thanks, very nice catch, although it's better to pre-branch the setter so that we don't have to do double isReactive checks on every set. See 0a4f306

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