]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
perf(reactivity): do not track inner key `__v_skip`` (#11690)
authorzhangenming <282126346@qq.com>
Fri, 15 Nov 2024 03:00:24 +0000 (11:00 +0800)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2024 03:00:24 +0000 (11:00 +0800)
packages/reactivity/src/baseHandlers.ts

index 4155c708846a618056c042a5e2133db62d388f8d..faec3012f402b5a611964497e5e355b2646c00c9 100644 (file)
@@ -53,6 +53,8 @@ class BaseReactiveHandler implements ProxyHandler<Target> {
   ) {}
 
   get(target: Target, key: string | symbol, receiver: object): any {
+    if (key === ReactiveFlags.SKIP) return target[ReactiveFlags.SKIP]
+
     const isReadonly = this._isReadonly,
       isShallow = this._isShallow
     if (key === ReactiveFlags.IS_REACTIVE) {