Skip to content

Commit

Permalink
add registerDestructor
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored and chancancode committed Mar 8, 2024
1 parent 2b20072 commit 33d130e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@glimmer/runtime/lib/vm/element-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ export class NewElementBuilder implements ElementBuilder {
} as CapturedArguments,
instance: null,
});
registerDestructor(block, () => {
this.env.debugRenderTree?.willDestroy(block);
});
}
return block;
}
Expand Down

0 comments on commit 33d130e

Please sign in to comment.