Public function

Squash a collection of diffs into a single diff.

Signature
function squashRecordDiffs<T extends UnknownRecord>(
  diffs: RecordsDiff<T>[]
): RecordsDiff<T>
Parameters
NameDescription

diffs

RecordsDiff<T>[]

An array of diffs to squash.

Returns
RecordsDiff<T>

A single diff that represents the squashed diffs.

References

UnknownRecord, RecordsDiff

Source

packages/store/src/lib/RecordsDiff.ts

SerializedStoreStore