Skip to content

Commit

Permalink
Merge pull request #6549 from gaearon/instrumentation-new
Browse files Browse the repository at this point in the history
Provide info about component tree to devtools
  • Loading branch information
gaearon committed Apr 26, 2016
2 parents aeda846 + a9e0896 commit 76a4c46
Show file tree
Hide file tree
Showing 13 changed files with 2,053 additions and 312 deletions.
124 changes: 0 additions & 124 deletions src/isomorphic/ReactDebugInstanceMap.js

This file was deleted.

28 changes: 20 additions & 8 deletions src/isomorphic/ReactDebugTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,29 @@ var ReactDebugTool = {
onSetState() {
emitEvent('onSetState');
},
onMountRootComponent(internalInstance) {
emitEvent('onMountRootComponent', internalInstance);
onSetDisplayName(debugID, displayName) {
emitEvent('onSetDisplayName', debugID, displayName);
},
onMountComponent(internalInstance) {
emitEvent('onMountComponent', internalInstance);
onSetChildren(debugID, childDebugIDs) {
emitEvent('onSetChildren', debugID, childDebugIDs);
},
onUpdateComponent(internalInstance) {
emitEvent('onUpdateComponent', internalInstance);
onSetOwner(debugID, ownerDebugID) {
emitEvent('onSetOwner', debugID, ownerDebugID);
},
onUnmountComponent(internalInstance) {
emitEvent('onUnmountComponent', internalInstance);
onSetText(debugID, text) {
emitEvent('onSetText', debugID, text);
},
onMountRootComponent(debugID) {
emitEvent('onMountRootComponent', debugID);
},
onMountComponent(debugID) {
emitEvent('onMountComponent', debugID);
},
onUpdateComponent(debugID) {
emitEvent('onUpdateComponent', debugID);
},
onUnmountComponent(debugID) {
emitEvent('onUnmountComponent', debugID);
},
onTestEvent() {
emitEvent('onTestEvent');
Expand Down
173 changes: 0 additions & 173 deletions src/isomorphic/__tests__/ReactDebugInstanceMap-test.js

This file was deleted.

Loading

0 comments on commit 76a4c46

Please sign in to comment.