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

Function generateQueryKey

packages/shared/src/lib/query.ts:105–111  ·  view source on GitHub ↗
(
  name: RequestKey | AllFeedPages,
  user?: Pick<LoggedUser, 'id'>,
  ...additional: unknown[]
)

Source from the content-addressed store, hash-verified

103};
104
105export const generateQueryKey = (
106 name: RequestKey | AllFeedPages,
107 user?: Pick<LoggedUser, 'id'>,
108 ...additional: unknown[]
109): [RequestKey | AllFeedPages, string, ...unknown[]] => {
110 return [name, user?.id ?? 'anonymous', ...additional];
111};
112
113export const generateStorageKey = (
114 key: RequestKey,

Callers 15

GivebackProvidersFunction · 0.90
MarkdownFunction · 0.90
BookmarkFeedLayoutFunction · 0.90
MainFeedLayoutFunction · 0.90
GiftReceivedPlusModalFunction · 0.90
PlusPlusFunction · 0.90
PreferenceOptionsFormFunction · 0.90
ReadingStreakPopupFunction · 0.90
VerifyExperienceModalFunction · 0.90
BuyCoresProcessingFunction · 0.90

Calls

no outgoing calls

Tested by 1

renderComponentFunction · 0.72