MCPcopy Create free account
hub / github.com/ForgeAILab/forge / useProjectHookRunsQuery

Function useProjectHookRunsQuery

web/src/api/hooks.ts:238–245  ·  view source on GitHub ↗
(projectId: string, limit = 20)

Source from the content-addressed store, hash-verified

236}
237
238export function useProjectHookRunsQuery(projectId: string, limit = 20) {
239 return useInfiniteQuery({
240 queryKey: qk.projectHookRunPages(projectId, limit),
241 queryFn: ({ pageParam }) => listProjectHookRuns(projectId, pageParam, limit),
242 initialPageParam: undefined as string | undefined,
243 getNextPageParam: (last) => last.next_cursor ?? undefined,
244 })
245}
246
247export function useCreateProject() {
248 const queryClient = useQueryClient()

Callers 1

ProjectHooksSectionFunction · 0.90

Calls 1

listProjectHookRunsFunction · 0.90

Tested by

no test coverage detected