Skip to content

Commit 32b0cad

Browse files
authoredFeb 13, 2025··
Enable owner stacks in Canary builds (#32053)
Pending internal decision to ship in Canary. Still off for FB builds. Docs: reactjs/react.dev#7427
1 parent ed8b68d commit 32b0cad

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed
 

‎packages/react/index.stable.development.js

+1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ export {
4848
useActionState,
4949
version,
5050
act, // DEV-only
51+
captureOwnerStack, // DEV-only
5152
} from './src/ReactClient';

‎packages/react/src/ReactServer.js

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {lazy} from './ReactLazy';
2828
import {memo} from './ReactMemo';
2929
import {cache} from './ReactCacheServer';
3030
import version from 'shared/ReactVersion';
31+
import {captureOwnerStack} from './ReactOwnerStack';
3132

3233
const Children = {
3334
map,
@@ -57,4 +58,5 @@ export {
5758
useDebugValue,
5859
useMemo,
5960
version,
61+
captureOwnerStack, // DEV-only
6062
};

‎packages/shared/ReactFeatureFlags.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const passChildrenWhenCloningPersistedNodes = false;
127127
*/
128128
export const enablePersistedModeClonedFlag = false;
129129

130-
export const enableOwnerStacks = __EXPERIMENTAL__;
130+
export const enableOwnerStacks = true;
131131

132132
export const enableShallowPropDiffing = false;
133133

‎packages/shared/forks/ReactFeatureFlags.test-renderer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const enableReactTestRendererWarning = true;
8888
export const disableDefaultPropsExceptForClasses = true;
8989

9090
export const enableObjectFiber = false;
91-
export const enableOwnerStacks = false;
91+
export const enableOwnerStacks = true;
9292
export const enableRemoveConsolePatches = true;
9393

9494
// Flow magic to verify the exports of this file match the original version.

0 commit comments

Comments
 (0)
Please sign in to comment.