Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MergeableStore for IndexedDbPersister #203

Open
danielberndt opened this issue Dec 23, 2024 · 0 comments
Open

Support MergeableStore for IndexedDbPersister #203

danielberndt opened this issue Dec 23, 2024 · 0 comments

Comments

@danielberndt
Copy link

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 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant