File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/react-reconciler/src Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,15 @@ const reusableComponentOptions: PerformanceMeasureOptions = {
203203
204204const reusableChangedPropsEntry = [ 'Changed Props' , '' ] ;
205205
206+ const reusableCascadingUpdateIssue = {
207+ title : 'React: Cascading Update' ,
208+ severity : 'warning' ,
209+ description :
210+ 'A cascading update is a update that is triggered by a previous update. This can lead to performance issues and should be avoided.' ,
211+ learnMoreUrl :
212+ 'https://react.dev/reference/dev-tools/react-performance-tracks#cascading-updates' ,
213+ } ;
214+
206215const DEEP_EQUALITY_WARNING =
207216 'This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.' ;
208217
@@ -761,6 +770,9 @@ export function logBlockingStart(
761770 } ,
762771 } ,
763772 } ;
773+ if ( label === 'Cascading Update' ) {
774+ measureOptions . detail . rnPerfIssue = reusableCascadingUpdateIssue ;
775+ }
764776
765777 if ( debugTask ) {
766778 debugTask . run (
You can’t perform that action at this time.
0 commit comments