TinyBase logoTinyBase

persister-browser

The persister-browser module of the TinyBase project lets you save and load Store data to and from browser storage.

Two entry points are provided, each of which returns a new Persister object that can load and save a Store:

See also

Persisting Data guide

createLocalPersister

The createLocalPersister function creates a Persister object that can persist the Store to the browser's local storage.

createSessionPersister

The createSessionPersister function creates a Persister object that can persist the Store to the browser's session storage.