MCPcopy
hub / github.com/vuejs/core / noTracking

Function noTracking

packages/reactivity/src/arrayInstrumentations.ts:361–372  ·  view source on GitHub ↗
(
  self: unknown[],
  method: keyof Array<any>,
  args: unknown[] = [],
)

Source from the content-addressed store, hash-verified

359// instrument length-altering mutation methods to avoid length being tracked
360// which leads to infinite loops in some cases (#2137)
361function noTracking(
362 self: unknown[],
363 method: keyof Array<any>,
364 args: unknown[] = [],
365) {
366 pauseTracking()
367 startBatch()
368 const res = (toRaw(self) as any)[method].apply(self, args)
369 endBatch()
370 resetTracking()
371 return res
372}

Callers 5

popFunction · 0.85
pushFunction · 0.85
shiftFunction · 0.85
spliceFunction · 0.85
unshiftFunction · 0.85

Calls 5

pauseTrackingFunction · 0.90
startBatchFunction · 0.90
toRawFunction · 0.90
endBatchFunction · 0.90
resetTrackingFunction · 0.90

Tested by

no test coverage detected