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

Function useProfileValues

apps/start/src/hooks/use-profile-values.ts:4–13  ·  view source on GitHub ↗
(projectId: string, property: string)

Source from the content-addressed store, hash-verified

2import { useQuery } from '@tanstack/react-query';
3
4export function useProfileValues(projectId: string, property: string) {
5 const trpc = useTRPC();
6 const query = useQuery(
7 trpc.profile.values.queryOptions({
8 projectId: projectId,
9 property,
10 }),
11 );
12 return query.data?.values ?? [];
13}

Callers 1

FilterOptionProfileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected