@kayahr/signal
    Preparing search index...

    Interface CreateSignalOptions<T>

    Options for creating a writable signal.

    interface CreateSignalOptions<T> {
        equals?: false | ((previous: T, next: T) => boolean);
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    equals?: false | ((previous: T, next: T) => boolean)

    Compares the previous and next value.

    Returning true suppresses the update and keeps dependent computations clean. Set this to false to force an update for every write.

    The previous signal value.

    The next signal value.

    True when both values should be treated as equal.