Skip to content

Commit 9e80ede

Browse files
committed
Hack to recover from reading the wrong Fiber (#33055)
`requestFormReset` incorrectly tries to get the current dispatch queue from the Fiber. However, the Fiber might be the workInProgress which is an inconsistent state. This hack just tries the other Fiber if it detects one of the known inconsistent states but there can be more. Really we should stash the dispatch queue somewhere stateful which is effectively what `setState` does by binding it to the closure. DiffTrain build for [88b9767](88b9767)
1 parent 6cb2d2c commit 9e80ede

34 files changed

+166
-118
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8e9a5fc6c1a6252ca1727ab8fe0d4ee13f2568ec
1+
88b976740467f9dfabae03c79a8eff9033c35050
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8e9a5fc6c1a6252ca1727ab8fe0d4ee13f2568ec
1+
88b976740467f9dfabae03c79a8eff9033c35050

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ __DEV__ &&
15381538
exports.useTransition = function () {
15391539
return resolveDispatcher().useTransition();
15401540
};
1541-
exports.version = "19.2.0-www-classic-8e9a5fc6-20250425";
1541+
exports.version = "19.2.0-www-classic-88b97674-20250429";
15421542
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15431543
"function" ===
15441544
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
@@ -1538,7 +1538,7 @@ __DEV__ &&
15381538
exports.useTransition = function () {
15391539
return resolveDispatcher().useTransition();
15401540
};
1541-
exports.version = "19.2.0-www-modern-8e9a5fc6-20250425";
1541+
exports.version = "19.2.0-www-modern-88b97674-20250429";
15421542
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15431543
"function" ===
15441544
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
@@ -636,4 +636,4 @@ exports.useSyncExternalStore = function (
636636
exports.useTransition = function () {
637637
return ReactSharedInternals.H.useTransition();
638638
};
639-
exports.version = "19.2.0-www-classic-8e9a5fc6-20250425";
639+
exports.version = "19.2.0-www-classic-88b97674-20250429";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,4 +636,4 @@ exports.useSyncExternalStore = function (
636636
exports.useTransition = function () {
637637
return ReactSharedInternals.H.useTransition();
638638
};
639-
exports.version = "19.2.0-www-modern-8e9a5fc6-20250425";
639+
exports.version = "19.2.0-www-modern-88b97674-20250429";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ exports.useSyncExternalStore = function (
640640
exports.useTransition = function () {
641641
return ReactSharedInternals.H.useTransition();
642642
};
643-
exports.version = "19.2.0-www-classic-8e9a5fc6-20250425";
643+
exports.version = "19.2.0-www-classic-88b97674-20250429";
644644
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
645645
"function" ===
646646
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
@@ -640,7 +640,7 @@ exports.useSyncExternalStore = function (
640640
exports.useTransition = function () {
641641
return ReactSharedInternals.H.useTransition();
642642
};
643-
exports.version = "19.2.0-www-modern-8e9a5fc6-20250425";
643+
exports.version = "19.2.0-www-modern-88b97674-20250429";
644644
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
645645
"function" ===
646646
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18800,10 +18800,10 @@ __DEV__ &&
1880018800
(function () {
1880118801
var internals = {
1880218802
bundleType: 1,
18803-
version: "19.2.0-www-classic-8e9a5fc6-20250425",
18803+
version: "19.2.0-www-classic-88b97674-20250429",
1880418804
rendererPackageName: "react-art",
1880518805
currentDispatcherRef: ReactSharedInternals,
18806-
reconcilerVersion: "19.2.0-www-classic-8e9a5fc6-20250425"
18806+
reconcilerVersion: "19.2.0-www-classic-88b97674-20250429"
1880718807
};
1880818808
internals.overrideHookState = overrideHookState;
1880918809
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18837,7 +18837,7 @@ __DEV__ &&
1883718837
exports.Shape = Shape;
1883818838
exports.Surface = Surface;
1883918839
exports.Text = Text;
18840-
exports.version = "19.2.0-www-classic-8e9a5fc6-20250425";
18840+
exports.version = "19.2.0-www-classic-88b97674-20250429";
1884118841
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1884218842
"function" ===
1884318843
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18572,10 +18572,10 @@ __DEV__ &&
1857218572
(function () {
1857318573
var internals = {
1857418574
bundleType: 1,
18575-
version: "19.2.0-www-modern-8e9a5fc6-20250425",
18575+
version: "19.2.0-www-modern-88b97674-20250429",
1857618576
rendererPackageName: "react-art",
1857718577
currentDispatcherRef: ReactSharedInternals,
18578-
reconcilerVersion: "19.2.0-www-modern-8e9a5fc6-20250425"
18578+
reconcilerVersion: "19.2.0-www-modern-88b97674-20250429"
1857918579
};
1858018580
internals.overrideHookState = overrideHookState;
1858118581
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18609,7 +18609,7 @@ __DEV__ &&
1860918609
exports.Shape = Shape;
1861018610
exports.Surface = Surface;
1861118611
exports.Text = Text;
18612-
exports.version = "19.2.0-www-modern-8e9a5fc6-20250425";
18612+
exports.version = "19.2.0-www-modern-88b97674-20250429";
1861318613
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1861418614
"function" ===
1861518615
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)