Documentation - v0.0.10
    Preparing search index...

    Class ComputedSignalImplementation<T>

    Describes a signal that can be read from.

    The important part to understand is signal.get(). The rest are intended to be called by library code, although you can call them if you want to.

    Type Parameters

    • T

    Implements

    Index

    Constructors

    Properties

    _readSignal: true = ...

    A marker property to identify this as a signal-like object.

    Methods

    • Get the current value of the signal. If done inside a reactive context (computed signal or effect), the signal will be tracked as a dependency.

      Returns T

      const count = signal(0);
      console.log(count.get()); // 0
      count.set(5);
      console.log(count.get()); // 5