4292cddf6f890e3360d05bb7f7ae0ea5d4720e8c
While debugging a different [issue](https://github.com/flutter/flutter/issues/141588), @elliette identified a problem with the web engine when a flutter web app hot-restarts. TL;DR: the engine is requesting the framework to re-render a view as it tears them down, causing an assertion failure. This fix stops listening to changes on view "disposed" events when the engine itself is being disposed, so it doesn't trigger re-renders for views that are never coming back. ## Issues * Fixes https://github.com/flutter/flutter/issues/142030 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Description
Languages
Dart
75.4%
C++
16.4%
Objective-C++
2.7%
Java
2.7%
Objective-C
0.6%
Other
1.8%