I'm not familiar with Glimmer internals, so I'm not sure if this is an issue or if it works as intended, but here's a pretty simple Ember app that inserts 100 divs on click, then clears them out. If I enable destroy tracking, then assert it's all destroyed later, that seems like it doesn't quite happen.
In our actual app, this seems to retain a ton of these destroyables that should (?) be destroyed at this point but aren't for some reason.
I'm not familiar with Glimmer internals, so I'm not sure if this is an issue or if it works as intended, but here's a pretty simple Ember app that inserts 100 divs on click, then clears them out. If I enable destroy tracking, then assert it's all destroyed later, that seems like it doesn't quite happen.
In our actual app, this seems to retain a ton of these destroyables that should (?) be destroyed at this point but aren't for some reason.
https://github.com/glimmerjs/glimmer-vm/assets/1569205/f37af721-fe3e-47cb-bab0-0fbb1c343fe8
Code: