We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d5c868 commit 141fa7cCopy full SHA for 141fa7c
src/utils/glimmer/destroyable.ts
@@ -6,6 +6,9 @@ const $dfi: WeakMap<object, Destructors> = new WeakMap();
6
const destroyedObjects = new WeakSet<object>();
7
8
export function destroy(ctx: object) {
9
+ if (destroyedObjects.has(ctx)) {
10
+ return;
11
+ }
12
destroyedObjects.add(ctx);
13
const destructors = $dfi.get(ctx);
14
if (destructors === undefined) {
0 commit comments