mirror of
https://github.com/discourse/discourse.git
synced 2025-04-15 20:11:15 +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