Skip to content

Commit

Permalink
Remove flag enableUseDeferredValueInitialArg (#30595)
Browse files Browse the repository at this point in the history
This is enabled everywhere for a while and I don't think we'd be backing
this out of 19. Seems like it's good to clean up to me.

DiffTrain build for [6590358](6590358)
  • Loading branch information
kassens committed Aug 5, 2024
1 parent 76d8d06 commit 3221ff0
Show file tree
Hide file tree
Showing 36 changed files with 218 additions and 326 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
88ee14ffa57beb0689f26f0c52c357e3ac446af8
65903583d2ab45aea45bdd23ed0b5dc214ff3c1c
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
88ee14ffa57beb0689f26f0c52c357e3ac446af8
65903583d2ab45aea45bdd23ed0b5dc214ff3c1c
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 @@ -2001,7 +2001,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-88ee14ff-20240801";
exports.version = "19.0.0-www-classic-65903583-20240805";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
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 @@ -1981,7 +1981,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-88ee14ff-20240801";
exports.version = "19.0.0-www-modern-65903583-20240805";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
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 @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-88ee14ff-20240801";
exports.version = "19.0.0-www-classic-65903583-20240805";
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 @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-88ee14ff-20240801";
exports.version = "19.0.0-www-modern-65903583-20240805";
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 @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-88ee14ff-20240801";
exports.version = "19.0.0-www-classic-65903583-20240805";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
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 @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-88ee14ff-20240801";
exports.version = "19.0.0-www-modern-65903583-20240805";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
24 changes: 10 additions & 14 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -5021,15 +5021,13 @@ __DEV__ &&
);
}
function mountDeferredValueImpl(hook, value, initialValue) {
return enableUseDeferredValueInitialArg &&
void 0 !== initialValue &&
0 === (renderLanes & 1073741824)
? ((hook.memoizedState = initialValue),
(hook = requestDeferredLane()),
(currentlyRenderingFiber$1.lanes |= hook),
(workInProgressRootSkippedLanes |= hook),
initialValue)
: (hook.memoizedState = value);
if (void 0 === initialValue || 0 !== (renderLanes & 1073741824))
return (hook.memoizedState = value);
hook.memoizedState = initialValue;
hook = requestDeferredLane();
currentlyRenderingFiber$1.lanes |= hook;
workInProgressRootSkippedLanes |= hook;
return initialValue;
}
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
if (objectIs(value, prevValue)) return value;
Expand Down Expand Up @@ -14583,8 +14581,6 @@ __DEV__ &&
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableRetryLaneExpiration = dynamicFeatureFlags.enableRetryLaneExpiration,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableUseDeferredValueInitialArg =
dynamicFeatureFlags.enableUseDeferredValueInitialArg,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs,
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
Expand Down Expand Up @@ -16782,11 +16778,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-88ee14ff-20240801",
version: "19.0.0-www-classic-65903583-20240805",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-88ee14ff-20240801"
reconcilerVersion: "19.0.0-www-classic-65903583-20240805"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16820,7 +16816,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-88ee14ff-20240801";
exports.version = "19.0.0-www-classic-65903583-20240805";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
24 changes: 10 additions & 14 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -4897,15 +4897,13 @@ __DEV__ &&
);
}
function mountDeferredValueImpl(hook, value, initialValue) {
return enableUseDeferredValueInitialArg &&
void 0 !== initialValue &&
0 === (renderLanes & 1073741824)
? ((hook.memoizedState = initialValue),
(hook = requestDeferredLane()),
(currentlyRenderingFiber$1.lanes |= hook),
(workInProgressRootSkippedLanes |= hook),
initialValue)
: (hook.memoizedState = value);
if (void 0 === initialValue || 0 !== (renderLanes & 1073741824))
return (hook.memoizedState = value);
hook.memoizedState = initialValue;
hook = requestDeferredLane();
currentlyRenderingFiber$1.lanes |= hook;
workInProgressRootSkippedLanes |= hook;
return initialValue;
}
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
if (objectIs(value, prevValue)) return value;
Expand Down Expand Up @@ -13992,8 +13990,6 @@ __DEV__ &&
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableRetryLaneExpiration = dynamicFeatureFlags.enableRetryLaneExpiration,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableUseDeferredValueInitialArg =
dynamicFeatureFlags.enableUseDeferredValueInitialArg,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs,
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
Expand Down Expand Up @@ -16195,11 +16191,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-88ee14ff-20240801",
version: "19.0.0-www-modern-65903583-20240805",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-88ee14ff-20240801"
reconcilerVersion: "19.0.0-www-modern-65903583-20240805"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16233,7 +16229,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-88ee14ff-20240801";
exports.version = "19.0.0-www-modern-65903583-20240805";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
24 changes: 10 additions & 14 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableRetryLaneExpiration = dynamicFeatureFlags.enableRetryLaneExpiration,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableUseDeferredValueInitialArg =
dynamicFeatureFlags.enableUseDeferredValueInitialArg,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs,
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
Expand Down Expand Up @@ -3291,15 +3289,13 @@ function updateMemo(nextCreate, deps) {
return prevState;
}
function mountDeferredValueImpl(hook, value, initialValue) {
return enableUseDeferredValueInitialArg &&
void 0 !== initialValue &&
0 === (renderLanes & 1073741824)
? ((hook.memoizedState = initialValue),
(hook = requestDeferredLane()),
(currentlyRenderingFiber$1.lanes |= hook),
(workInProgressRootSkippedLanes |= hook),
initialValue)
: (hook.memoizedState = value);
if (void 0 === initialValue || 0 !== (renderLanes & 1073741824))
return (hook.memoizedState = value);
hook.memoizedState = initialValue;
hook = requestDeferredLane();
currentlyRenderingFiber$1.lanes |= hook;
workInProgressRootSkippedLanes |= hook;
return initialValue;
}
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
if (objectIs(value, prevValue)) return value;
Expand Down Expand Up @@ -10622,13 +10618,13 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1361 = {
bundleType: 0,
version: "19.0.0-www-classic-88ee14ff-20240801",
version: "19.0.0-www-classic-65903583-20240805",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-classic-88ee14ff-20240801"
reconcilerVersion: "19.0.0-www-classic-65903583-20240805"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1362 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10654,4 +10650,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-88ee14ff-20240801";
exports.version = "19.0.0-www-classic-65903583-20240805";
24 changes: 10 additions & 14 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableRetryLaneExpiration = dynamicFeatureFlags.enableRetryLaneExpiration,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableUseDeferredValueInitialArg =
dynamicFeatureFlags.enableUseDeferredValueInitialArg,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs,
syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs,
Expand Down Expand Up @@ -3122,15 +3120,13 @@ function updateMemo(nextCreate, deps) {
return prevState;
}
function mountDeferredValueImpl(hook, value, initialValue) {
return enableUseDeferredValueInitialArg &&
void 0 !== initialValue &&
0 === (renderLanes & 1073741824)
? ((hook.memoizedState = initialValue),
(hook = requestDeferredLane()),
(currentlyRenderingFiber$1.lanes |= hook),
(workInProgressRootSkippedLanes |= hook),
initialValue)
: (hook.memoizedState = value);
if (void 0 === initialValue || 0 !== (renderLanes & 1073741824))
return (hook.memoizedState = value);
hook.memoizedState = initialValue;
hook = requestDeferredLane();
currentlyRenderingFiber$1.lanes |= hook;
workInProgressRootSkippedLanes |= hook;
return initialValue;
}
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
if (objectIs(value, prevValue)) return value;
Expand Down Expand Up @@ -10136,13 +10132,13 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1353 = {
bundleType: 0,
version: "19.0.0-www-modern-88ee14ff-20240801",
version: "19.0.0-www-modern-65903583-20240805",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-modern-88ee14ff-20240801"
reconcilerVersion: "19.0.0-www-modern-65903583-20240805"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1354 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10168,4 +10164,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-88ee14ff-20240801";
exports.version = "19.0.0-www-modern-65903583-20240805";
28 changes: 12 additions & 16 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -6891,15 +6891,13 @@ __DEV__ &&
);
}
function mountDeferredValueImpl(hook, value, initialValue) {
return enableUseDeferredValueInitialArg &&
void 0 !== initialValue &&
0 === (renderLanes & 1073741824)
? ((hook.memoizedState = initialValue),
(hook = requestDeferredLane()),
(currentlyRenderingFiber$1.lanes |= hook),
(workInProgressRootSkippedLanes |= hook),
initialValue)
: (hook.memoizedState = value);
if (void 0 === initialValue || 0 !== (renderLanes & 1073741824))
return (hook.memoizedState = value);
hook.memoizedState = initialValue;
hook = requestDeferredLane();
currentlyRenderingFiber$1.lanes |= hook;
workInProgressRootSkippedLanes |= hook;
return initialValue;
}
function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
if (objectIs(value, prevValue)) return value;
Expand Down Expand Up @@ -23806,8 +23804,6 @@ __DEV__ &&
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
enableTrustedTypesIntegration =
dynamicFeatureFlags.enableTrustedTypesIntegration,
enableUseDeferredValueInitialArg =
dynamicFeatureFlags.enableUseDeferredValueInitialArg,
favorSafetyOverHydrationPerf =
dynamicFeatureFlags.favorSafetyOverHydrationPerf,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
Expand Down Expand Up @@ -27534,11 +27530,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-88ee14ff-20240801" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-65903583-20240805" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.0.0-www-classic-88ee14ff-20240801\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-65903583-20240805\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27582,11 +27578,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-88ee14ff-20240801",
version: "19.0.0-www-classic-65903583-20240805",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-88ee14ff-20240801"
reconcilerVersion: "19.0.0-www-classic-65903583-20240805"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -28239,7 +28235,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-88ee14ff-20240801";
exports.version = "19.0.0-www-classic-65903583-20240805";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit 3221ff0

Please sign in to comment.