Skip to content

Commit

Permalink
Fix mount-or-update check in rerenderOptimistic (#27277)
Browse files Browse the repository at this point in the history
I noticed this was wrong because it should call updateWorkInProgressHook
before it checks if currentHook is null.

DiffTrain build for commit 9a01c8b.
  • Loading branch information
acdlite committed Aug 28, 2023
1 parent ad42e6c commit e059d6a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23981,7 +23981,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-canary-b798223a6-20230825";
var ReactVersion = "18.3.0-canary-9a01c8b54-20230828";

// Might add PROFILE later.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8612,7 +8612,7 @@ var devToolsConfig$jscomp$inline_1029 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-b798223a6-20230825",
version: "18.3.0-canary-9a01c8b54-20230828",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1228 = {
Expand Down Expand Up @@ -8643,7 +8643,7 @@ var internals$jscomp$inline_1228 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-b798223a6-20230825"
reconcilerVersion: "18.3.0-canary-9a01c8b54-20230828"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1229 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9038,7 +9038,7 @@ var devToolsConfig$jscomp$inline_1071 = {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 0,
version: "18.3.0-canary-b798223a6-20230825",
version: "18.3.0-canary-9a01c8b54-20230828",
rendererPackageName: "react-test-renderer"
};
var internals$jscomp$inline_1269 = {
Expand Down Expand Up @@ -9069,7 +9069,7 @@ var internals$jscomp$inline_1269 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-canary-b798223a6-20230825"
reconcilerVersion: "18.3.0-canary-9a01c8b54-20230828"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1270 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-canary-b798223a6-20230825";
var ReactVersion = "18.3.0-canary-9a01c8b54-20230828";

// ATTENTION
// When adding new symbols to this file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -616,4 +616,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-b798223a6-20230825";
exports.version = "18.3.0-canary-9a01c8b54-20230828";
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-canary-b798223a6-20230825";
exports.version = "18.3.0-canary-9a01c8b54-20230828";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b798223a620dad77077d27e53cc99cbd54312d99
9a01c8b54e91c588391070c65701342e4e361ea7

0 comments on commit e059d6a

Please sign in to comment.