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

Function usePruningRules

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

Source from the content-addressed store, hash-verified

428};
429
430export const usePruningRules = () => {
431 const selectedDataset = useDataset().data;
432
433 return api.pruningRules.list.useQuery(
434 { datasetId: selectedDataset?.id ?? "" },
435 { enabled: !!selectedDataset?.id },
436 );
437};
438
439export const useInvoices = (refetchInterval?: number) => {
440 const selectedProjectId = useSelectedProject().data?.id;

Callers 2

FineTuneModalFunction · 0.90
PruningRulesEditorFunction · 0.90

Calls 1

useDatasetFunction · 0.85

Tested by

no test coverage detected