Skip to content

Commit

Permalink
perf(reactivity): do not track inner key __v_skip` (vuejs#11690)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored and abdullah-wn committed Jan 4, 2025
1 parent bccc723 commit 12d4726
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 12d4726

Please sign in to comment.