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

Function getReadingHistoryKey

packages/shared/src/hooks/useReadingHistory.ts:26–27  ·  view source on GitHub ↗
(user?: LoggedUser)

Source from the content-addressed store, hash-verified

24][];
25
26const getReadingHistoryKey = (user?: LoggedUser) =>
27 generateQueryKey(RequestKey.ReadingHistory, user);
28
29const restoreSnapshot = (client: QueryClient, snapshot: HistorySnapshot) =>
30 snapshot.forEach(([queryKey, data]) => client.setQueryData(queryKey, data));

Callers 1

Calls 1

generateQueryKeyFunction · 0.90

Tested by

no test coverage detected