mirror of
https://github.com/facebook/react.git
synced 2026-02-21 19:31:52 +00:00
[DevTools] Disable Activity slices by default (#35685)
This commit is contained in:
committed by
GitHub
parent
3ce1316b05
commit
c9ff56ec74
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
Fragment,
|
||||
} from 'react';
|
||||
|
||||
import {enableActivitySlices} from 'react-devtools-feature-flags';
|
||||
import {
|
||||
localStorageGetItem,
|
||||
localStorageSetItem,
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user