get method

T get()

Read the value (synchronous). Registers a dependency when called inside an async compute/effect.

Throws DisposedNodeError if this cell has been disposed — the async graph shares one read-after-dispose contract with the synchronous one.

Implementation

T get() {
  if (_nodeDisposed) throw DisposedNodeError(this);
  _ctx._track(this);
  return _value;
}