@kayahr/signal
    Preparing search index...

    Function createArraySignal

    • Creates a signal specialized for array mutation.

      The returned getter exposes readonly array snapshots. Mutations happen through the returned mutator object and invalidate dependents without requiring array equality checks.

      Type Parameters

      • T

      Parameters

      • items: readonly T[]

        The initial array content.

      Returns [Getter<readonly T[]>, ArrayMutator<T>]

      A getter returning readonly snapshots and a mutator for changing the array.