({ sourceId }: { sourceId: string })
| 325 | }; |
| 326 | |
| 327 | export const sourceQueryOptions = ({ sourceId }: { sourceId: string }) => { |
| 328 | return { |
| 329 | queryKey: [RequestKey.Source, null, sourceId], |
| 330 | queryFn: async () => { |
| 331 | const res = await gqlBatchRequest<SourceData>(SOURCE_QUERY, { |
| 332 | id: sourceId, |
| 333 | }); |
| 334 | |
| 335 | return res.source; |
| 336 | }, |
| 337 | staleTime: StaleTime.OneHour, |
| 338 | enabled: !!sourceId, |
| 339 | }; |
| 340 | }; |
no outgoing calls
no test coverage detected