MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / useRunState

Function useRunState

frontend/src/features/trace/api/trace-core.ts:162–169  ·  view source on GitHub ↗
(runId: string | undefined)

Source from the content-addressed store, hash-verified

160import type { RunDetail } from '@/generated/run_detail'
161
162export function useRunState(runId: string | undefined) {
163 return useQuery<RunDetail>({
164 queryKey: traceKeys.run(runId ?? ''),
165 queryFn: () => apiClient.get(`/api/runs/${runId}`),
166 enabled: !!runId,
167 staleTime: 5_000,
168 })
169}
170
171/** Fetch the run state as of a specific commit SHA. */
172export function useRunStateAt(runId: string | undefined, sha: string | undefined) {

Callers 2

NodeMapViewFunction · 0.90
TraceDetailViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…