({
first = MAJOR_HEADLINES_MAX_FIRST,
after,
}: {
first?: number;
after?: string;
} = {})
| 341 | }); |
| 342 | |
| 343 | export 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 | |
| 359 | export const channelHighlightsFeedQueryOptions = (channel: string) => ({ |
| 360 | queryKey: getChannelHighlightsFeedQueryKey(channel), |
no outgoing calls
no test coverage detected