MCPcopy Index your code
hub / github.com/angular/angular / cleanupLContainer

Function cleanupLContainer

packages/core/src/hydration/cleanup.ts:90–104  ·  view source on GitHub ↗
(lContainer: LContainer)

Source from the content-addressed store, hash-verified

88 * cleanup function for each one.
89 */
90export function cleanupLContainer(lContainer: LContainer) {
91 removeDehydratedViews(lContainer);
92
93 // The host could be an LView if this container is on a component node.
94 // In this case, descend into host LView for further cleanup. See also
95 // LContainer[HOST] docs for additional information.
96 const hostLView = lContainer[HOST];
97 if (isLView(hostLView)) {
98 cleanupLView(hostLView);
99 }
100
101 for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
102 cleanupLView(lContainer[i] as LView);
103 }
104}
105
106/**
107 * Walks over `LContainer`s and components registered within

Callers 4

cleanupParentContainerFunction · 0.90
cleanupLViewFunction · 0.85
cleanupDehydratedViewsFunction · 0.85

Calls 3

isLViewFunction · 0.90
removeDehydratedViewsFunction · 0.85
cleanupLViewFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…