Skip to content

Commit 178188b

Browse files
authored
Update implementation-notes.md
prevChild could be CompositeComponent which cause prevChild.node to be undefined
1 parent 29835da commit 178188b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/implementation-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ We collect DOM operations on children in a list so we can execute them in batch:
771771
// Finally, unmount any children that don't exist:
772772
for (var j = nextChildren.length; j < prevChildren.length; j++) {
773773
var prevChild = prevRenderedChildren[j];
774-
var node = prevChild.node;
774+
var node = prevChild.getHostNode();
775775
prevChild.unmount();
776776

777777
// Record that we need to remove the node

0 commit comments

Comments
 (0)