- Notifications
You must be signed in to change notification settings - Fork26.7k
Commit35309bb
fix(core): unsubscribe from the
At the moment, when creating a root module, a subscription to the`onError` subject is also created. It captures the scope where `NgModuleRef`is created and prevents it from being garbage collected. Also note that this`NgModuleRef` has a reference to the root module instance (e.g. `AppModule`),which also prevents it from being GC'd.PRClose#39940onError when the root view is removed (#39940)1 parent1676d22 commit35309bb
File tree
2 files changed
+29
-8
lines changed- packages/core
- src
- test/acceptance
2 files changed
+29
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
337 | 342 | | |
338 | 343 | | |
339 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
230 | 246 | | |
231 | 247 | | |
232 | 248 | | |
| |||
365 | 381 | | |
366 | 382 | | |
367 | 383 | | |
368 | | - | |
| 384 | + | |
0 commit comments
Comments
(0)