MCPcopy Create free account
hub / github.com/triggerdotdev/trigger.dev / useIsImpersonating

Function useIsImpersonating

apps/webapp/app/hooks/useOrganizations.ts:57–63  ·  view source on GitHub ↗
(matches?: UIMatch[])

Source from the content-addressed store, hash-verified

55};
56
57export function useIsImpersonating(matches?: UIMatch[]) {
58 const data = useTypedMatchesData<typeof orgLoader>({
59 id: "routes/_app.orgs.$organizationSlug",
60 matches,
61 });
62 return data?.isImpersonating === true;
63}

Callers 1

AdminDebugTooltipFunction · 0.90

Calls 1

useTypedMatchesDataFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…