Match-id-8ee01ad048d1ff509df8bd686e82f43318265dc1
This commit is contained in:
parent
f0eb5bec47
commit
816a199970
|
@ -220,7 +220,7 @@ function diffArrayNodesHandler(
|
||||||
parentNode: VNode,
|
parentNode: VNode,
|
||||||
firstChild: VNode | null,
|
firstChild: VNode | null,
|
||||||
newChildren: Array<any>,
|
newChildren: Array<any>,
|
||||||
isComparing: boolean,
|
isComparing: boolean
|
||||||
): VNode | null {
|
): VNode | null {
|
||||||
let resultingFirstChild: VNode | null = null;
|
let resultingFirstChild: VNode | null = null;
|
||||||
|
|
||||||
|
@ -488,7 +488,7 @@ function diffIteratorNodesHandler(
|
||||||
parentNode: VNode,
|
parentNode: VNode,
|
||||||
firstChild: VNode | null,
|
firstChild: VNode | null,
|
||||||
newChildrenIterable: Iterable<any>,
|
newChildrenIterable: Iterable<any>,
|
||||||
isComparing: boolean,
|
isComparing: boolean
|
||||||
): VNode | null {
|
): VNode | null {
|
||||||
const iteratorFn = getIteratorFn(newChildrenIterable);
|
const iteratorFn = getIteratorFn(newChildrenIterable);
|
||||||
const iteratorObj = iteratorFn.call(newChildrenIterable);
|
const iteratorObj = iteratorFn.call(newChildrenIterable);
|
||||||
|
@ -509,7 +509,7 @@ function diffStringNodeHandler(
|
||||||
parentNode: VNode,
|
parentNode: VNode,
|
||||||
newChild: any,
|
newChild: any,
|
||||||
firstChildVNode: VNode,
|
firstChildVNode: VNode,
|
||||||
isComparing: boolean,
|
isComparing: boolean
|
||||||
) {
|
) {
|
||||||
let newTextNode: VNode | null = null;
|
let newTextNode: VNode | null = null;
|
||||||
|
|
||||||
|
@ -539,7 +539,7 @@ function diffObjectNodeHandler(
|
||||||
firstChild: VNode | null,
|
firstChild: VNode | null,
|
||||||
newChild: any,
|
newChild: any,
|
||||||
firstChildVNode: VNode,
|
firstChildVNode: VNode,
|
||||||
isComparing: boolean,
|
isComparing: boolean
|
||||||
) {
|
) {
|
||||||
let canReuseNode: VNode | null = null;
|
let canReuseNode: VNode | null = null;
|
||||||
|
|
||||||
|
@ -621,7 +621,7 @@ export function createChildrenByDiff(
|
||||||
parentNode: VNode,
|
parentNode: VNode,
|
||||||
firstChild: VNode | null,
|
firstChild: VNode | null,
|
||||||
newChild: any,
|
newChild: any,
|
||||||
isComparing: boolean,
|
isComparing: boolean
|
||||||
): VNode | null {
|
): VNode | null {
|
||||||
const isFragment = isNoKeyFragment(newChild);
|
const isFragment = isNoKeyFragment(newChild);
|
||||||
newChild = isFragment ? newChild.props.children : newChild;
|
newChild = isFragment ? newChild.props.children : newChild;
|
||||||
|
|
Loading…
Reference in New Issue