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

Function cleanupMatchingDehydratedViews

packages/core/src/hydration/views.ts:191–203  ·  view source on GitHub ↗
(hostLView: LView, currentTNode: TNode)

Source from the content-addressed store, hash-verified

189}
190
191function cleanupMatchingDehydratedViews(hostLView: LView, currentTNode: TNode): boolean {
192 const ssrId = currentTNode.tView?.ssrId;
193 if (ssrId == null /* check both `null` and `undefined` */) return false;
194
195 const container = hostLView[currentTNode.index];
196 // if we can find the dehydrated view in this container, we know we've found the stale view
197 // and we can remove it.
198 if (isLContainer(container) && hasMatchingDehydratedView(container, ssrId)) {
199 removeDehydratedViews(container);
200 return true;
201 }
202 return false;
203}

Callers 1

Calls 3

isLContainerFunction · 0.90
removeDehydratedViewsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…