Skip to content

Commit 99090b7

Browse files
committed
Fix form status reset when component state is updated (#34075)
Co-authored-by: Vordgi <[email protected]> DiffTrain build for [8ac5f4e](8ac5f4e)
1 parent b03861c commit 99090b7

34 files changed

+236
-174
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eb89912ee5ace8bf8e616cca5a6aeebcd274b521
1+
8ac5f4eb3601f7381462f8b74ecf24d47259cc20
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eb89912ee5ace8bf8e616cca5a6aeebcd274b521
1+
8ac5f4eb3601f7381462f8b74ecf24d47259cc20

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ __DEV__ &&
14991499
exports.useTransition = function () {
15001500
return resolveDispatcher().useTransition();
15011501
};
1502-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
1502+
exports.version = "19.3.0-www-classic-8ac5f4eb-20251119";
15031503
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15041504
"function" ===
15051505
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ __DEV__ &&
14991499
exports.useTransition = function () {
15001500
return resolveDispatcher().useTransition();
15011501
};
1502-
exports.version = "19.3.0-www-modern-eb89912e-20251118";
1502+
exports.version = "19.3.0-www-modern-8ac5f4eb-20251119";
15031503
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15041504
"function" ===
15051505
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
609+
exports.version = "19.3.0-www-classic-8ac5f4eb-20251119";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-modern-eb89912e-20251118";
609+
exports.version = "19.3.0-www-modern-8ac5f4eb-20251119";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
613+
exports.version = "19.3.0-www-classic-8ac5f4eb-20251119";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-modern-eb89912e-20251118";
613+
exports.version = "19.3.0-www-modern-8ac5f4eb-20251119";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,11 +2418,13 @@ __DEV__ &&
24182418
pop(rootInstanceStackCursor, fiber);
24192419
}
24202420
function pushHostContext(fiber) {
2421-
null !== fiber.memoizedState &&
2422-
push(hostTransitionProviderCursor, fiber, fiber);
2423-
var context = requiredContext(contextStackCursor.current),
2424-
nextContext = NO_CONTEXT;
2425-
context !== nextContext &&
2421+
var stateHook = fiber.memoizedState;
2422+
null !== stateHook &&
2423+
((HostTransitionContext._currentValue2 = stateHook.memoizedState),
2424+
push(hostTransitionProviderCursor, fiber, fiber));
2425+
stateHook = requiredContext(contextStackCursor.current);
2426+
var nextContext = NO_CONTEXT;
2427+
stateHook !== nextContext &&
24262428
(push(contextFiberStackCursor, fiber, fiber),
24272429
push(contextStackCursor, nextContext, fiber));
24282430
}
@@ -20466,10 +20468,10 @@ __DEV__ &&
2046620468
(function () {
2046720469
var internals = {
2046820470
bundleType: 1,
20469-
version: "19.3.0-www-classic-eb89912e-20251118",
20471+
version: "19.3.0-www-classic-8ac5f4eb-20251119",
2047020472
rendererPackageName: "react-art",
2047120473
currentDispatcherRef: ReactSharedInternals,
20472-
reconcilerVersion: "19.3.0-www-classic-eb89912e-20251118"
20474+
reconcilerVersion: "19.3.0-www-classic-8ac5f4eb-20251119"
2047320475
};
2047420476
internals.overrideHookState = overrideHookState;
2047520477
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20504,7 +20506,7 @@ __DEV__ &&
2050420506
exports.Shape = Shape;
2050520507
exports.Surface = Surface;
2050620508
exports.Text = Text;
20507-
exports.version = "19.3.0-www-classic-eb89912e-20251118";
20509+
exports.version = "19.3.0-www-classic-8ac5f4eb-20251119";
2050820510
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2050920511
"function" ===
2051020512
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,11 +2324,13 @@ __DEV__ &&
23242324
pop(rootInstanceStackCursor, fiber);
23252325
}
23262326
function pushHostContext(fiber) {
2327-
null !== fiber.memoizedState &&
2328-
push(hostTransitionProviderCursor, fiber, fiber);
2329-
var context = requiredContext(contextStackCursor.current),
2330-
nextContext = NO_CONTEXT;
2331-
context !== nextContext &&
2327+
var stateHook = fiber.memoizedState;
2328+
null !== stateHook &&
2329+
((HostTransitionContext._currentValue2 = stateHook.memoizedState),
2330+
push(hostTransitionProviderCursor, fiber, fiber));
2331+
stateHook = requiredContext(contextStackCursor.current);
2332+
var nextContext = NO_CONTEXT;
2333+
stateHook !== nextContext &&
23322334
(push(contextFiberStackCursor, fiber, fiber),
23332335
push(contextStackCursor, nextContext, fiber));
23342336
}
@@ -20237,10 +20239,10 @@ __DEV__ &&
2023720239
(function () {
2023820240
var internals = {
2023920241
bundleType: 1,
20240-
version: "19.3.0-www-modern-eb89912e-20251118",
20242+
version: "19.3.0-www-modern-8ac5f4eb-20251119",
2024120243
rendererPackageName: "react-art",
2024220244
currentDispatcherRef: ReactSharedInternals,
20243-
reconcilerVersion: "19.3.0-www-modern-eb89912e-20251118"
20245+
reconcilerVersion: "19.3.0-www-modern-8ac5f4eb-20251119"
2024420246
};
2024520247
internals.overrideHookState = overrideHookState;
2024620248
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20275,7 +20277,7 @@ __DEV__ &&
2027520277
exports.Shape = Shape;
2027620278
exports.Surface = Surface;
2027720279
exports.Text = Text;
20278-
exports.version = "19.3.0-www-modern-eb89912e-20251118";
20280+
exports.version = "19.3.0-www-modern-8ac5f4eb-20251119";
2027920281
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2028020282
"function" ===
2028120283
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)