Skip to content

[DevTools] Disable Activity slices by default#459

Closed
everettbu wants to merge 2 commits into
mainfrom
sebbie/02-03-_devtools_disable_activity_slices_by_default
Closed

[DevTools] Disable Activity slices by default#459
everettbu wants to merge 2 commits into
mainfrom
sebbie/02-03-_devtools_disable_activity_slices_by_default

Conversation

@everettbu

Copy link
Copy Markdown

Mirror of facebook/react#35685
Original author: eps1lon


This feature needs some more work before it's ready to be released. Should've been flagged from the start.

Flag is turned on for local development.

@everettbu everettbu added CLA Signed React Core Team Opened by a member of the React Core Team labels Feb 3, 2026
@everettbu
everettbu marked this pull request as ready for review February 3, 2026 18:28
@greptile-apps

greptile-apps Bot commented Feb 3, 2026

Copy link
Copy Markdown

Greptile Overview

Greptile Summary

This PR disables Activity slices in React DevTools by default while keeping them enabled for local development. The new enableActivitySlices feature flag is:

  • Set to false for all Facebook builds (core and extension)
  • Set to __DEV__ for open-source builds (enabled only in development mode)

The flag properly gates the Activity list UI in SuspenseTab.js, hiding both the Activity panel and its toggle button when the flag is disabled or when no Activity boundaries exist.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The changes are straightforward feature flag additions that properly gate an experimental UI feature, with consistent implementation across all DevTools build configurations
  • No files require special attention

Important Files Changed

Filename Overview
packages/react-devtools-shared/src/config/DevToolsFeatureFlags.default.js Added enableActivitySlices flag set to __DEV__ for default builds (enabled only in development)
packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTab.js Imported and used enableActivitySlices flag to conditionally disable Activity slices UI when flag is off

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

2 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@everettbu

Copy link
Copy Markdown
Author

Upstream PR was closed or merged. Code is synced via branch mirror.

@everettbu everettbu closed this Feb 4, 2026
@everettbu
everettbu deleted the sebbie/02-03-_devtools_disable_activity_slices_by_default branch February 4, 2026 10:26
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.

2 participants