MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / useTypedMatchesData

Function useTypedMatchesData

apps/webapp/app/hooks/useTypedMatchData.ts:17–29  ·  view source on GitHub ↗
({
  id,
  matches,
}: {
  id: string;
  matches?: UIMatch[];
})

Source from the content-addressed store, hash-verified

15}
16
17export function useTypedMatchesData<T = AppData>({
18 id,
19 matches,
20}: {
21 id: string;
22 matches?: UIMatch[];
23}): UseDataFunctionReturn<T> | undefined {
24 if (!matches) {
25 matches = useMatches();
26 }
27
28 return useTypedDataFromMatches<T>({ id, matches });
29}
30
31export function useTypedMatchData<T = AppData>(
32 match: UIMatch | undefined

Callers 11

useCurrentPlanFunction · 0.90
useV2OnboardingApiKeyFunction · 0.90
useOptionalUserFunction · 0.90
useOptionalProjectFunction · 0.90
useOptionalJobFunction · 0.90
useOptionalRunFunction · 0.90
useOptionalOrganizationsFunction · 0.90
useOptionalOrganizationFunction · 0.90
useIsNewOrganizationPageFunction · 0.90
useIsImpersonatingFunction · 0.90

Calls 1

useTypedDataFromMatchesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…