Skip to content

Commit 2251c14

Browse files
committed
Add disableStringRefs feature flag
1 parent 335b94c commit 2251c14

7 files changed

+9
-0
lines changed

packages/shared/ReactFeatureFlags.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ export const enableInfiniteRenderLoopDetection = true;
185185
// during element creation.
186186
export const enableRefAsProp = __NEXT_MAJOR__;
187187

188+
// Removes support for string refs
189+
export const disableStringRefs = __NEXT_MAJOR__;
190+
188191
// -----------------------------------------------------------------------------
189192
// Chopping Block
190193
//

packages/shared/forks/ReactFeatureFlags.native-fb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export const enableInfiniteRenderLoopDetection = false;
100100
// TODO: Roll out with GK. Don't keep as dynamic flag for too long, though,
101101
// because JSX is an extremely hot path.
102102
export const enableRefAsProp = false;
103+
export const disableStringRefs = false;
103104

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

packages/shared/forks/ReactFeatureFlags.native-oss.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export const enableServerComponentKeys = true;
9191

9292
// TODO: Should turn this on in next "major" RN release.
9393
export const enableRefAsProp = false;
94+
export const disableStringRefs = false;
9495

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const enableInfiniteRenderLoopDetection = false;
9797
// flags should be handled by the Fiber config.
9898
const __NEXT_MAJOR__ = __EXPERIMENTAL__;
9999
export const enableRefAsProp = __NEXT_MAJOR__;
100+
export const disableStringRefs = __NEXT_MAJOR__;
100101

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export const disableClientCache = true;
8787
export const enableServerComponentKeys = true;
8888

8989
export const enableRefAsProp = false;
90+
export const disableStringRefs = false;
9091

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const enableServerComponentKeys = true;
9090
export const enableInfiniteRenderLoopDetection = false;
9191

9292
export const enableRefAsProp = false;
93+
export const disableStringRefs = false;
9394

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

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const enableServerComponentKeys = true;
119119
// TODO: Roll out with GK. Don't keep as dynamic flag for too long, though,
120120
// because JSX is an extremely hot path.
121121
export const enableRefAsProp = false;
122+
export const disableStringRefs = false;
122123

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

0 commit comments

Comments
 (0)