David Fahlander

Results 557 comments of David Fahlander

I found the issue and it's really a bug occurring when client is about to sync a table with inbound compound keys. I've released a new version with "test" tag...

> We had a similar problem recently,When the function「bulkDelete」 is called in my code > > The error message is : 「DatabaseClosedError UnknownError Internal error opening backing store for indexedDB.open....

To anyone looking and commenting this, please provide **dexie version** you are using, along with **the browser and its version**. We have more workarounds in place for these kind of...

Typescript 4.1 or above is needed for dexie-react-hooks.

Thanks for a good question that resembles a lot of how I've designed the subscription model. The docs is not updated about this but I posted a [blog post](https://medium.com/dexie-js/dexie-cloud-subscription-model-cbf9a709ce7) about...

One issue with the code is that the observable keeps producing things to enque on any type of change and if more than a single item is in the queue,...

Hi! The principle in Dexie's DBCore middleware is that you get the lower level DBCore instance and provide your own. This means that you can always use the lower level...

```ts export default class Uploader { private subscription: Subscription; private isWorking = false; constructor() { const observable = liveQuery(() => db.videoMetadata.where({ uploadingStatus: 'uploading' }).count()); this.subscription = observable.subscribe(numNewItems => { if...

The [existing example at Dexie.use() page](https://dexie.org/docs/Dexie/Dexie.use()#example) hopefully examplifies how to override the DBCoreTable.mutate() method. The same principle goes for any other method in the DBCore interface and its related interfaced...

You might also copy the code from [guardedTable.ts](https://github.com/dexie/Dexie.js/blob/1ed96685dbb71639655cfdcf82f7670554538174/addons/dexie-cloud/src/middleware-helpers/guardedTable.ts) and use it the same way it is being used in [dexie-cloud-addon's middleware](https://github.com/dfahlander/Dexie.js/blob/1ed96685dbb71639655cfdcf82f7670554538174/addons/dexie-cloud/src/middlewares/createMutationTrackingMiddleware.ts) since it will make sure to queque multiple mutate...