replikativ/datahike

Can't create/open DB in Web Worker

Opened this issue · 1 comments

I tried out the IndexedDB implementation and attempted to use it from a WebWorker. However, Datahike never finds the DB. My assumption is that konserve uses js/window.indexedDB which is not available in a WebWorker context. Replacing it with js/self.indexedDB or js/indexedDB could be enough to solve this.

whilo commented

@MarkusH14 Thanks for reporting this, I did not know about thi. @groundedsage we should keep this in mind when we port the indexedDB backend now.