Skip to content
tRPC

Partners

Function: distinctUntilChanged()

On this page

distinctUntilChanged<TValue, TError>(compare): MonoTypeOperatorFunction<TValue, TError>

Defined in: packages/server/src/observable/operators.ts:165

Skips values equal to the one before, by compare (=== by default).

Type Parameters

Type Parameter
TValue
TError

Parameters

ParameterType
compare(a, b) => boolean

Returns

MonoTypeOperatorFunction<TValue, TError>