Skip to content

Commit

Permalink
perf(reactivity): do not track inner key __v_skip` (#11690)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored Nov 15, 2024
1 parent 2d78539 commit d637bd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d637bd6

Please sign in to comment.