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

Function getCurrentLifecycleState

packages/shared/src/lib/lifecycle.ts:100–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98};
99
100export const getCurrentLifecycleState = (): string => {
101 if (wasActive) {
102 return ACTIVE;
103 }
104 return getInternalLifecycleState();
105};
106
107export default function listenToLifecycleEvents(): void {
108 // Detect Safari to work around Safari-specific bugs.

Callers 2

getGlobalSharedPropsFunction · 0.90
handleEventsFunction · 0.85

Calls 1

Tested by

no test coverage detected