Skip to content

Commit

Permalink
work around inspector redbox due to Fiber
Browse files Browse the repository at this point in the history
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 fa34035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Inspector/InspectorUtils.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa34035

Please sign in to comment.