dillon1000/react

Commit

Automatically Profile roots when DevTools is present (#13058)

* react-test-renderer injects itself into DevTools if present
* Fibers are always opted into ProfileMode if DevTools is present
* Added simple test for DevTools + always profiling behavior
Browse files
Changed paths4 files
First-parent comparison
M packages/react-reconciler/src/ReactFiber.js ModifiedM packages/react-reconciler/src/ReactFiberDevToolsHook.js ModifiedM packages/react-test-renderer/src/ReactTestRenderer.js ModifiedA packages/react/src/__tests__/ReactProfilerDevToolsIntegration-test.internal.js Added
Patch

Files changed

Rendering syntax-highlighted changes…