MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / load

Function load

frontend/dashboard/src/components/ExplainerNew.tsx:26–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 useEffect(() => {
25 let cancelled = false;
26 const load = async () => {
27 const payload = await fetchTraces(100);
28 if (cancelled) return;
29 if (!payload) {
30 setError("[ERROR: TRACE ENDPOINT UNREACHABLE]");
31 setTraces([]);
32 return;
33 }
34 setError(null);
35 setTraces(payload.items);
36 };
37 load();
38 return () => {
39 cancelled = true;

Callers 1

ExplainerNewFunction · 0.70

Calls 1

fetchTracesFunction · 0.90

Tested by

no test coverage detected