dillon1000/react
Commit
Browse files fix: log renders from passive effects for only newly finished work (#33797)
This fixes displaying incorrect component render entries on a timeline, when we are reconnecting passive effects. ### Before <img width="2318" height="1127" alt="1" src="https://github.com/user-attachments/assets/9b6b2824-d2de-43a3-8615-2c45d67c3668" /> The cloned nodes will persist original `actualStartTime`, when these were first mounted. When we "replay", the end time will be "now" or whatever the actual start time of the sibling. Depending on when this is being recorded, the diff between end and start could be tens of seconds and doesn't represent what React was doing. We shouldn't log these entries at all. ### After We are only logging newly finished renders, but could potentially loose renders that never commit.
Changed paths1 file
First-parent comparisonpackages/react-reconciler/src/ReactFiberCommitWork.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…