MCPcopy
hub / github.com/NaiboWang/EasySpider / track

Function track

ElectronJS/src/js/vue.global.js:703–717  ·  view source on GitHub ↗
(target, type, key)

Source from the content-addressed store, hash-verified

701 shouldTrack = last === undefined ? true : last;
702 }
703 function track(target, type, key) {
704 if (shouldTrack && activeEffect) {
705 let depsMap = targetMap.get(target);
706 if (!depsMap) {
707 targetMap.set(target, (depsMap = new Map()));
708 }
709 let dep = depsMap.get(key);
710 if (!dep) {
711 depsMap.set(key, (dep = createDep()));
712 }
713 const eventInfo = { effect: activeEffect, target, type, key }
714 ;
715 trackEffects(dep, eventInfo);
716 }
717 }
718 function trackEffects(dep, debuggerEventExtraInfo) {
719 let shouldTrack = false;
720 if (effectTrackDepth <= maxMarkerBits) {

Callers 10

hasOwnPropertyFunction · 0.85
createGetterFunction · 0.85
has$1Function · 0.85
ownKeysFunction · 0.85
getFunction · 0.85
hasFunction · 0.85
sizeFunction · 0.85
createForEachFunction · 0.85
createIterableMethodFunction · 0.85

Calls 4

createDepFunction · 0.85
trackEffectsFunction · 0.85
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected