Options that can be passed when creating a new signal.

interface ReactiveOptions<T> {
    equal?: EqualsFunc<T>;
}

Type Parameters

  • T

Properties

Properties

equal?: EqualsFunc<T>

Shall return true if the two values are considered equal.

Reactive assignments using a new value equal to the current value will be ignored. By default, Object.is is used to compare values.