dillon1000/react

Commit

Don't inject timeline hooks unless React supports profiling (#23151)

This gives DevTools a way to detect whether the current React renderer supports Timeline profiling. (Version alone isn't enough to detect this, neither is general profiling support– since these two are controlled by different feature flags.)
Browse files
Changed paths2 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberDevToolsHook.new.js ModifiedM packages/react-reconciler/src/ReactFiberDevToolsHook.old.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…