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

Function onPageHide

packages/shared/src/features/monetization/useVisibleTime.ts:113–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 // parked in the back-forward cache keeps its clocks, and an open stretch
112 // would count the whole time away as seen when it is restored.
113 const onPageHide = () => {
114 stopTimer();
115 report();
116 visibleSince = undefined;
117 };
118
119 observer.observe(element);
120 globalThis.document.addEventListener('visibilitychange', evaluate);

Callers

nothing calls this directly

Calls 2

stopTimerFunction · 0.70
reportFunction · 0.70

Tested by

no test coverage detected