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

Function historyState

packages/shared/src/hooks/useCloseOnBack.ts:10–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8type HistoryState = { key?: string; [entryFlag]?: boolean } | null;
9
10const historyState = (): HistoryState =>
11 globalThis.history?.state as HistoryState;
12
13interface UseCloseOnBackProps {
14 enabled: boolean;

Callers 2

useCloseOnBackFunction · 0.85
onPopStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected