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

refactor(reactivity): simplify if condition #1002

Merged
merged 2 commits into from
Apr 20, 2020
Merged

Conversation

limichange
Copy link
Contributor

No description provided.

@@ -141,11 +141,11 @@ export function track(target: object, type: TrackOpTypes, key: unknown) {
return
}
let depsMap = targetMap.get(target)
if (depsMap === void 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it only want to check the deps map is not undefined, about void 0: lessfish/underscore-analysis#1

packages/reactivity/src/effect.ts Outdated Show resolved Hide resolved
@yyx990803 yyx990803 merged commit fa40d1e into vuejs:master Apr 20, 2020
@limichange limichange deleted the patch-1 branch April 21, 2020 03:58
pikax pushed a commit to pikax/vue-next that referenced this pull request Apr 29, 2020
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.

3 participants