MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / load

Function load

ui/src/hooks/useIssues.ts:39–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 useEffect(() => {
38 mounted.current = true
39 const load = async () => {
40 try {
41 const next = await api.issues.get()
42 cached = next
43 if (mounted.current) {
44 setData(next)
45 setError(null)
46 }
47 } catch (e) {
48 if (mounted.current) setError(e instanceof Error ? e.message : String(e))
49 }
50 }
51 void load()
52 const id = setInterval(() => void load(), POLL_MS)
53 return () => {

Callers 2

useTradingConfigFunction · 0.70
useIssuesFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected