dillon1000/react

Commit

fix[react-devtools]: removed redundant startProfiling call (#31131)

Stacked on https://github.com/facebook/react/pull/31118. See last
commit.

We don't need to call `startProfiling()` here, because we delegate this
to the Renderer itself:

https://github.com/facebook/react/blob/830e823cd2c6ee675636d31320b10350e8ade9ae/packages/react-devtools-shared/src/backend/fiber/renderer.js#L5227-L5232

Since this is de-facto the constructor of Renderer, this will be called
earlier.

Validated via testing the reload-to-profile for Chrome browser
extension.
Browse files
Changed paths1 file
First-parent comparison
M packages/react-devtools-shared/src/backend/agent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…