This project has been succeeded by GraphReFly. New development happens at graphrefly-ts. npm install @graphrefly/graphrefly
Skip to content

distinctUntilChanged() ​

Drops consecutive duplicates; optional eq replaces default Object.is (Tier 1).

Signature ​

ts
function distinctUntilChanged<A>(eq?: (a: A, b: A) => boolean): StoreOperator<A, A>

Parameters ​

ParameterTypeDescription
eq(a: A, b: A) =&gt; booleanEquality for consecutive pair comparison.

Returns ​

StoreOperator&lt;A, A&gt;

See Also ​

Released under the MIT License.