(projectId: string, property: string)
| 2 | import { useQuery } from '@tanstack/react-query'; |
| 3 | |
| 4 | export 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 | } |
no outgoing calls
no test coverage detected