Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function persistCreateStorageLayer

    • Creates the fallback persistence layer: values are written straight to Web Storage, one document per storage key holding every attribute, written by persistWriteDocument in the format every layer shares. Everything reading the same key stays in sync, changes from other tabs are picked up, and values stay in memory when storage is unavailable (private windows, blocked site data).

      Parameters

      • OptionalgetStorage: () => Storage

        Returns the storage to use, such as () => sessionStorage; defaults to localStorage.

      Returns PersistLayer