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(reactivity): should trigger collection's write-function correctly on non-reactive keys #1992

Merged
merged 1 commit into from
Sep 15, 2020
Merged

fix(reactivity): should trigger collection's write-function correctly on non-reactive keys #1992

merged 1 commit into from
Sep 15, 2020

Conversation

Picknight
Copy link
Contributor

Fix the following case:

let map = new Map()
map.set = function(key) {
  console.log('trigger set')
  return Map.prototype.set.call(map, key)
}

let proxy = reactive(map)
proxy.set('k', 'foo')  // Nothing is printed

@yyx990803 yyx990803 merged commit fcf9b2c into vuejs:master Sep 15, 2020
@Picknight Picknight deleted the picknight/fix-collectionHandler branch September 15, 2020 06:40
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