dillon1000/react
Commit
Browse files Avoid double logging component render time (#32749)
This got moved into the functional component and class component case statements here: https://github.com/facebook/react/commit/0de1233fd180969f7ffdfc98151922f2466ceb1f. So that we could separate the error case for class components. However, due to a faulty rebase this got restored at the top as well. Leading to double component renders being logged. In the other offscreen reconnect passes we don't do this in each case statement but still once at the top. The reason this doesn't matter is because use the PerformedWork flag and that is only set for function and class components. Although maybe it should be set for expensive DOM components too and then we have to remember this.
Changed paths1 file
First-parent comparisonpackages/react-reconciler/src/ReactFiberCommitWork.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…