MCPcopy Create free account
hub / github.com/datner/react-effect / setResult

Method setResult

src/internal/fiberStore.ts:48–52  ·  view source on GitHub ↗
(result: Result.Result<E, A>)

Source from the content-addressed store, hash-verified

46 private trackedProps = TrackedProperties.initial()
47 private resultBag: ResultBag.ResultBag<E, A> = ResultBag.make(Result.initial(), this.trackedProps)
48 private setResult(result: Result.Result<E, A>) {
49 TrackedProperties.updateFromResult(this.trackedProps, result)
50 this.resultBag = ResultBag.make(result, this.trackedProps)
51 this.notify()
52 }
53 public snapshot = () => {
54 return this.resultBag
55 }

Callers 2

maybeSetResultMethod · 0.95
runMethod · 0.95

Calls 1

notifyMethod · 0.95

Tested by

no test coverage detected