@samitouri / QOS-React / commits / 32b0cad8f7

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

Sebastian "Sebbie" Silbermann committed Feb 13, 2025 at 20:38 UTC 32b0cad8f74da3d6e8b07f4ffbad26dfe8d8a71a
4 files changed +5 -2
packages/react/index.stable.development.js
+1
@@ -48,4 +48,5 @@ export {
48 useActionState,
49 version,
50 act, // DEV-only
51 + captureOwnerStack, // DEV-only
52 } from './src/ReactClient';
packages/react/src/ReactServer.js
+2
@@ -28,6 +28,7 @@ import {lazy} from './ReactLazy';
28 import {memo} from './ReactMemo';
29 import {cache} from './ReactCacheServer';
30 import version from 'shared/ReactVersion';
31 +import {captureOwnerStack} from './ReactOwnerStack';
32
33 const Children = {
34 map,
@@ -57,4 +58,5 @@ export {
58 useDebugValue,
59 useMemo,
60 version,
61 + captureOwnerStack, // DEV-only
62 };
packages/shared/ReactFeatureFlags.js
+1 -1
@@ -127,7 +127,7 @@ export const passChildrenWhenCloningPersistedNodes = false;
127 */
128 export const enablePersistedModeClonedFlag = false;
129
130 -export const enableOwnerStacks = __EXPERIMENTAL__;
130 +export const enableOwnerStacks = true;
131
132 export const enableShallowPropDiffing = false;
133
packages/shared/forks/ReactFeatureFlags.test-renderer.js
+1 -1
@@ -88,7 +88,7 @@ export const enableReactTestRendererWarning = true;
88 export const disableDefaultPropsExceptForClasses = true;
89
90 export const enableObjectFiber = false;
91 -export const enableOwnerStacks = false;
91 +export const enableOwnerStacks = true;
92 export const enableRemoveConsolePatches = true;
93
94 // Flow magic to verify the exports of this file match the original version.