Skip to content

Support MergeableStore for IndexedDbPersister #203

Description

@danielberndt

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 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions