mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 04:10:22 +08:00

I was previously relying on `this.isDestroying` returning `true` during `willDestroyElement`. This was an incorrect assumption. This commit refactors the logic into an explicit `cleanup` function, and also adds some cleanup for empty keys in the `subscribedProxy` array