( type: string, account: string, container: string, filePath: string, fftSize: number )
| 17 | const MAXIMUM_SAMPLES_PER_REQUEST = 1024 * 256; |
| 18 | |
| 19 | export function useDataCacheFunctions( |
| 20 | type: string, |
| 21 | account: string, |
| 22 | container: string, |
| 23 | filePath: string, |
| 24 | fftSize: number |
| 25 | ) { |
| 26 | const queryClient = useQueryClient(); |
| 27 | function clearIQData() { |
| 28 | queryClient.removeQueries(['iqData', type, account, container, filePath, fftSize]); |
| 29 | queryClient.removeQueries(['rawiqdata', type, account, container, filePath, fftSize]); |
| 30 | queryClient.removeQueries(['processedIQData', type, account, container, filePath, fftSize]); |
| 31 | } |
| 32 | return { |
| 33 | clearIQData, |
| 34 | }; |
| 35 | } |
| 36 | |
| 37 | export function useGetIQData( |
| 38 | type: string, |
no test coverage detected