No need for a special case here
Dan Abramov committed
Apr 21, 2016 at 18:56 UTC
1f2e78359facd976e32d7f1254926b554354efaf
1 file changed
+1
-3
src/renderers/shared/reconciler/instantiateReactComponent.js
+1
-3
@@ -84,12 +84,10 @@ var nextDebugID = 1;
84
function instantiateReactComponent(node) {
85
var instance;
86
87
- var isEmpty = false;
87
var isNative = false;
88
var isComposite = false;
89
90
if (node === null || node === false) {
92
- isEmpty = true;
91
instance = ReactEmptyComponent.create(instantiateReactComponent);
92
} else if (typeof node === 'object') {
93
var element = node;
@@ -148,7 +146,7 @@ function instantiateReactComponent(node) {
146
}
147
148
if (__DEV__) {
151
- instance._debugID = isEmpty ? 0 : nextDebugID++;
149
+ instance._debugID = nextDebugID++;
150
var displayName = getDisplayName(instance);
151
ReactInstrumentation.debugTool.onSetIsComposite(instance._debugID, isComposite);
152
ReactInstrumentation.debugTool.onSetDisplayName(instance._debugID, displayName);