mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
a2e2949b98c79fafa8e586f4522f493ba31b31b8
We used to queue a separate third passive phase to invoke onPostCommit but this is unnecessary. We can just treat it as a plain passive effect. This means it is interleaved with other passive effects but we only need to know the duration of the things below us which is already done at this point. I also extracted the user space call to onPostCommit into ReactCommitEffects. Same as onCommit. It's now covered by runWithFiberInDEV and catches. DiffTrain build for commit https://github.com/facebook/react/commit/ee1a403a3019dd8bffb12174d269d8c85bfab8a1.
[Fiber] Move Profiler onPostCommit processing of passive effect durations to plain passive effect (#30966)
react-fbsource-import
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%