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

Function highlightsPageQueryOptions

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

Source from the content-addressed store, hash-verified

294});
295
296export const highlightsPageQueryOptions = ({
297 first = MAJOR_HEADLINES_MAX_FIRST,
298 after,
299}: {
300 first?: number;
301 after?: string;
302} = {}) => ({
303 queryKey: HIGHLIGHTS_PAGE_QUERY_KEY,
304 queryFn: () =>
305 gqlClient.request<HighlightsPageData>(HIGHLIGHTS_PAGE_QUERY, {
306 first,
307 after,
308 }),
309 staleTime: ONE_MINUTE,
310});
311
312export const channelHighlightsFeedQueryOptions = (channel: string) => ({
313 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