perf: avoid using WeakSet for isRef check

This commit is contained in:
Evan You
2019-09-30 10:52:50 -04:00
parent 7f06981f7c
commit 46bd9dbab0
4 changed files with 11 additions and 18 deletions

View File

@@ -126,7 +126,7 @@ export function createBlock(
}
export function isVNode(value: any): boolean {
return value && value._isVNode
return value ? value._isVNode === true : false
}
export function createVNode(