Skip to content

localStorageAdapter

localStorageAdapter(): StorageAdapter

The default adapter: window.localStorage, kept across reloads, the payment redirect, a second tab and a closed browser. The storage event keeps tabs in step. Any access that throws (a private window, blocked storage, a full quota) falls back to a memory adapter for that key, so the cart still works for the page’s life.

StorageAdapter