@kayahr/signal
    Preparing search index...

    Function createSignal

    • Creates a writable signal with a getter and setter pair.

      Reading the getter tracks the signal as a dependency of the active computation. Writing updates the stored value and invalidates dependent computations when the value changed.

      Type Parameters

      • T

      Parameters

      • value: T

        The initial signal value.

      • options: CreateSignalOptions<T> = {}

        Optional signal behavior overrides.

      Returns [Getter<T>, Setter<T>]

      A getter and setter pair for the signal.