Skip to content

Commit

Permalink
Small optimization to moveVNodeDOM
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Apr 26, 2022
1 parent f59fa6a commit 7b66a2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/inferno/src/DOM/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,11 @@ export function moveVNodeDOM(parentVNode, vNode, parentDOM, nextNode, animations
refOrInstance = vNode.children;
instanceProps = vNode.props;
vNode = children.$LI;
}
if (flags & VNodeFlags.ComponentFunction) {
} else if (flags & VNodeFlags.ComponentFunction) {
refOrInstance = vNode.ref;
instanceProps = vNode.props;
vNode = children;
}
if (flags & VNodeFlags.Fragment) {
} else if (flags & VNodeFlags.Fragment) {
if (vNode.childFlags === ChildFlags.HasVNodeChildren) {
vNode = children;
} else {
Expand Down

0 comments on commit 7b66a2d

Please sign in to comment.