Skip to content

Commit 1843c28

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 7d2ab05 commit 1843c28

File tree

21 files changed

+153
-121
lines changed

21 files changed

+153
-121
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.3.0-native-fb-eb89912e-20251118
1+
19.3.0-native-fb-8ac5f4eb-20251119

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<dbe5dba41a0083047349811a0f5d66ce>>
10+
* @generated SignedSource<<2eacdc57a671462abc629adf2beb082b>>
1111
*/
1212

1313
"use strict";
@@ -410,5 +410,5 @@ __DEV__ &&
410410
exports.useFormStatus = function () {
411411
return resolveDispatcher().useHostTransitionStatus();
412412
};
413-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
413+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";
414414
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<1d08fd796f20004fef1c064d7ca54e75>>
10+
* @generated SignedSource<<d9430ce49fde4ce5a69a616ebc821900>>
1111
*/
1212

1313
"use strict";
@@ -209,4 +209,4 @@ exports.useFormState = function (action, initialState, permalink) {
209209
exports.useFormStatus = function () {
210210
return ReactSharedInternals.H.useHostTransitionStatus();
211211
};
212-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
212+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<1d08fd796f20004fef1c064d7ca54e75>>
10+
* @generated SignedSource<<d9430ce49fde4ce5a69a616ebc821900>>
1111
*/
1212

1313
"use strict";
@@ -209,4 +209,4 @@ exports.useFormState = function (action, initialState, permalink) {
209209
exports.useFormStatus = function () {
210210
return ReactSharedInternals.H.useHostTransitionStatus();
211211
};
212-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
212+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<582860e227f829c8d87e583d8522e0dc>>
10+
* @generated SignedSource<<59a74704dfdb849f8d3e2f8dc932bffe>>
1111
*/
1212

1313
/*
@@ -573,14 +573,16 @@ __DEV__ &&
573573
return requiredContext(contextStackCursor$1.current);
574574
}
575575
function pushHostContext(fiber) {
576-
null !== fiber.memoizedState &&
577-
push(hostTransitionProviderCursor, fiber, fiber);
578-
var context = requiredContext(contextStackCursor$1.current);
576+
var stateHook = fiber.memoizedState;
577+
null !== stateHook &&
578+
((HostTransitionContext._currentValue = stateHook.memoizedState),
579+
push(hostTransitionProviderCursor, fiber, fiber));
580+
stateHook = requiredContext(contextStackCursor$1.current);
579581
var type = fiber.type;
580-
var nextContext = getChildHostContextProd(context.context, type);
581-
type = updatedAncestorInfoDev(context.ancestorInfo, type);
582+
var nextContext = getChildHostContextProd(stateHook.context, type);
583+
type = updatedAncestorInfoDev(stateHook.ancestorInfo, type);
582584
nextContext = { context: nextContext, ancestorInfo: type };
583-
context !== nextContext &&
585+
stateHook !== nextContext &&
584586
(push(contextFiberStackCursor, fiber, fiber),
585587
push(contextStackCursor$1, nextContext, fiber));
586588
}
@@ -30242,11 +30244,11 @@ __DEV__ &&
3024230244
};
3024330245
(function () {
3024430246
var isomorphicReactPackageVersion = React.version;
30245-
if ("19.3.0-native-fb-eb89912e-20251118" !== isomorphicReactPackageVersion)
30247+
if ("19.3.0-native-fb-8ac5f4eb-20251119" !== isomorphicReactPackageVersion)
3024630248
throw Error(
3024730249
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3024830250
(isomorphicReactPackageVersion +
30249-
"\n - react-dom: 19.3.0-native-fb-eb89912e-20251118\nLearn more: https://react.dev/warnings/version-mismatch")
30251+
"\n - react-dom: 19.3.0-native-fb-8ac5f4eb-20251119\nLearn more: https://react.dev/warnings/version-mismatch")
3025030252
);
3025130253
})();
3025230254
("function" === typeof Map &&
@@ -30283,10 +30285,10 @@ __DEV__ &&
3028330285
!(function () {
3028430286
var internals = {
3028530287
bundleType: 1,
30286-
version: "19.3.0-native-fb-eb89912e-20251118",
30288+
version: "19.3.0-native-fb-8ac5f4eb-20251119",
3028730289
rendererPackageName: "react-dom",
3028830290
currentDispatcherRef: ReactSharedInternals,
30289-
reconcilerVersion: "19.3.0-native-fb-eb89912e-20251118"
30291+
reconcilerVersion: "19.3.0-native-fb-8ac5f4eb-20251119"
3029030292
};
3029130293
internals.overrideHookState = overrideHookState;
3029230294
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30436,5 +30438,5 @@ __DEV__ &&
3043630438
listenToAllSupportedEvents(container);
3043730439
return new ReactDOMHydrationRoot(initialChildren);
3043830440
};
30439-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
30441+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";
3044030442
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<d90bb2baf6a7cce491b6b20152b9576c>>
10+
* @generated SignedSource<<13b59ff1644c7bed46f567f452c5b596>>
1111
*/
1212

1313
/*
@@ -478,10 +478,13 @@ function popHostContainer() {
478478
pop(rootInstanceStackCursor);
479479
}
480480
function pushHostContext(fiber) {
481-
null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);
482-
var context = contextStackCursor$1.current;
483-
var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);
484-
context !== JSCompiler_inline_result &&
481+
var stateHook = fiber.memoizedState;
482+
null !== stateHook &&
483+
((HostTransitionContext._currentValue = stateHook.memoizedState),
484+
push(hostTransitionProviderCursor, fiber));
485+
stateHook = contextStackCursor$1.current;
486+
var JSCompiler_inline_result = getChildHostContextProd(stateHook, fiber.type);
487+
stateHook !== JSCompiler_inline_result &&
485488
(push(contextFiberStackCursor, fiber),
486489
push(contextStackCursor$1, JSCompiler_inline_result));
487490
}
@@ -17704,14 +17707,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1770417707
};
1770517708
var isomorphicReactPackageVersion$jscomp$inline_2054 = React.version;
1770617709
if (
17707-
"19.3.0-native-fb-eb89912e-20251118" !==
17710+
"19.3.0-native-fb-8ac5f4eb-20251119" !==
1770817711
isomorphicReactPackageVersion$jscomp$inline_2054
1770917712
)
1771017713
throw Error(
1771117714
formatProdErrorMessage(
1771217715
527,
1771317716
isomorphicReactPackageVersion$jscomp$inline_2054,
17714-
"19.3.0-native-fb-eb89912e-20251118"
17717+
"19.3.0-native-fb-8ac5f4eb-20251119"
1771517718
)
1771617719
);
1771717720
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17733,10 +17736,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1773317736
};
1773417737
var internals$jscomp$inline_2636 = {
1773517738
bundleType: 0,
17736-
version: "19.3.0-native-fb-eb89912e-20251118",
17739+
version: "19.3.0-native-fb-8ac5f4eb-20251119",
1773717740
rendererPackageName: "react-dom",
1773817741
currentDispatcherRef: ReactSharedInternals,
17739-
reconcilerVersion: "19.3.0-native-fb-eb89912e-20251118"
17742+
reconcilerVersion: "19.3.0-native-fb-8ac5f4eb-20251119"
1774017743
};
1774117744
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1774217745
var hook$jscomp$inline_2637 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17843,4 +17846,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1784317846
listenToAllSupportedEvents(container);
1784417847
return new ReactDOMHydrationRoot(initialChildren);
1784517848
};
17846-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
17849+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<e1cc52376e0ead65cfc5fedd607b0ef3>>
10+
* @generated SignedSource<<8d424827e0d204a76413ebdbee633d65>>
1111
*/
1212

1313
/*
@@ -480,10 +480,13 @@ function popHostContainer() {
480480
pop(rootInstanceStackCursor);
481481
}
482482
function pushHostContext(fiber) {
483-
null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);
484-
var context = contextStackCursor$1.current;
485-
var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);
486-
context !== JSCompiler_inline_result &&
483+
var stateHook = fiber.memoizedState;
484+
null !== stateHook &&
485+
((HostTransitionContext._currentValue = stateHook.memoizedState),
486+
push(hostTransitionProviderCursor, fiber));
487+
stateHook = contextStackCursor$1.current;
488+
var JSCompiler_inline_result = getChildHostContextProd(stateHook, fiber.type);
489+
stateHook !== JSCompiler_inline_result &&
487490
(push(contextFiberStackCursor, fiber),
488491
push(contextStackCursor$1, JSCompiler_inline_result));
489492
}
@@ -19830,14 +19833,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1983019833
};
1983119834
var isomorphicReactPackageVersion$jscomp$inline_2369 = React.version;
1983219835
if (
19833-
"19.3.0-native-fb-eb89912e-20251118" !==
19836+
"19.3.0-native-fb-8ac5f4eb-20251119" !==
1983419837
isomorphicReactPackageVersion$jscomp$inline_2369
1983519838
)
1983619839
throw Error(
1983719840
formatProdErrorMessage(
1983819841
527,
1983919842
isomorphicReactPackageVersion$jscomp$inline_2369,
19840-
"19.3.0-native-fb-eb89912e-20251118"
19843+
"19.3.0-native-fb-8ac5f4eb-20251119"
1984119844
)
1984219845
);
1984319846
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19859,10 +19862,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1985919862
};
1986019863
var internals$jscomp$inline_2376 = {
1986119864
bundleType: 0,
19862-
version: "19.3.0-native-fb-eb89912e-20251118",
19865+
version: "19.3.0-native-fb-8ac5f4eb-20251119",
1986319866
rendererPackageName: "react-dom",
1986419867
currentDispatcherRef: ReactSharedInternals,
19865-
reconcilerVersion: "19.3.0-native-fb-eb89912e-20251118",
19868+
reconcilerVersion: "19.3.0-native-fb-8ac5f4eb-20251119",
1986619869
getLaneLabelMap: function () {
1986719870
for (
1986819871
var map = new Map(), lane = 1, index$336 = 0;
@@ -19985,4 +19988,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1998519988
listenToAllSupportedEvents(container);
1998619989
return new ReactDOMHydrationRoot(initialChildren);
1998719990
};
19988-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
19991+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<ea63eccddef24631c16923434c5d677a>>
10+
* @generated SignedSource<<4ecf526bcb26f25e21a4efacd17dd892>>
1111
*/
1212

1313
/*
@@ -581,14 +581,16 @@ __DEV__ &&
581581
return requiredContext(contextStackCursor$1.current);
582582
}
583583
function pushHostContext(fiber) {
584-
null !== fiber.memoizedState &&
585-
push(hostTransitionProviderCursor, fiber, fiber);
586-
var context = requiredContext(contextStackCursor$1.current);
584+
var stateHook = fiber.memoizedState;
585+
null !== stateHook &&
586+
((HostTransitionContext._currentValue = stateHook.memoizedState),
587+
push(hostTransitionProviderCursor, fiber, fiber));
588+
stateHook = requiredContext(contextStackCursor$1.current);
587589
var type = fiber.type;
588-
var nextContext = getChildHostContextProd(context.context, type);
589-
type = updatedAncestorInfoDev(context.ancestorInfo, type);
590+
var nextContext = getChildHostContextProd(stateHook.context, type);
591+
type = updatedAncestorInfoDev(stateHook.ancestorInfo, type);
590592
nextContext = { context: nextContext, ancestorInfo: type };
591-
context !== nextContext &&
593+
stateHook !== nextContext &&
592594
(push(contextFiberStackCursor, fiber, fiber),
593595
push(contextStackCursor$1, nextContext, fiber));
594596
}
@@ -30304,11 +30306,11 @@ __DEV__ &&
3030430306
};
3030530307
(function () {
3030630308
var isomorphicReactPackageVersion = React.version;
30307-
if ("19.3.0-native-fb-eb89912e-20251118" !== isomorphicReactPackageVersion)
30309+
if ("19.3.0-native-fb-8ac5f4eb-20251119" !== isomorphicReactPackageVersion)
3030830310
throw Error(
3030930311
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3031030312
(isomorphicReactPackageVersion +
30311-
"\n - react-dom: 19.3.0-native-fb-eb89912e-20251118\nLearn more: https://react.dev/warnings/version-mismatch")
30313+
"\n - react-dom: 19.3.0-native-fb-8ac5f4eb-20251119\nLearn more: https://react.dev/warnings/version-mismatch")
3031230314
);
3031330315
})();
3031430316
("function" === typeof Map &&
@@ -30345,10 +30347,10 @@ __DEV__ &&
3034530347
!(function () {
3034630348
var internals = {
3034730349
bundleType: 1,
30348-
version: "19.3.0-native-fb-eb89912e-20251118",
30350+
version: "19.3.0-native-fb-8ac5f4eb-20251119",
3034930351
rendererPackageName: "react-dom",
3035030352
currentDispatcherRef: ReactSharedInternals,
30351-
reconcilerVersion: "19.3.0-native-fb-eb89912e-20251118"
30353+
reconcilerVersion: "19.3.0-native-fb-8ac5f4eb-20251119"
3035230354
};
3035330355
internals.overrideHookState = overrideHookState;
3035430356
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30814,7 +30816,7 @@ __DEV__ &&
3081430816
exports.useFormStatus = function () {
3081530817
return resolveDispatcher().useHostTransitionStatus();
3081630818
};
30817-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
30819+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";
3081830820
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3081930821
"function" ===
3082030822
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<e3b11fc817d0882e70585fffa34bf0f4>>
10+
* @generated SignedSource<<279e43428dbd0d9a62cb1a9d77d44318>>
1111
*/
1212

1313
/*
@@ -479,10 +479,13 @@ function popHostContainer() {
479479
pop(rootInstanceStackCursor);
480480
}
481481
function pushHostContext(fiber) {
482-
null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);
483-
var context = contextStackCursor$1.current;
484-
var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);
485-
context !== JSCompiler_inline_result &&
482+
var stateHook = fiber.memoizedState;
483+
null !== stateHook &&
484+
((HostTransitionContext._currentValue = stateHook.memoizedState),
485+
push(hostTransitionProviderCursor, fiber));
486+
stateHook = contextStackCursor$1.current;
487+
var JSCompiler_inline_result = getChildHostContextProd(stateHook, fiber.type);
488+
stateHook !== JSCompiler_inline_result &&
486489
(push(contextFiberStackCursor, fiber),
487490
push(contextStackCursor$1, JSCompiler_inline_result));
488491
}
@@ -17721,14 +17724,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1772117724
};
1772217725
var isomorphicReactPackageVersion$jscomp$inline_2055 = React.version;
1772317726
if (
17724-
"19.3.0-native-fb-eb89912e-20251118" !==
17727+
"19.3.0-native-fb-8ac5f4eb-20251119" !==
1772517728
isomorphicReactPackageVersion$jscomp$inline_2055
1772617729
)
1772717730
throw Error(
1772817731
formatProdErrorMessage(
1772917732
527,
1773017733
isomorphicReactPackageVersion$jscomp$inline_2055,
17731-
"19.3.0-native-fb-eb89912e-20251118"
17734+
"19.3.0-native-fb-8ac5f4eb-20251119"
1773217735
)
1773317736
);
1773417737
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17750,10 +17753,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1775017753
};
1775117754
var internals$jscomp$inline_2639 = {
1775217755
bundleType: 0,
17753-
version: "19.3.0-native-fb-eb89912e-20251118",
17756+
version: "19.3.0-native-fb-8ac5f4eb-20251119",
1775417757
rendererPackageName: "react-dom",
1775517758
currentDispatcherRef: ReactSharedInternals,
17756-
reconcilerVersion: "19.3.0-native-fb-eb89912e-20251118"
17759+
reconcilerVersion: "19.3.0-native-fb-8ac5f4eb-20251119"
1775717760
};
1775817761
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1775917762
var hook$jscomp$inline_2640 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18013,4 +18016,4 @@ exports.useFormState = function (action, initialState, permalink) {
1801318016
exports.useFormStatus = function () {
1801418017
return ReactSharedInternals.H.useHostTransitionStatus();
1801518018
};
18016-
exports.version = "19.3.0-native-fb-eb89912e-20251118";
18019+
exports.version = "19.3.0-native-fb-8ac5f4eb-20251119";

0 commit comments

Comments
 (0)