Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
perf(ivy): avoid native node retrieval from LView (#33511)
PR Close #33511
  • Loading branch information
pkozlowski-opensource authored and atscott committed Oct 31, 2019
1 parent df1bef3 commit 083d48e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/render3/instructions/container.ts
Expand Up @@ -17,7 +17,7 @@ import {FLAGS, HEADER_OFFSET, InitPhaseState, LView, LViewFlags, RENDERER, TVIEW
import {assertNodeType} from '../node_assert';
import {appendChild, removeView} from '../node_manipulation';
import {getBindingIndex, getCheckNoChangesMode, getIsParent, getLView, getPreviousOrParentTNode, setIsNotParent, setPreviousOrParentTNode} from '../state';
import {getNativeByTNode, load} from '../util/view_utils';
import {load} from '../util/view_utils';

import {addToViewTree, createDirectivesInstances, createLContainer, createTNode, createTView, getOrCreateTNode, resolveDirectives, saveResolvedLocalsInData} from './shared';

Expand Down Expand Up @@ -185,7 +185,7 @@ function containerInternal(
const lContainer = lView[adjustedIndex] = createLContainer(comment, lView, comment, tNode);

appendChild(comment, tNode, lView);
attachPatchData(getNativeByTNode(tNode, lView), lView);
attachPatchData(comment, lView);

// Containers are added to the current view tree instead of their embedded views
// because views can be removed and re-inserted.
Expand Down

0 comments on commit 083d48e

Please sign in to comment.