MCPcopy Create free account
hub / github.com/Effect-TS/effect / value

Method value

packages/effect/src/unstable/reactivity/AtomRef.ts:248–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 return Hash.hash(this.value)
247 }
248 get value() {
249 if (this.parent.value && this._prop in (this.parent.value as any)) {
250 this.previous = this.parent.value[this._prop]
251 }
252 return this.previous
253 }
254 subscribe(f: (a: A[K]) => void): () => void {
255 let previous = this.value
256 return this.parent.subscribe((a) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected