MergeContext
Defined in: packages/@livestore/common/dist/sync/syncstate.d.ts:144
Only used for debugging purposes
Extends
Section titled “Extends”MergeContext_base
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MergeContext(
props,options?):MergeContext
Defined in: .pnpm-home/store/v11/links/@/effect/3.21.0/5f824b960b722ac9cc27ad83fe3b2945d775b034a0e1eb327a0ff67a4a7c6da7/node_modules/effect/dist/dts/Schema.d.ts:4266
Parameters
Section titled “Parameters”payload
Section titled “payload”{ _tag: "upstream-rebase"; newEvents: readonly EncodedWithMeta[]; rollbackEvents: readonly EncodedWithMeta[]; } | { _tag: "upstream-advance"; newEvents: readonly EncodedWithMeta[]; } | { _tag: "local-push"; newEvents: readonly EncodedWithMeta[]; }
syncState
Section titled “syncState”options?
Section titled “options?”MakeOptions
Returns
Section titled “Returns”MergeContext
Inherited from
Section titled “Inherited from”MergeContext_base.constructor
Properties
Section titled “Properties”payload
Section titled “payload”
readonlypayload: {newEvents: readonlyEncodedWithMeta[];rollbackEvents: readonlyEncodedWithMeta[]; } | {newEvents: readonlyEncodedWithMeta[]; } | {newEvents: readonlyEncodedWithMeta[]; }
Defined in: packages/@livestore/common/dist/sync/syncstate.d.ts:123
Type Declaration
Section titled “Type Declaration”{ newEvents: readonly EncodedWithMeta[]; rollbackEvents: readonly EncodedWithMeta[]; }
newEvents
Section titled “newEvents”
readonlynewEvents: readonlyEncodedWithMeta[]
Events which need to be applied after the rollback (already rebased by the upstream node)
rollbackEvents
Section titled “rollbackEvents”
readonlyrollbackEvents: readonlyEncodedWithMeta[]
Events which need to be rolled back
{ newEvents: readonly EncodedWithMeta[]; }
newEvents
Section titled “newEvents”
readonlynewEvents: readonlyEncodedWithMeta[]
{ newEvents: readonly EncodedWithMeta[]; }
newEvents
Section titled “newEvents”
readonlynewEvents: readonlyEncodedWithMeta[]
Inherited from
Section titled “Inherited from”MergeContext_base.payload
syncState
Section titled “syncState”
readonlysyncState:SyncState
Defined in: packages/@livestore/common/dist/sync/syncstate.d.ts:124
Inherited from
Section titled “Inherited from”MergeContext_base.syncState
toJSON()
Section titled “toJSON()”toJSON: () =>
any
Defined in: packages/@livestore/common/dist/sync/syncstate.d.ts:145
Returns
Section titled “Returns”any