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

Function apply

ui/src/live/createLiveStore.ts:86–93  ·  view source on GitHub ↗
(next)

Source from the content-addressed store, hash-verified

84 let visibilityHandler: (() => void) | null = null
85
86 const apply: Apply<S> = (next) => {
87 if (typeof next === 'function') {
88 inner.setState((prev) => (next as (p: S) => S)(prev), true)
89 } else {
90 inner.setState(next, true)
91 }
92 lastEventTs = Date.now()
93 }
94
95 function start() {
96 if (cleanup) return

Callers 5

updateAccountValueMethod · 0.85
account-health.tsFile · 0.85
refreshFunction · 0.85
refreshFunction · 0.85
refreshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected