Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* It should always be imported from "react-devtools-feature-flags".
************************************************************************/

export const enableActivitySlices: boolean = false;
export const enableLogger: boolean = true;
export const enableStyleXFeatures: boolean = true;
export const isInternalFacebookBuild: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* It should always be imported from "react-devtools-feature-flags".
************************************************************************/

export const enableActivitySlices: boolean = __DEV__;
export const enableLogger: boolean = false;
export const enableStyleXFeatures: boolean = false;
export const isInternalFacebookBuild: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* It should always be imported from "react-devtools-feature-flags".
************************************************************************/

export const enableActivitySlices: boolean = __DEV__;
export const enableLogger: boolean = false;
export const enableStyleXFeatures: boolean = false;
export const isInternalFacebookBuild: boolean = false;
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* It should always be imported from "react-devtools-feature-flags".
************************************************************************/

export const enableActivitySlices: boolean = false;
export const enableLogger: boolean = true;
export const enableStyleXFeatures: boolean = true;
export const isInternalFacebookBuild: boolean = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* It should always be imported from "react-devtools-feature-flags".
************************************************************************/

export const enableActivitySlices: boolean = __DEV__;
export const enableLogger: boolean = false;
export const enableStyleXFeatures: boolean = false;
export const isInternalFacebookBuild: boolean = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
Fragment,
} from 'react';

import {enableActivitySlices} from 'react-devtools-feature-flags';
import {
localStorageGetItem,
localStorageSetItem,
Expand Down Expand Up @@ -284,7 +285,7 @@ function SuspenseTab(_: {}) {
const {activities} = useContext(TreeStateContext);
// If there are no named Activity boundaries, we don't have any tree list and we should hide
// both the panel and the button to toggle it.
const activityListDisabled = activities.length === 0;
const activityListDisabled = !enableActivitySlices || activities.length === 0;

const wrapperTreeRef = useRef<null | HTMLElement>(null);
const resizeTreeRef = useRef<null | HTMLElement>(null);
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/forks/ReactFeatureFlags.test-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const enableEagerAlternateStateNodeCleanup: boolean = true;
export const enableYieldingBeforePassive: boolean = true;

export const enableThrottledScheduling: boolean = false;
export const enableViewTransition: boolean = false;
export const enableViewTransition: boolean = true;
export const enableGestureTransition: boolean = false;
export const enableScrollEndPolyfill: boolean = true;
export const enableSuspenseyImages: boolean = false;
Expand Down
Loading