mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -48,4 +48,5 @@ export {
|
||||
useActionState,
|
||||
version,
|
||||
act, // DEV-only
|
||||
captureOwnerStack, // DEV-only
|
||||
} from './src/ReactClient';
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user