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__;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

__DEV__ is resolved at build time of the DevTools target. It's not the same thing as __DEV__ in the React runtime.

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
Loading