MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / usePropertyValues

Function usePropertyValues

apps/start/src/hooks/use-property-values.ts:4–13  ·  view source on GitHub ↗
(params: any)

Source from the content-addressed store, hash-verified

2import { useQuery } from '@tanstack/react-query';
3
4export function usePropertyValues(params: any) {
5 const trpc = useTRPC();
6 const { enabled = true, ...input } = params;
7 const query = useQuery(
8 trpc.chart.values.queryOptions(input, {
9 enabled: enabled !== false && !!input.projectId,
10 }),
11 );
12 return query.data?.values ?? [];
13}

Callers 2

PureFilterItemFunction · 0.90
FilterPillFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected