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

Function useProject

apps/webapp/app/hooks/useProject.tsx:20–24  ·  view source on GitHub ↗
(matches?: UIMatch[])

Source from the content-addressed store, hash-verified

18}
19
20export function useProject(matches?: UIMatch[]) {
21 const project = useOptionalProject(matches);
22 invariant(project, "Project must be defined");
23 return project;
24}
25
26export const useProjectChanged = (action: (org: MatchedProject | undefined) => void) => {
27 useChanged(useOptionalProject, action);

Callers 15

InitCommandV3Function · 0.90
TaskRunsTableFunction · 0.90
BlankStateFunction · 0.90
FrameworkSelectorFunction · 0.90
FrameworkComingSoonFunction · 0.90
HowToRunYourJobFunction · 0.90
AIGeneratedCronFieldFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90

Calls 1

useOptionalProjectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…