@kayahr/signal
    Preparing search index...

    Interface CreateMemoOptions<T>

    Options for creating a memoized computation.

    interface CreateMemoOptions<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 memo value.

    Returning true keeps the memo version stable and suppresses downstream invalidation. Set this to false to notify downstream computations after every recomputation.

    The previous memo value.

    The next memo value.

    True when both values should be treated as equal.