Skip to content

Commit 738993d

Browse files
authored
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.
1 parent 0a44435 commit 738993d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/shared/ReactFeatureFlags.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ export const passChildrenWhenCloningPersistedNodes = false;
116116

117117
export const enableUseDeferredValueInitialArg = __EXPERIMENTAL__;
118118

119-
export const enableRenderableContext = false;
120-
121119
export const enableServerComponentLogs = __EXPERIMENTAL__;
122120

123121
/**
@@ -202,6 +200,9 @@ export const disableLegacyMode = __NEXT_MAJOR__;
202200
// result in false property i.e. break existing usage.
203201
export const enableNewBooleanProps = __NEXT_MAJOR__;
204202

203+
// Make <Context> equivalent to <Context.Provider> instead of <Context.Consumer>
204+
export const enableRenderableContext = __NEXT_MAJOR__;
205+
205206
// -----------------------------------------------------------------------------
206207
// Chopping Block
207208
//

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export const enableComponentStackLocations = true;
4444
export const enableLegacyFBSupport = false;
4545
export const enableFilterEmptyStringAttributesDOM = true;
4646
export const enableGetInspectorDataForInstanceInProduction = false;
47-
export const enableRenderableContext = false;
4847

4948
export const enableRetryLaneExpiration = false;
5049
export const retryLaneExpirationMs = 5000;
@@ -97,6 +96,7 @@ export const disableLegacyMode = __NEXT_MAJOR__;
9796
export const disableLegacyContext = __NEXT_MAJOR__;
9897
export const enableNewBooleanProps = __NEXT_MAJOR__;
9998
export const disableModulePatternComponents = __NEXT_MAJOR__;
99+
export const enableRenderableContext = __NEXT_MAJOR__;
100100

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

0 commit comments

Comments
 (0)