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
getStorage: ()=>Storage = ...
Returns the storage to use, such as () => sessionStorage; defaults to localStorage.
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).