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

Function subscribeRecentPages

packages/shared/src/lib/recentPages.ts:56–61  ·  view source on GitHub ↗
(listener: () => void)

Source from the content-addressed store, hash-verified

54};
55
56export const subscribeRecentPages = (listener: () => void): (() => void) => {
57 listeners.add(listener);
58 return () => {
59 listeners.delete(listener);
60 };
61};
62
63const persist = (next: RecentPage[]): void => {
64 cache = next;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected