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

Function hasMatchingDehydratedView

packages/core/src/hydration/views.ts:180–189  ·  view source on GitHub ↗
(lContainer: LContainer, template: string | null)

Source from the content-addressed store, hash-verified

178}
179
180function hasMatchingDehydratedView(lContainer: LContainer, template: string | null): boolean {
181 const views = lContainer[DEHYDRATED_VIEWS];
182 if (!template || views === null || views.length === 0) {
183 return false;
184 }
185 // Verify whether the first dehydrated view in the container matches
186 // the template id passed to this function (that originated from a TView
187 // that was used to create an instance of an embedded or component views.
188 return views[0].data[TEMPLATE_ID] === template;
189}
190
191function cleanupMatchingDehydratedViews(hostLView: LView, currentTNode: TNode): boolean {
192 const ssrId = currentTNode.tView?.ssrId;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…