From 178188bb3795bbd301b6a24ffd87ac28e2b42368 Mon Sep 17 00:00:00 2001 From: hardfist Date: Fri, 6 Oct 2017 18:58:41 -0500 Subject: [PATCH] Update implementation-notes.md prevChild could be CompositeComponent which cause prevChild.node to be undefined --- content/docs/implementation-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/implementation-notes.md b/content/docs/implementation-notes.md index 0c795a1b0e6..b53b013df81 100644 --- a/content/docs/implementation-notes.md +++ b/content/docs/implementation-notes.md @@ -771,7 +771,7 @@ We collect DOM operations on children in a list so we can execute them in batch: // Finally, unmount any children that don't exist: for (var j = nextChildren.length; j < prevChildren.length; j++) { var prevChild = prevRenderedChildren[j]; - var node = prevChild.node; + var node = prevChild.getHostNode(); prevChild.unmount(); // Record that we need to remove the node