refactor(ivy): remove unnecessary call to setPreviousOrParentTNode (#31839)

setPreviousOrParentTNode is set in enterView so no need to reset it
just before entering a view.

PR Close #31839
This commit is contained in:
Pawel Kozlowski 2019-07-25 11:24:17 +02:00 committed by Andrew Kushnir
parent 430124a051
commit a4bc0db474
1 changed files with 0 additions and 2 deletions

View File

@ -413,8 +413,6 @@ export function renderEmbeddedTemplate<T>(viewToRender: LView, tView: TView, con
// Will become true if the `try` block executes with no errors.
let safeToRunHooks = false;
try {
setPreviousOrParentTNode(null !, true);
oldView = enterView(viewToRender, viewToRender[T_HOST]);
resetPreOrderHookFlags(viewToRender);
executeTemplate(viewToRender, tView.template !, getRenderFlags(viewToRender), context);