persister-browser
The persister-browser module of the TinyBase project lets you save and load Store data to and from browser storage, including the origin private file system (OPFS).
Three entry points are provided, each of which returns a new Persister object that can load and save a Store:
- The
createSessionPersisterfunction returns aPersisterthat uses the browser's session storage. - The
createLocalPersisterfunction returns aPersisterthat uses the browser's local storage. - The
createOpfsPersisterfunction returns aPersisterthat uses a file in an origin private file system (OPFS).
See also
Persistence guides
Since
v1.0.0