fix(ivy): destroy injector when module is destroyed#27793
fix(ivy): destroy injector when module is destroyed#27793crisbeto wants to merge 1 commit intoangular:masterfrom
Conversation
|
You can preview e47e586 at https://pr27793-e47e586.ngbuilds.io/. |
e47e586 to
27b8357
Compare
|
You can preview 27b8357 at https://pr27793-27b8357.ngbuilds.io/. |
There was a problem hiding this comment.
Why turning this into getter?
There was a problem hiding this comment.
I want to prevent people from being able to set it from the outside. It could also be turned into a isDestroyed method which'll generate slightly less ES5 code.
|
Note to self: check whether these changes fix the FW-848 issues as well. |
27b8357 to
5c60d61
Compare
|
You can preview 5c60d61 at https://pr27793-5c60d61.ngbuilds.io/. |
5c60d61 to
6b2e131
Compare
|
You can preview 6b2e131 at https://pr27793-6b2e131.ngbuilds.io/. |
6b2e131 to
93eac72
Compare
|
You can preview 93eac72 at https://pr27793-93eac72.ngbuilds.io/. |
93eac72 to
e2487fc
Compare
|
You can preview e2487fc at https://pr27793-e2487fc.ngbuilds.io/. |
There was a problem hiding this comment.
Why this change? Does calling testContainer.remove() not remove it from its parent? That would seem like an obvious thing for such a method to do...
859f7ad to
7950c8c
Compare
|
You can preview 7950c8c at https://pr27793-7950c8c.ngbuilds.io/. |
7950c8c to
82aca8c
Compare
|
You can preview 82aca8c at https://pr27793-82aca8c.ngbuilds.io/. |
82aca8c to
684ed75
Compare
|
You can preview 684ed75 at https://pr27793-684ed75.ngbuilds.io/. |
684ed75 to
59be577
Compare
|
You can preview 59be577 at https://pr27793-59be577.ngbuilds.io/. |
59be577 to
139c3b2
Compare
|
You can preview 139c3b2 at https://pr27793-139c3b2.ngbuilds.io/. |
139c3b2 to
434e8f8
Compare
There was a problem hiding this comment.
Hmm this doesn't look quite right since TViews are shared. If you remove one view instance, wouldn't this mean that when other view instances are removed, the cleanup fns would be gone? Let's add a test for this ?
|
You can preview 434e8f8 at https://pr27793-434e8f8.ngbuilds.io/. |
Destroys the module's injector when an `NgModule` is destroyed which in turn calls the `ngOnDestroy` methods on the instantiated providers. This PR resolves FW-739.
434e8f8 to
1eebc40
Compare
|
You can preview 1eebc40 at https://pr27793-1eebc40.ngbuilds.io/. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Destroys the module's injector when an
NgModuleis destroyed which in turn calls thengOnDestroymethods on the instantiated providers.This PR resolves FW-739.