refetchInterval units
Very minor but I wonder if we could rename and add the units. refetchIntervalMinutes
or refetchIntervalMs
The problem is that from the moment you see this piece of code:
useEndpointPagination({
endpoint: DATASET_LIST_ENDPOINT,
params: {
investigationId: investigation.id.toString(),
datasetType: 'acquisition',
sortBy: 'STARTDATE',
sortOrder: -1,
...(selectedSample ? { sampleId: selectedSample.id } : {}),
...(filterDeferred && filterDeferred.trim().length
? { parameters: filterDeferred }
: {}),
},
options: {
refetchInterval: 1,
},
}) || [];
until you find and read the comment, you need to browse a little bit:
refetchInterval?: number; //in minutes