From 7dce3d959d27c4c5c205aaebeba334151bb6885f Mon Sep 17 00:00:00 2001 From: pubkey <8926560+pubkey@users.noreply.github.com> Date: Sun, 17 Nov 2024 14:17:20 +0100 Subject: [PATCH] ADD todo --- src/rx-collection.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rx-collection.ts b/src/rx-collection.ts index 534cfdc8594..8043116f67a 100644 --- a/src/rx-collection.ts +++ b/src/rx-collection.ts @@ -928,6 +928,10 @@ export class RxCollectionBase< async remove(): Promise { await this.destroy(); await Promise.all(this.onRemove.map(fn => fn())); + /** + * TODO here we should pass the already existing + * storage instances instead of creating new ones. + */ await removeCollectionStorages( this.database.storage, this.database.internalStore,