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

Function getRecentPages

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

Source from the content-addressed store, hash-verified

33};
34
35export const getRecentPages = (): RecentPage[] => {
36 if (cache === null) {
37 cache = readStorage();
38 }
39 return cache;
40};
41
42export const subscribeRecentPages = (listener: () => void): (() => void) => {
43 listeners.add(listener);

Callers 1

recordRecentPageFunction · 0.85

Calls 1

readStorageFunction · 0.70

Tested by

no test coverage detected