From 3904c626c9fead9214923b5dc07d7fac2f249e01 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Thu, 28 Dec 2023 17:45:36 +1300 Subject: [PATCH] Repair Dataspace.retract() cleanup of handleMap (!) --- packages/core/src/runtime/dataspace.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/runtime/dataspace.ts b/packages/core/src/runtime/dataspace.ts index a0805ca..69d4ec2 100644 --- a/packages/core/src/runtime/dataspace.ts +++ b/packages/core/src/runtime/dataspace.ts @@ -106,6 +106,7 @@ export class Dataspace implements Partial { retract(handle: Handle): void { const v = this.handleMap.get(handle); if (v === void 0) return; + this.handleMap.delete(handle); const is_last = this.index.removeAssertion(v, Turn.active); this.options.tracer?.('-', v, this, is_last); if (is_last) {