Skip to content

Enable owner stacks in Canary builds #32053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2025
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
1 change: 1 addition & 0 deletions packages/react/index.stable.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ export {
useActionState,
version,
act, // DEV-only
captureOwnerStack, // DEV-only
} from './src/ReactClient';
2 changes: 2 additions & 0 deletions packages/react/src/ReactServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -57,4 +58,5 @@ export {
useDebugValue,
useMemo,
version,
captureOwnerStack, // DEV-only
};
2 changes: 1 addition & 1 deletion packages/shared/ReactFeatureFlags.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const passChildrenWhenCloningPersistedNodes = false;
*/
export const enablePersistedModeClonedFlag = false;

export const enableOwnerStacks = __EXPERIMENTAL__;
export const enableOwnerStacks = true;

export const enableShallowPropDiffing = false;

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/forks/ReactFeatureFlags.test-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading