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

Function persist

packages/shared/src/lib/recentPages.ts:63–71  ·  view source on GitHub ↗
(next: RecentPage[])

Source from the content-addressed store, hash-verified

61};
62
63const persist = (next: RecentPage[]): void => {
64 cache = next;
65 try {
66 window.localStorage.setItem(STORAGE_KEY, JSON.stringify(next));
67 } catch {
68 // ignore storage quota / privacy-mode failures
69 }
70 listeners.forEach((listener) => listener());
71};
72
73export const updateRecentPageMeta = (
74 path: string,

Callers 5

updateRecentPageMetaFunction · 0.70
recordRecentPageFunction · 0.70
useSidebarShortcutItemsFunction · 0.50
onDragEndFunction · 0.50
useRecentCommandsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected