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

Function refresh

ui/src/live/inbox.ts:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 let disposed = false
42
43 async function refresh() {
44 try {
45 const { entries } = await api.inbox.history({ limit: 100 })
46 if (disposed) return
47 apply((prev) => ({ ...prev, entries, loading: false }))
48 } catch {
49 if (disposed) return
50 apply((prev) => ({ ...prev, loading: false }))
51 }
52 }
53
54 applyState = apply
55 triggerRefresh = refresh

Callers 3

inbox.tsFile · 0.70
onSubmitFunction · 0.50
AuthProviderFunction · 0.50

Calls 1

applyFunction · 0.85

Tested by

no test coverage detected