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

Function useRecentPages

packages/shared/src/hooks/useRecentPages.ts:19–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17const getServerSnapshot = (): RecentPage[] => EMPTY;
18
19export const useRecentPages = (): RecentPage[] =>
20 useSyncExternalStore(subscribeRecentPages, getRecentPages, getServerSnapshot);
21
22// Entity pages (squad, source, profile) already hold the avatar the sidebar
23// row wants, so they hand it to the store instead of leaving the row to fetch.

Callers 1

RecentSectionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected