MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / useDatasetArchives

Function useDatasetArchives

app/src/utils/hooks.ts:208–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206};
207
208export const useDatasetArchives = () => {
209 const dataset = useDataset().data;
210
211 return api.archives.listForDataset.useQuery(
212 { datasetId: dataset?.id ?? "" },
213 { enabled: !!dataset?.id },
214 );
215};
216
217// Prevent annoying flashes while loading from the server
218const useStableData = <TData, TError>(result: UseQueryResult<TData, TError>) => {

Callers 3

GeneralFiltersFunction · 0.90
SourcesFunction · 0.90
EvaluationFiltersFunction · 0.90

Calls 1

useDatasetFunction · 0.85

Tested by

no test coverage detected