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

Function generateQueryKey

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

Source from the content-addressed store, hash-verified

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

Callers 15

AdProvidersFunction · 0.90
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

Calls

no outgoing calls

Tested by 1

renderComponentFunction · 0.72