perf(ivy): guard directive-related operations with a TNode flag (#32445)
PR Close #32445
This commit is contained in:

committed by
Miško Hevery

parent
a383a5a165
commit
641c5c1c1e
@ -526,7 +526,7 @@ function getRenderParent(tNode: TNode, currentView: LView): RElement|null {
|
||||
}
|
||||
|
||||
ngDevMode && assertNodeType(parentTNode, TNodeType.Element);
|
||||
if (parentTNode.flags & TNodeFlags.isComponent) {
|
||||
if (parentTNode.flags & TNodeFlags.isComponentHost) {
|
||||
const tData = currentView[TVIEW].data;
|
||||
const tNode = tData[parentTNode.index] as TNode;
|
||||
const encapsulation = (tData[tNode.directiveStart] as ComponentDef<any>).encapsulation;
|
||||
|
Reference in New Issue
Block a user