Permalink
Browse files

work around inspector redbox due to Fiber

Summary: This temporarily fixes redbox when using Inspector before Fiber is fully ready.

Reviewed By: sebmarkbage

Differential Revision: D4593324

fbshipit-source-id: 287df97f5ecf30c15890f7f7bca4646421bb41c8
  • Loading branch information...
fkgozali authored and facebook-github-bot committed Feb 21, 2017
1 parent 724d89d commit fa34035defbf126f92e81dfe1b091b5d0755c537
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Inspector/InspectorUtils.js
@@ -21,7 +21,7 @@ function traverseOwnerTreeUp(hierarchy, instance) {
function findInstanceByNativeTag(nativeTag) {
var instance = ReactNativeComponentTree.getInstanceFromNode(nativeTag);
if (typeof instance.tag === 'number') {
if (!instance || typeof instance.tag === 'number') {
// TODO(sema): We've disabled the inspector when using Fiber. Fix #15953531
return null;
}

0 comments on commit fa34035

Please sign in to comment.