(appRef: ApplicationRef)
| 127 | * all dehydrated views from all `LContainer`s along the way. |
| 128 | */ |
| 129 | export function cleanupDehydratedViews(appRef: ApplicationRef) { |
| 130 | const viewRefs = appRef._views; |
| 131 | for (const viewRef of viewRefs) { |
| 132 | const lNode = getLNodeForHydration(viewRef); |
| 133 | // An `lView` might be `null` if a `ViewRef` represents |
| 134 | // an embedded view (not a component view). |
| 135 | if (lNode !== null && lNode[HOST] !== null) { |
| 136 | if (isLView(lNode)) { |
| 137 | cleanupLView(lNode); |
| 138 | } else { |
| 139 | // Cleanup in all views within this view container |
| 140 | cleanupLContainer(lNode); |
| 141 | } |
| 142 | ngDevMode && ngDevMode.dehydratedViewsCleanupRuns++; |
| 143 | } |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * post hydration cleanup handling for defer blocks that were incrementally |
no test coverage detected
searching dependent graphs…