SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Class LocalStorageStore

    LocalStorage state with cross-tab sync

    Implements

    Index
    • Retrieves the value associated with the given key.

      Parameters

      • k: string

        The key to retrieve.

      Returns string | null

    • Removes the value associated with the given key.

      Parameters

      • k: string

        The key to remove.

      Returns void

    • Sets the value for the given key.

      Parameters

      • k: string

        The key to set.

      • v: string

        The value to associate with the key.

      Returns void

    • Subscribes to external changes for cross-tab synchronization.

      Parameters

      • onExternalChange: (changedKey: string) => void

        Callback invoked when a key changes externally.

      Returns () => void

      Not all state implementations support cross-tab subscription (may no-op)