dillon1000/react
Commit
Browse files Add ReactInstrumentation
This adds `ReactInstrumentation` for the isomorphic package that uses the same approach as `ReactDOMInstrumentation`. Currently it is gated behind `__DEV__` but we will likely change this later to a runtime flag determined by whether there are any active listeners. The first few events we add here should be sufficient for React DevTools, as determined by the `hook.emit()` calls in https://github.com/facebook/react-devtools/blob/d90c43201617d5aef378669da926d79515b6a811/backend/attachRenderer.js. These events will also be useful for reconstructing the parent tree in the ReactPerf rewrite in #6046.
Changed paths4 files
First-parent comparisonsrc/isomorphic/ReactDebugTool.js AddedA src/isomorphic/ReactInstrumentation.js AddedM src/renderers/dom/client/ReactMount.js ModifiedM src/renderers/shared/reconciler/ReactReconciler.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…