Skip to content

Commit

Permalink
ADD todo
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Nov 17, 2024
1 parent 2d4684d commit 7dce3d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rx-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,10 @@ export class RxCollectionBase<
async remove(): Promise<any> {
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,
Expand Down

0 comments on commit 7dce3d9

Please sign in to comment.