dillon1000/react
Commit
Browse files Scheduling Profiler: Improve warnings and add unit tests (#22038)
* Scheduling Profiler: Updated instructions to mentioned v18+ requirement * Moved long-event warning to post processing This lets us rule out non-React work or React work that started before the event and finished quickly during the event. Also added unit tests for this warning and the various cases. * Moved long-event warning to post processing This lets us rule out non-React work or React work that started before the event and finished quickly during the event. Also added unit tests for this warning and the various cases. * Updated nested update warning text * Udpate warning about suspending outside of a transition Handle edge case where component suspends before the first commit (and label metadata) has been logged. Add unit tests. * Fixed logic error in getBatchRange() with minStartTime * PR feedback: Combined a conditional statement
Changed paths5 files
First-parent comparisonpackages/react-devtools-scheduling-profiler/src/SchedulingProfiler.css ModifiedM packages/react-devtools-scheduling-profiler/src/SchedulingProfiler.js ModifiedM packages/react-devtools-scheduling-profiler/src/import-worker/__tests__/preprocessData-test.internal.js ModifiedM packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js ModifiedM packages/react-devtools-scheduling-profiler/src/utils/getBatchRange.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…