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

Function generateQueryKey

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

Source from the content-addressed store, hash-verified

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

Callers 15

CalendarDemoFunction · 0.90
SeedFeedSettingsFunction · 0.90
AdProvidersFunction · 0.90
MarkdownFunction · 0.90
BookmarkFeedLayoutFunction · 0.90
MainFeedLayoutFunction · 0.90
GiftReceivedPlusModalFunction · 0.90
PlusPlusFunction · 0.90
PreferenceOptionsFormFunction · 0.90
VerifyExperienceModalFunction · 0.90

Calls

no outgoing calls

Tested by 1

renderComponentFunction · 0.72