Vaultrice React SDK - v0.9.5
    Preparing search index...

    Function useNonLocalState

    • React hook for managing a single value in NonLocalStorage.

      Provides a simple interface to read and update a value for a given key, with error handling.

      Type Parameters

      • VT extends ValueType

        The type of value to store.

      Parameters

      • id: string

        The unique identifier for the NonLocalStorage instance.

      • key: string

        The key to store and retrieve data for.

      • options: UseNonLocalStorageOptions

        Options for NonLocalStorage, including credentials and instance options.

      Returns any[]

      A tuple containing:

      • value: The current value for the specified key.
      • setItem: Function to set the value for the key.
      • error: Any error encountered during operations.