Skip to main content

MergableObjectWithState <P>

Describes the relation between a local object and its remote counterpart. Also gives the state for the local object and (if exists) a conflict reason between the local and the remote object. A conflict typically arises when the local object has been modified and so has the remote object. Example: local object was modified but remote object was deleted. This conflict cannot be resolved automatically.

Index

Constructors

publicconstructor

Properties

publiclocal

local: P

local object.

publiconStateChange

onStateChange: (p: MergableObjectWithState<P>) => void

Type declaration

publicoptionalremote

remote?: P

Remote object (if there is one)

Accessors

publicconflictReason

publichasConflict

  • get hasConflict(): boolean
  • true if a conflict exists. Otherwise false


    Returns boolean

publicstate