(projectId: string, limit = 20)
| 236 | } |
| 237 | |
| 238 | export 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 | |
| 247 | export function useCreateProject() { |
| 248 | const queryClient = useQueryClient() |
no test coverage detected