A state dict that maintain the current value and the pending-commit delta.

Indexable

  • [key: string]: any

    Array-like access for getting values. Returns the value of the state dict for the given key.

Constructors

  • Constructor for State

    Parameters

    • value: Record<string, any>

      The current value of the state dict.

    • delta: Record<string, any>

      The delta change to the current value that hasn't been committed.

    Returns State

Properties

APP_PREFIX = "app:"
USER_PREFIX = "user:"
TEMP_PREFIX = "temp:"

Methods

  • Returns the value of the state dict for the given key.

    Parameters

    • key: string
    • OptionaldefaultValue: any

    Returns any