isEqualEncoded
constisEqualEncoded: (a,b) =>boolean
Defined in: packages/@livestore/common/dist/schema/LiveStoreEvent/client.d.ts:155
Structural equality check for client events. Compares seqNum (global + client),
name, clientId, sessionId, and args. The meta field is ignored.
Args are compared in their JSON-canonical form: locally-encoded events with
Schema.UndefinedOr (or loose Schema.optional) fields produce
{ ..., flag: undefined }, but JSON wire transport drops the key. Without
canonicalizing, the local pending event compares unequal to its
wire-roundtripped counterpart and the sync merge falsely takes the rebase
path, surfacing as MaterializerHashMismatchError for state-dependent
materializers.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”boolean