tinybase
tinybase copied to clipboard
Support `MergeableStore` for `IndexedDbPersister`
I am currently exploring the PeriodicSyncManager to support syncing my TinyBase stores with my server in the background.
This requires me to sync within the service worker context. This context does not allow to use localStorage or sessionStorage though. IndexedDB would be supported, but the TinyBase IndexedDB adapter does not support MergeableStore, so I won't able to sync this store. Thus I am kind of stuck here.
It's nothing critical of course, but I'd still be curious whether there are plans to extend the IndexedDbPersister to suppprt MergeableStore.
Cheers and thanks for your work. TinyBase is a pleasure to work with so far 😊