Skip to content

Commit

Permalink
Fix children being null during hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
developit authored and marvinhagemeister committed Mar 8, 2019
1 parent df86bdd commit eda7e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diff/children.js
Expand Up @@ -24,7 +24,7 @@ export function diffChildren(parentDom, newParentVNode, oldParentVNode, context,
childDom;

let newChildren = newParentVNode._children || toChildArray(newParentVNode.props.children, newParentVNode._children=[], coerceToVNode);
let oldChildren = oldParentVNode==null || oldParentVNode==EMPTY_OBJ ? EMPTY_ARR : oldParentVNode._children;
let oldChildren = oldParentVNode!=null && oldParentVNode!=EMPTY_OBJ && oldParentVNode._children || EMPTY_ARR;

let oldChildrenLength = oldChildren.length;

Expand Down

0 comments on commit eda7e5e

Please sign in to comment.