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

Function highlightsPageQueryOptions

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

Source from the content-addressed store, hash-verified

318});
319
320export const highlightsPageQueryOptions = ({
321 first = MAJOR_HEADLINES_MAX_FIRST,
322 after,
323}: {
324 first?: number;
325 after?: string;
326} = {}) => ({
327 queryKey: HIGHLIGHTS_PAGE_QUERY_KEY,
328 queryFn: () =>
329 gqlClient.request<HighlightsPageData>(HIGHLIGHTS_PAGE_QUERY, {
330 first,
331 after,
332 }),
333 staleTime: ONE_MINUTE,
334});
335
336export const channelHighlightsFeedQueryOptions = (channel: string) => ({
337 queryKey: getChannelHighlightsFeedQueryKey(channel),

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected