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

Function stopTimer

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

Source from the content-addressed store, hash-verified

58 let timeout: ReturnType<typeof setTimeout> | undefined;
59
60 const stopTimer = () => {
61 globalThis.clearTimeout(timeout);
62 timeout = undefined;
63 };
64
65 const reportViewable = (met: ViewabilityCriteria) => {
66 stopTimer();

Callers 3

reportViewableFunction · 0.70
evaluateFunction · 0.70
useViewabilityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected