memorio State

Overview

This document provides a comprehensive list of all available state functions in the memorio library along with their descriptions and examples.

Functions

state.[state.name] ex: state.test

  • Description: Set and get state values.

  • Example:

    // To set a state value
    state.name = 'value';
    
    // To get a state value
    const value = state.name;

state.list

  • Description: Show all states out of proxy.

  • Example:

    state.list;

state.remove([state.name])

  • Description: Remove a state.

  • Parameters:

    • name (string): The name of the state to remove.

  • Example:

state.name.lock()

  • Description: Lock a state (only for types: Array, Object).

  • Example:

state.removeAll()

  • Description: Remove all states.

  • Example:

License

This project is licensed under the MIT License.

Last updated