Skip to content

Commit 68abbac

Browse files
sebmarkbagezpao
authored andcommitted
Expose the rendered children before they're actually mounted
Exposing the _renderedChildren property before all the children are fully mounted. This allows us to debug a partially mounted tree when the debugger has a breakpoint in the one of the mounting children. This only has a functional difference in the case where mounting throws. This will end up not mounting the component anyway. Any remounting shouldn't be affected by this change.
1 parent a9b3139 commit 68abbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ReactMultiChild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ var ReactMultiChild = {
197197
mountChildren: function(children, transaction) {
198198
var mountImages = [];
199199
var index = 0;
200+
this._renderedChildren = children;
200201
for (var name in children) {
201202
var child = children[name];
202203
if (children.hasOwnProperty(name) && child) {
@@ -213,7 +214,6 @@ var ReactMultiChild = {
213214
index++;
214215
}
215216
}
216-
this._renderedChildren = children;
217217
return mountImages;
218218
},
219219

0 commit comments

Comments
 (0)