Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Oct 2, 2025

Stacked on #34682

Maybe also add a nudge to use the tracks in the flamegraph and ranked sub-tabs of the React Profiler tab?

New message for current versions:

localhost_8080_ (4)

New message for older versions:

localhost_8080_ (2)

@meta-cla meta-cla bot added the CLA Signed label Oct 2, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Oct 2, 2025
Comment on lines +2406 to +2408
if (supportsPerformanceTracks) {
profilingFlags |= PROFILING_FLAG_PERFORMANCE_TRACKS_SUPPORT;
}
Copy link
Collaborator Author

@eps1lon eps1lon Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to always set that and have a dedicated message for when you have a prod build with performance tracks and click on the timeline profiler?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, should recommend configuring the profiling build with a link.

@eps1lon eps1lon marked this pull request as ready for review October 2, 2025 11:43
@eps1lon eps1lon requested a review from sebmarkbage October 2, 2025 11:43
Comment on lines 45 to 54
<code className={styles.Code}>react-dom@{'>='}18</code>. React 19.2
and above must use{' '}
<a
className={styles.Link}
href="https://react.dev/reference/dev-tools/react-performance-tracks"
rel="noopener noreferrer"
target="_blank">
React Performance tracks
</a>{' '}
instead.
Copy link
Member

@rickhanlonii rickhanlonii Oct 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • i'd replace "must" with "can"
  • would wrap the "react 19.2 ..." message to a new line
  • maybe say something about deprecating this and removing in a future release

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we'll remove it since you can still use it with React 18 which doesn't have performance tracks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapped the message and adjusted wording to "In React 19.2 and above React Performance tracks can be used."

@eps1lon eps1lon force-pushed the sebbie/10-02-_devtools_recommend_react_performance_tracks_if_supported_when_timeline_profiler_is_not_supported branch from f03175a to 559bfea Compare October 2, 2025 15:01
@eps1lon eps1lon merged commit bc828bf into facebook:main Oct 2, 2025
240 of 241 checks passed
@eps1lon eps1lon deleted the sebbie/10-02-_devtools_recommend_react_performance_tracks_if_supported_when_timeline_profiler_is_not_supported branch October 2, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants