Skip to content

Commit

Permalink
Cleanup enableSyncDefaultUpdate flag (#26236)
Browse files Browse the repository at this point in the history
This feature flag is enabled everywhere.

DiffTrain build for [b2ae9dd](b2ae9dd)
  • Loading branch information
kassens committed Feb 27, 2023
1 parent 0657099 commit 294d43d
Show file tree
Hide file tree
Showing 28 changed files with 62 additions and 98 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6ff1733e63fdb948ae973a713741b4526102c73c
b2ae9ddb3b497d16a7c27c051da1827d08871138
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6ff1733e63fdb948ae973a713741b4526102c73c
b2ae9ddb3b497d16a7c27c051da1827d08871138
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-www-classic-6ff1733e6-20230225";
var ReactVersion = "18.3.0-www-classic-b2ae9ddb3-20230227";

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-www-modern-6ff1733e6-20230225";
var ReactVersion = "18.3.0-www-modern-b2ae9ddb3-20230227";

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,4 +646,4 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-6ff1733e6-20230225";
exports.version = "18.3.0-www-classic-b2ae9ddb3-20230227";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,4 +638,4 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-6ff1733e6-20230225";
exports.version = "18.3.0-www-modern-b2ae9ddb3-20230227";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-6ff1733e6-20230225";
exports.version = "18.3.0-www-classic-b2ae9ddb3-20230227";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ exports.useSyncExternalStore = function (
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-6ff1733e6-20230225";
exports.version = "18.3.0-www-modern-b2ae9ddb3-20230227";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
7 changes: 2 additions & 5 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

var ReactVersion = "18.3.0-www-classic-6ff1733e6-20230225";
var ReactVersion = "18.3.0-www-classic-b2ae9ddb3-20230227";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -178,7 +178,6 @@ var replayFailedUnitOfWorkWithInvokeGuardedCallback =
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
enableLazyContextPropagation =
dynamicFeatureFlags.enableLazyContextPropagation,
enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates,
enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing;
// On WWW, false is used for a new modern build.
Expand Down Expand Up @@ -26929,9 +26928,7 @@ function createHostRootFiber(
}

if (
// We only use this flag for our repo tests to check both behaviors.
// TODO: Flip this flag and rename it something like "forceConcurrentByDefaultForTesting"
!enableSyncDefaultUpdates || // Only for internal experiments.
// Only for internal experiments.
concurrentUpdatesByDefaultOverride
) {
mode |= ConcurrentUpdatesByDefaultMode;
Expand Down
7 changes: 2 additions & 5 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

var ReactVersion = "18.3.0-www-modern-6ff1733e6-20230225";
var ReactVersion = "18.3.0-www-modern-b2ae9ddb3-20230227";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -178,7 +178,6 @@ var replayFailedUnitOfWorkWithInvokeGuardedCallback =
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
enableLazyContextPropagation =
dynamicFeatureFlags.enableLazyContextPropagation,
enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates,
enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing;
// On WWW, true is used for a new modern build.
Expand Down Expand Up @@ -26589,9 +26588,7 @@ function createHostRootFiber(
}

if (
// We only use this flag for our repo tests to check both behaviors.
// TODO: Flip this flag and rename it something like "forceConcurrentByDefaultForTesting"
!enableSyncDefaultUpdates || // Only for internal experiments.
// Only for internal experiments.
concurrentUpdatesByDefaultOverride
) {
mode |= ConcurrentUpdatesByDefaultMode;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9780,7 +9780,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-classic-6ff1733e6-20230225",
version: "18.3.0-www-classic-b2ae9ddb3-20230227",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1300 = {
Expand Down Expand Up @@ -9811,7 +9811,7 @@ var internals$jscomp$inline_1300 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-6ff1733e6-20230225"
reconcilerVersion: "18.3.0-next-b2ae9ddb3-20230227"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1301 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -9445,7 +9445,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-modern-6ff1733e6-20230225",
version: "18.3.0-www-modern-b2ae9ddb3-20230227",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1280 = {
Expand Down Expand Up @@ -9476,7 +9476,7 @@ var internals$jscomp$inline_1280 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-6ff1733e6-20230225"
reconcilerVersion: "18.3.0-next-b2ae9ddb3-20230227"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1281 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
7 changes: 2 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ var disableInputAttributeSyncing =
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
enableLazyContextPropagation =
dynamicFeatureFlags.enableLazyContextPropagation,
enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates,
enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane,
enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay =
dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay,
Expand Down Expand Up @@ -41547,9 +41546,7 @@ function createHostRootFiber(
}

if (
// We only use this flag for our repo tests to check both behaviors.
// TODO: Flip this flag and rename it something like "forceConcurrentByDefaultForTesting"
!enableSyncDefaultUpdates || // Only for internal experiments.
// Only for internal experiments.
concurrentUpdatesByDefaultOverride
) {
mode |= ConcurrentUpdatesByDefaultMode;
Expand Down Expand Up @@ -42102,7 +42099,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-6ff1733e6-20230225";
var ReactVersion = "18.3.0-www-classic-b2ae9ddb3-20230227";

function createPortal$1(
children,
Expand Down
7 changes: 2 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ var disableInputAttributeSyncing =
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
enableLazyContextPropagation =
dynamicFeatureFlags.enableLazyContextPropagation,
enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates,
enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane,
enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay =
dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay,
Expand Down Expand Up @@ -41151,9 +41150,7 @@ function createHostRootFiber(
}

if (
// We only use this flag for our repo tests to check both behaviors.
// TODO: Flip this flag and rename it something like "forceConcurrentByDefaultForTesting"
!enableSyncDefaultUpdates || // Only for internal experiments.
// Only for internal experiments.
concurrentUpdatesByDefaultOverride
) {
mode |= ConcurrentUpdatesByDefaultMode;
Expand Down Expand Up @@ -41706,7 +41703,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-modern-6ff1733e6-20230225";
var ReactVersion = "18.3.0-www-modern-b2ae9ddb3-20230227";

function createPortal$1(
children,
Expand Down
18 changes: 7 additions & 11 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var Scheduler = require("scheduler"),
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
enableLazyContextPropagation =
dynamicFeatureFlags.enableLazyContextPropagation,
enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates,
enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane,
enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay =
dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay,
Expand Down Expand Up @@ -15060,14 +15059,11 @@ function createFiberRoot(
containerInfo.hydrationCallbacks = hydrationCallbacks;
enableTransitionTracing &&
(containerInfo.transitionCallbacks = transitionCallbacks);
if (1 === tag) {
if (
((tag = 1),
1 === tag
? ((tag = 1),
!0 === isStrictMode && (tag |= 24),
!enableSyncDefaultUpdates || concurrentUpdatesByDefaultOverride)
)
tag |= 32;
} else tag = 0;
concurrentUpdatesByDefaultOverride && (tag |= 32))
: (tag = 0);
isStrictMode = createFiber(3, null, null, tag);
containerInfo.current = isStrictMode;
isStrictMode.stateNode = containerInfo;
Expand Down Expand Up @@ -15494,7 +15490,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1741 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-6ff1733e6-20230225",
version: "18.3.0-www-classic-b2ae9ddb3-20230227",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2108 = {
Expand Down Expand Up @@ -15524,7 +15520,7 @@ var internals$jscomp$inline_2108 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-6ff1733e6-20230225"
reconcilerVersion: "18.3.0-next-b2ae9ddb3-20230227"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2109 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15780,4 +15776,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-6ff1733e6-20230225";
exports.version = "18.3.0-next-b2ae9ddb3-20230227";
18 changes: 7 additions & 11 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
enableLazyContextPropagation =
dynamicFeatureFlags.enableLazyContextPropagation,
enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates,
enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane,
enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay =
dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay,
Expand Down Expand Up @@ -14780,14 +14779,11 @@ function createFiberRoot(
containerInfo.hydrationCallbacks = hydrationCallbacks;
enableTransitionTracing &&
(containerInfo.transitionCallbacks = transitionCallbacks);
if (1 === tag) {
if (
((tag = 1),
1 === tag
? ((tag = 1),
!0 === isStrictMode && (tag |= 24),
!enableSyncDefaultUpdates || concurrentUpdatesByDefaultOverride)
)
tag |= 32;
} else tag = 0;
concurrentUpdatesByDefaultOverride && (tag |= 32))
: (tag = 0);
isStrictMode = createFiber(3, null, null, tag);
containerInfo.current = isStrictMode;
isStrictMode.stateNode = containerInfo;
Expand Down Expand Up @@ -15023,7 +15019,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1700 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-6ff1733e6-20230225",
version: "18.3.0-www-modern-b2ae9ddb3-20230227",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2072 = {
Expand Down Expand Up @@ -15054,7 +15050,7 @@ var internals$jscomp$inline_2072 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-6ff1733e6-20230225"
reconcilerVersion: "18.3.0-next-b2ae9ddb3-20230227"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2073 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15239,4 +15235,4 @@ exports.unstable_flushControlled = function (fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-6ff1733e6-20230225";
exports.version = "18.3.0-next-b2ae9ddb3-20230227";
18 changes: 7 additions & 11 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ var Scheduler = require("scheduler"),
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
enableLazyContextPropagation =
dynamicFeatureFlags.enableLazyContextPropagation,
enableSyncDefaultUpdates = dynamicFeatureFlags.enableSyncDefaultUpdates,
enableUnifiedSyncLane = dynamicFeatureFlags.enableUnifiedSyncLane,
enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay =
dynamicFeatureFlags.enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay,
Expand Down Expand Up @@ -15824,14 +15823,11 @@ function createFiberRoot(
containerInfo.hydrationCallbacks = hydrationCallbacks;
enableTransitionTracing &&
(containerInfo.transitionCallbacks = transitionCallbacks);
if (1 === tag) {
if (
((tag = 1),
1 === tag
? ((tag = 1),
!0 === isStrictMode && (tag |= 24),
!enableSyncDefaultUpdates || concurrentUpdatesByDefaultOverride)
)
tag |= 32;
} else tag = 0;
concurrentUpdatesByDefaultOverride && (tag |= 32))
: (tag = 0);
isDevToolsPresent && (tag |= 2);
isStrictMode = createFiber(3, null, null, tag);
containerInfo.current = isStrictMode;
Expand Down Expand Up @@ -16264,7 +16260,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1821 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-6ff1733e6-20230225",
version: "18.3.0-www-classic-b2ae9ddb3-20230227",
rendererPackageName: "react-dom"
};
(function (internals) {
Expand Down Expand Up @@ -16308,7 +16304,7 @@ var devToolsConfig$jscomp$inline_1821 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-6ff1733e6-20230225"
reconcilerVersion: "18.3.0-next-b2ae9ddb3-20230227"
});
assign(Internals, {
ReactBrowserEventEmitter: {
Expand Down Expand Up @@ -16551,7 +16547,7 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-6ff1733e6-20230225";
exports.version = "18.3.0-next-b2ae9ddb3-20230227";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Loading

0 comments on commit 294d43d

Please sign in to comment.