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

Function useJob

apps/webapp/app/hooks/useJob.tsx:26–30  ·  view source on GitHub ↗
(matches?: UIMatch[])

Source from the content-addressed store, hash-verified

24}
25
26export function useJob(matches?: UIMatch[]) {
27 const job = useOptionalJob(matches);
28 invariant(job, "Job must be defined");
29 return job;
30}
31
32export const useJobChanged = (action: (org: MatchedJob | undefined) => void) => {
33 useChanged(useOptionalJob, action);

Callers 6

HowToRunYourJobFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90
JobFunction · 0.90
PageFunction · 0.90
PageFunction · 0.90

Calls 1

useOptionalJobFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…