* Retrieves the next dehydrated view from the LContainer and verifies that * it matches a given template id (from the TView that was used to create this * instance of a view). If the id doesn't match, that means that we are in an * unexpected state and can not complete the reconciliation process.
( lContainer: LContainer, template: string | null, )
| 88 | * in this container. |
| 89 | */ |
| 90 | function findMatchingDehydratedViewImpl( |
| 91 | lContainer: LContainer, |
| 92 | template: string | null, |
| 93 | ): DehydratedContainerView | null { |
| 94 | if (hasMatchingDehydratedView(lContainer, template)) { |
| 95 | return lContainer[DEHYDRATED_VIEWS]!.shift()!; |
| 96 | } else { |
| 97 | // Otherwise, we are at the state when reconciliation can not be completed, |
| 98 | // thus we remove all dehydrated views within this container (remove them |
| 99 | // from internal data structures as well as delete associated elements from |
| 100 | // the DOM tree). |
| 101 | removeDehydratedViews(lContainer); |
| 102 | return null; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | export function findMatchingDehydratedView( |
| 107 | lContainer: LContainer, |
nothing calls this directly
no test coverage detected
searching dependent graphs…