mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
Set renameElementSymbol to dynamic value (#30066)
Prepare to roll this out with dynamic flag `yarn flags --diff www canary` <img width="514" alt="Screenshot 2024-06-24 at 11 33 55 AM" src="https://github.com/facebook/react/assets/8965173/31508fdc-4cb1-4ce0-8e22-c02a034377b0">
This commit is contained in:
+1
-1
@@ -134,7 +134,7 @@ describe('ReactDOMOption', () => {
|
||||
}).rejects.toThrow('Objects are not valid as a React child');
|
||||
});
|
||||
|
||||
// @gate www
|
||||
// @gate www && !renameElementSymbol
|
||||
it('should support element-ish child', async () => {
|
||||
// This is similar to <fbt>.
|
||||
// We don't toString it because you must instead provide a value prop.
|
||||
|
||||
@@ -32,6 +32,7 @@ export const syncLaneExpirationMs = 250;
|
||||
export const transitionLaneExpirationMs = 5000;
|
||||
export const enableAddPropertiesFastPath = __VARIANT__;
|
||||
export const disableLegacyMode = __VARIANT__;
|
||||
export const renameElementSymbol = __VARIANT__;
|
||||
|
||||
// Enable this flag to help with concurrent mode debugging.
|
||||
// It logs information to the console about React scheduling, rendering, and commit phases.
|
||||
|
||||
@@ -35,6 +35,7 @@ export const {
|
||||
enableNoCloningMemoCache,
|
||||
enableAddPropertiesFastPath,
|
||||
enableFastJSX,
|
||||
renameElementSymbol,
|
||||
} = dynamicFeatureFlags;
|
||||
|
||||
// On WWW, __EXPERIMENTAL__ is used for a new modern build.
|
||||
@@ -65,8 +66,6 @@ export const enableSchedulingProfiler: boolean =
|
||||
export const disableLegacyContext = __EXPERIMENTAL__;
|
||||
export const enableGetInspectorDataForInstanceInProduction = false;
|
||||
|
||||
export const renameElementSymbol = false;
|
||||
|
||||
export const enableCache = true;
|
||||
export const enableLegacyCache = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user