Function unstable_createEqualityComputed

  • Experimental

    Creates an equality-based computed signal, only updating when the new value is not deeply equal to the old value.

    Type Parameters

    • T

      The type of the computed value.

    Parameters

    • getter: () => T

      A function returning the value to compare.

    Returns ISignal<T>

    An equality computed signal.

    const eqComp = createEqualityComputed(() => {
    return { foo: 'bar' };
    });