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

Function handleLifecycle

packages/shared/src/hooks/log/useLogPageView.ts:29–30  ·  view source on GitHub ↗
(event: CustomEvent)

Source from the content-addressed store, hash-verified

27 router.events.on('routeChangeComplete', handleRouteChange);
28
29 const handleLifecycle = (event: CustomEvent) =>
30 lifecycleCallbackRef.current(event);
31 window.addEventListener('statechange', handleLifecycle);
32
33 return () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected