MCPcopy Create free account
hub / github.com/dailydotdev/apps / stopTimer

Function stopTimer

packages/shared/src/features/monetization/useViewability.ts:95–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 };
94
95 const stopTimer = () => {
96 globalThis.clearTimeout(timeout);
97 timeout = undefined;
98 };
99
100 const reportViewable = (met: ViewabilityCriteria) => {
101 if (trackVisibility && (pageHidden || !isPageInFocus())) {

Callers 3

reportViewableFunction · 0.70
evaluateFunction · 0.70
useViewabilityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected