perf(ivy): call refreshContentQueries only when there are content queries defined (#31839)

PR Close #31839
This commit is contained in:
Pawel Kozlowski 2019-07-25 15:32:02 +02:00 committed by Andrew Kushnir
parent a4bc0db474
commit c0317d40c9
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ export function refreshDescendantViews(lView: LView) {
refreshDynamicEmbeddedViews(lView);
// Content query results must be refreshed before content hooks are called.
refreshContentQueries(tView, lView);
if (tView.contentQueries !== null) {
refreshContentQueries(tView, lView);
}
resetPreOrderHookFlags(lView);
executeHooks(