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

Function getRecentPages

packages/shared/src/lib/recentPages.ts:49–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47};
48
49export const getRecentPages = (): RecentPage[] => {
50 if (cache === null) {
51 cache = readStorage();
52 }
53 return cache;
54};
55
56export const subscribeRecentPages = (listener: () => void): (() => void) => {
57 listeners.add(listener);

Callers 2

updateRecentPageMetaFunction · 0.85
recordRecentPageFunction · 0.85

Calls 1

readStorageFunction · 0.70

Tested by

no test coverage detected