(hostLView: LView, currentTNode: TNode)
| 189 | } |
| 190 | |
| 191 | function 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 | } |
no test coverage detected
searching dependent graphs…