Enable owner stacks in Canary builds (#32053)

Pending internal decision to ship in Canary.
Still off for FB builds.

Docs: https://github.com/reactjs/react.dev/pull/7427
This commit is contained in:
Sebastian "Sebbie" Silbermann
2025-02-13 14:38:57 -05:00
committed by GitHub
parent ed8b68dd17
commit 32b0cad8f7
4 changed files with 5 additions and 2 deletions
@@ -48,4 +48,5 @@ export {
useActionState,
version,
act, // DEV-only
captureOwnerStack, // DEV-only
} from './src/ReactClient';
+2
View File
@@ -28,6 +28,7 @@ import {lazy} from './ReactLazy';
import {memo} from './ReactMemo';
import {cache} from './ReactCacheServer';
import version from 'shared/ReactVersion';
import {captureOwnerStack} from './ReactOwnerStack';
const Children = {
map,
@@ -57,4 +58,5 @@ export {
useDebugValue,
useMemo,
version,
captureOwnerStack, // DEV-only
};
+1 -1
View File
@@ -127,7 +127,7 @@ export const passChildrenWhenCloningPersistedNodes = false;
*/
export const enablePersistedModeClonedFlag = false;
export const enableOwnerStacks = __EXPERIMENTAL__;
export const enableOwnerStacks = true;
export const enableShallowPropDiffing = false;
@@ -88,7 +88,7 @@ export const enableReactTestRendererWarning = true;
export const disableDefaultPropsExceptForClasses = true;
export const enableObjectFiber = false;
export const enableOwnerStacks = false;
export const enableOwnerStacks = true;
export const enableRemoveConsolePatches = true;
// Flow magic to verify the exports of this file match the original version.