Skip to content

Commit d4adaa6

Browse files
committed
Enable owner stacks in Canary builds
1 parent 056073d commit d4adaa6

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

packages/react/index.stable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export {
1111
__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1212
__COMPILER_RUNTIME,
1313
act,
14+
captureOwnerStack,
1415
Children,
1516
Component,
1617
Fragment,

packages/react/src/ReactServer.js

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const passChildrenWhenCloningPersistedNodes = false;
132132
*/
133133
export const enablePersistedModeClonedFlag = false;
134134

135-
export const enableOwnerStacks = __EXPERIMENTAL__;
135+
export const enableOwnerStacks = true;
136136

137137
export const enableShallowPropDiffing = false;
138138

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const enableReactTestRendererWarning = true;
8787
export const disableDefaultPropsExceptForClasses = true;
8888

8989
export const enableObjectFiber = false;
90-
export const enableOwnerStacks = false;
90+
export const enableOwnerStacks = true;
9191

9292
// Flow magic to verify the exports of this file match the original version.
9393
((((null: any): ExportsType): FeatureFlagsType): ExportsType);

0 commit comments

Comments
 (0)