The current value of the state.
The delta change to the current value that hasn't been committed.
Optionalschema: SchemaLike
Declares the keys this state may hold and their types. When set, every mutation is checked against it; prefixed keys are exempt.
Optional ReadonlyschemaDeclares the keys this state may hold and their types. When set, every mutation is checked against it; prefixed keys are exempt.
Static ReadonlyAPP_Static ReadonlyTEMP_Static ReadonlyUSER_Returns the value of the state dict for the given key.
Only keys the state holds itself are found. Names inherited from
Object.prototype, such as toString, are treated as missing.
The key to get the value for.
OptionaldefaultValue: T
The default value to return if the key is not found.
The value of the state for the given key, or the default value if not found.
Whether the state holds the given key, either as a stored value or as a
pending delta. Names inherited from Object.prototype are not keys.
Whether the state has pending delta.
Sets the value of the state dict for the given key.
The key to set the value for.
The value to set.
Returns the state as a plain JSON object.
Updates the state dict with the given delta.
The delta to update the state with.
Checks a whole delta against schema, for writes that reach the
session without passing through this object — a node emitting an event
that carries its own stateDelta.
A state mapping that maintains the current value and the pending-commit delta.