# Function: distinctUntilDeepChanged()

> 

> **distinctUntilDeepChanged**\<`TValue`, `TError`\>(): `MonoTypeOperatorFunction`\<`TValue`, `TError`\>

Defined in: [packages/server/src/observable/operators.ts:209](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/observable/operators.ts#L209)

Skips values equal to the one before, comparing objects and arrays by
their own enumerable keys. Objects without such keys, like two `Date`s,
always count as equal.

## Type Parameters

| Type Parameter |
| ------ |
| `TValue` |
| `TError` |

## Returns

`MonoTypeOperatorFunction`\<`TValue`, `TError`\>
