(lContainer: LContainer, template: string | null)
| 178 | } |
| 179 | |
| 180 | function 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 | |
| 191 | function cleanupMatchingDehydratedViews(hostLView: LView, currentTNode: TNode): boolean { |
| 192 | const ssrId = currentTNode.tView?.ssrId; |
no outgoing calls
no test coverage detected
searching dependent graphs…