Skip to content

Commit 9f8e935

Browse files
committed
rename flag
1 parent e4cdae2 commit 9f8e935

10 files changed

+14
-14
lines changed

packages/react-reconciler/src/ReactFiberWorkLoop.new.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
enableUpdaterTracking,
4040
enableCache,
4141
enableTransitionTracing,
42-
enablePreloadAPIs,
42+
enableFloat,
4343
} from 'shared/ReactFeatureFlags';
4444
import ReactSharedInternals from 'shared/ReactSharedInternals';
4545
import is from 'shared/objectIs';
@@ -852,7 +852,7 @@ function ensureRootIsScheduled(root: FiberRoot, currentTime: number) {
852852
// goes through Scheduler.
853853
function performConcurrentWorkOnRoot(root, didTimeout) {
854854
try {
855-
if (enablePreloadAPIs) {
855+
if (enableFloat) {
856856
prepareToRender();
857857
}
858858

@@ -992,7 +992,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
992992
}
993993
return null;
994994
} finally {
995-
if (enablePreloadAPIs) {
995+
if (enableFloat) {
996996
cleanupAfterRender();
997997
}
998998
}

packages/react-reconciler/src/ReactFiberWorkLoop.old.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
enableUpdaterTracking,
4040
enableCache,
4141
enableTransitionTracing,
42-
enablePreloadAPIs,
42+
enableFloat,
4343
} from 'shared/ReactFeatureFlags';
4444
import ReactSharedInternals from 'shared/ReactSharedInternals';
4545
import is from 'shared/objectIs';
@@ -846,7 +846,7 @@ function ensureRootIsScheduled(root: FiberRoot, currentTime: number) {
846846
// This is the entry point for every concurrent task, i.e. anything that
847847
// goes through Scheduler.
848848
function performConcurrentWorkOnRoot(root, didTimeout) {
849-
if (enablePreloadAPIs) {
849+
if (enableFloat) {
850850
prepareToRender();
851851
}
852852

@@ -987,7 +987,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
987987
}
988988
return null;
989989
} finally {
990-
if (enablePreloadAPIs) {
990+
if (enableFloat) {
991991
cleanupAfterRender();
992992
}
993993
}

packages/shared/ReactFeatureFlags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,4 @@ export const enableProfilerNestedUpdateScheduledHook = false;
256256
export const consoleManagedByDevToolsDuringStrictMode = true;
257257

258258
// enables preloading apis for React-dom server/client
259-
export const enablePreloadAPIs = true;
259+
export const enableFloat = true;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const enableUseMutableSource = true;
8181
export const enableTransitionTracing = false;
8282
export const enableSymbolFallbackForWWW = false;
8383

84-
export const enablePreloadAPIs = false;
84+
export const enableFloat = false;
8585

8686
// Flow magic to verify the exports of this file match the original version.
8787
// eslint-disable-next-line no-unused-vars

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const enableUseMutableSource = false;
7070
export const enableTransitionTracing = false;
7171
export const enableSymbolFallbackForWWW = false;
7272

73-
export const enablePreloadAPIs = false;
73+
export const enableFloat = false;
7474

7575
// Flow magic to verify the exports of this file match the original version.
7676
// eslint-disable-next-line no-unused-vars

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const enableUseMutableSource = false;
7070
export const enableTransitionTracing = false;
7171
export const enableSymbolFallbackForWWW = false;
7272

73-
export const enablePreloadAPIs = false;
73+
export const enableFloat = false;
7474

7575
// Flow magic to verify the exports of this file match the original version.
7676
// eslint-disable-next-line no-unused-vars

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const enableUseMutableSource = true;
7272
export const enableTransitionTracing = false;
7373
export const enableSymbolFallbackForWWW = false;
7474

75-
export const enablePreloadAPIs = false;
75+
export const enableFloat = false;
7676

7777
// Flow magic to verify the exports of this file match the original version.
7878
// eslint-disable-next-line no-unused-vars

packages/shared/forks/ReactFeatureFlags.testing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const enableUseMutableSource = false;
7070
export const enableTransitionTracing = false;
7171
export const enableSymbolFallbackForWWW = false;
7272

73-
export const enablePreloadAPIs = false;
73+
export const enableFloat = false;
7474

7575
// Flow magic to verify the exports of this file match the original version.
7676
// eslint-disable-next-line no-unused-vars

packages/shared/forks/ReactFeatureFlags.testing.www.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const enableUseMutableSource = true;
7171
export const enableTransitionTracing = false;
7272
export const enableSymbolFallbackForWWW = false;
7373

74-
export const enablePreloadAPIs = false;
74+
export const enableFloat = false;
7575

7676
// Flow magic to verify the exports of this file match the original version.
7777
// eslint-disable-next-line no-unused-vars

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const enableTransitionTracing = false;
110110

111111
export const enableSymbolFallbackForWWW = true;
112112

113-
export const enablePreloadAPIs = true;
113+
export const enableFloat = true;
114114

115115
// Flow magic to verify the exports of this file match the original version.
116116
// eslint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)