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