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

Function highlightsPageQueryOptions

packages/shared/src/graphql/highlights.ts:343–357  ·  view source on GitHub ↗
({
  first = MAJOR_HEADLINES_MAX_FIRST,
  after,
}: {
  first?: number;
  after?: string;
} = {})

Source from the content-addressed store, hash-verified

341});
342
343export const highlightsPageQueryOptions = ({
344 first = MAJOR_HEADLINES_MAX_FIRST,
345 after,
346}: {
347 first?: number;
348 after?: string;
349} = {}) => ({
350 queryKey: HIGHLIGHTS_PAGE_QUERY_KEY,
351 queryFn: () =>
352 gqlClient.request<HighlightsPageData>(HIGHLIGHTS_PAGE_QUERY, {
353 first,
354 after,
355 }),
356 staleTime: ONE_MINUTE,
357});
358
359export const channelHighlightsFeedQueryOptions = (channel: string) => ({
360 queryKey: getChannelHighlightsFeedQueryKey(channel),

Callers 4

HighlightsPageFunction · 0.90
getStaticPropsFunction · 0.90
getStaticPropsFunction · 0.90
getStaticPropsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected