MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / useDataCacheFunctions

Function useDataCacheFunctions

client/src/api/iqdata/Queries.ts:19–35  ·  view source on GitHub ↗
(
  type: string,
  account: string,
  container: string,
  filePath: string,
  fftSize: number
)

Source from the content-addressed store, hash-verified

17const MAXIMUM_SAMPLES_PER_REQUEST = 1024 * 256;
18
19export 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
37export function useGetIQData(
38 type: string,

Callers 1

Calls 1

useQueryClientFunction · 0.85

Tested by

no test coverage detected