Turn on enableRenderableContext in experimental (#28645)
Let's get this into experimental to get more usage and allow other renderers to test against the changes easier.
Jack Pope committed
Mar 26, 2024 at 14:17 UTC
738993da0b32508e275627d60ace58d972af464b
2 files changed
+4
-3
packages/shared/ReactFeatureFlags.js
+3
-2
@@ -116,8 +116,6 @@ export const passChildrenWhenCloningPersistedNodes = false;
116
117
export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;
118
119
-export const enableRenderableContext = false;
120
-
119
export const enableServerComponentLogs = __EXPERIMENTAL__;
120
121
/**
@@ -202,6 +200,9 @@ export const disableLegacyMode = __NEXT_MAJOR__;
200
// result in false property i.e. break existing usage.
201
export const enableNewBooleanProps = __NEXT_MAJOR__;
202
203
+// Make <Context> equivalent to <Context.Provider> instead of <Context.Consumer>
204
+export const enableRenderableContext = __NEXT_MAJOR__;
205
+
206
// -----------------------------------------------------------------------------
207
// Chopping Block
208
//
packages/shared/forks/ReactFeatureFlags.test-renderer.js
+1
-1
@@ -44,7 +44,6 @@ export const enableComponentStackLocations = true;
44
export const enableLegacyFBSupport = false;
45
export const enableFilterEmptyStringAttributesDOM = true;
46
export const enableGetInspectorDataForInstanceInProduction = false;
47
-export const enableRenderableContext = false;
47
48
export const enableRetryLaneExpiration = false;
49
export const retryLaneExpirationMs = 5000;
@@ -97,6 +96,7 @@ export const disableLegacyMode = __NEXT_MAJOR__;
96
export const disableLegacyContext = __NEXT_MAJOR__;
97
export const enableNewBooleanProps = __NEXT_MAJOR__;
98
export const disableModulePatternComponents = __NEXT_MAJOR__;
99
+export const enableRenderableContext = __NEXT_MAJOR__;
100
101
// Flow magic to verify the exports of this file match the original version.
102
((((null: any): ExportsType): FeatureFlagsType): ExportsType);