MCPcopy Create free account
hub / github.com/PeachScript/vue-infinite-loading / track

Function track

src/utils.js:58–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 timer: null,
57 times: 0,
58 track() {
59 // record track times
60 this.times += 1;
61
62 // try to mark check status
63 clearTimeout(this.timer);
64 this.timer = setTimeout(() => {
65 this.isChecked = true;
66 }, config.system.loopCheckTimeout);
67
68 // throw warning if the times of continuous calls large than the maximum times
69 if (this.times > config.system.loopCheckMaxCalls) {
70 error(ERRORS.INFINITE_LOOP);
71 this.isChecked = true;
72 }
73 },
74};
75
76export const scrollBarStorage = {

Callers

nothing calls this directly

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…