Skip to content

Commit

Permalink
[Fiber] Fix missing render times when we cancel a pending commit (#31065
Browse files Browse the repository at this point in the history
)

DiffTrain build for commit 778e1ed.
  • Loading branch information
eps1lon committed Sep 25, 2024
1 parent 64e263f commit 2baa9b4
Show file tree
Hide file tree
Showing 23 changed files with 267 additions and 284 deletions.
2 changes: 1 addition & 1 deletion compiled-rn/VERSION_NATIVE_FB
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.0.0-native-fb-0f1856c4-20240925
19.0.0-native-fb-778e1ed2-20240926
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<abebda03294fad7cb3858d1b5d97fe36>>
* @generated SignedSource<<1d391b897b28e0a40b463f0cd330ecb9>>
*/

"use strict";
Expand Down Expand Up @@ -420,5 +420,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<80a716efe68d232a2259f9d368a23144>>
* @generated SignedSource<<8f65f0b5da0551267ae8d9135836943a>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<80a716efe68d232a2259f9d368a23144>>
* @generated SignedSource<<8f65f0b5da0551267ae8d9135836943a>>
*/

"use strict";
Expand Down Expand Up @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2741b53e4737f118fb569f1df2d8ce24>>
* @generated SignedSource<<f5ffc0c36bad3a894dfe63de67ba82c1>>
*/

/*
Expand Down Expand Up @@ -15333,7 +15333,9 @@ __DEV__ &&
spawnedLane,
updatedLanes,
suspendedRetryLanes,
SUSPENDED_COMMIT
SUSPENDED_COMMIT,
completedRenderStartTime,
completedRenderEndTime
)
);
markRootSuspended(
Expand Down Expand Up @@ -16089,7 +16091,6 @@ __DEV__ &&
(ReactSharedInternals.T = prevTransition),
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
}
return null;
}
function commitRootImpl(
root,
Expand Down Expand Up @@ -25471,11 +25472,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-0f1856c4-20240925" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-778e1ed2-20240926" !== 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-native-fb-0f1856c4-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-native-fb-778e1ed2-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25512,11 +25513,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-native-fb-0f1856c4-20240925",
version: "19.0.0-native-fb-778e1ed2-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
reconcilerVersion: "19.0.0-native-fb-778e1ed2-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -25660,5 +25661,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
})();
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e2c8a02e5b63c8974893a2fea67e32b3>>
* @generated SignedSource<<4015a32f0a281b58a4049cc13ffda2fe>>
*/

/*
Expand Down Expand Up @@ -11099,7 +11099,9 @@ function commitRootWhenReady(
spawnedLane,
updatedLanes,
suspendedRetryLanes,
1
1,
completedRenderStartTime,
completedRenderEndTime
)
);
markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
Expand Down Expand Up @@ -11698,7 +11700,6 @@ function commitRoot(
(ReactSharedInternals.T = prevTransition),
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
}
return null;
}
function commitRootImpl(
root,
Expand Down Expand Up @@ -15752,14 +15753,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1708 = React.version;
if (
"19.0.0-native-fb-0f1856c4-20240925" !==
"19.0.0-native-fb-778e1ed2-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1708
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1708,
"19.0.0-native-fb-0f1856c4-20240925"
"19.0.0-native-fb-778e1ed2-20240926"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15781,11 +15782,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2151 = {
bundleType: 0,
version: "19.0.0-native-fb-0f1856c4-20240925",
version: "19.0.0-native-fb-778e1ed2-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
reconcilerVersion: "19.0.0-native-fb-778e1ed2-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2152 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15889,4 +15890,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<fffc5eead357ce8f77731b891ba62820>>
* @generated SignedSource<<e0edad628e3ae9cf5c58cd69e3f3278c>>
*/

/*
Expand Down Expand Up @@ -11637,7 +11637,9 @@ function commitRootWhenReady(
spawnedLane,
updatedLanes,
suspendedRetryLanes,
1
1,
completedRenderStartTime,
completedRenderEndTime
)
);
markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
Expand Down Expand Up @@ -12308,7 +12310,6 @@ function commitRoot(
(ReactSharedInternals.T = prevTransition),
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
}
return null;
}
function commitRootImpl(
root,
Expand Down Expand Up @@ -16404,14 +16405,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1798 = React.version;
if (
"19.0.0-native-fb-0f1856c4-20240925" !==
"19.0.0-native-fb-778e1ed2-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1798
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1798,
"19.0.0-native-fb-0f1856c4-20240925"
"19.0.0-native-fb-778e1ed2-20240926"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -16433,11 +16434,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_1805 = {
bundleType: 0,
version: "19.0.0-native-fb-0f1856c4-20240925",
version: "19.0.0-native-fb-778e1ed2-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925",
reconcilerVersion: "19.0.0-native-fb-778e1ed2-20240926",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$292 = 0;
Expand Down Expand Up @@ -16556,4 +16557,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<273b9b0979bdda8333444bb84fedf515>>
* @generated SignedSource<<7461bb5e8388b2ab269e15f33f1e8d01>>
*/

/*
Expand Down Expand Up @@ -15345,7 +15345,9 @@ __DEV__ &&
spawnedLane,
updatedLanes,
suspendedRetryLanes,
SUSPENDED_COMMIT
SUSPENDED_COMMIT,
completedRenderStartTime,
completedRenderEndTime
)
);
markRootSuspended(
Expand Down Expand Up @@ -16101,7 +16103,6 @@ __DEV__ &&
(ReactSharedInternals.T = prevTransition),
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
}
return null;
}
function commitRootImpl(
root,
Expand Down Expand Up @@ -25532,11 +25533,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-native-fb-0f1856c4-20240925" !== isomorphicReactPackageVersion)
if ("19.0.0-native-fb-778e1ed2-20240926" !== 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-native-fb-0f1856c4-20240925\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-native-fb-778e1ed2-20240926\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -25573,11 +25574,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-native-fb-0f1856c4-20240925",
version: "19.0.0-native-fb-778e1ed2-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
reconcilerVersion: "19.0.0-native-fb-778e1ed2-20240926"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -26037,7 +26038,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<12d0f35a67264fce7b09d1463c9fab19>>
* @generated SignedSource<<74da68ece113c9837fd5a5f7ffa9656d>>
*/

/*
Expand Down Expand Up @@ -11099,7 +11099,9 @@ function commitRootWhenReady(
spawnedLane,
updatedLanes,
suspendedRetryLanes,
1
1,
completedRenderStartTime,
completedRenderEndTime
)
);
markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
Expand Down Expand Up @@ -11698,7 +11700,6 @@ function commitRoot(
(ReactSharedInternals.T = prevTransition),
(ReactDOMSharedInternals.p = previousUpdateLanePriority);
}
return null;
}
function commitRootImpl(
root,
Expand Down Expand Up @@ -15763,14 +15764,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_1709 = React.version;
if (
"19.0.0-native-fb-0f1856c4-20240925" !==
"19.0.0-native-fb-778e1ed2-20240926" !==
isomorphicReactPackageVersion$jscomp$inline_1709
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1709,
"19.0.0-native-fb-0f1856c4-20240925"
"19.0.0-native-fb-778e1ed2-20240926"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -15792,11 +15793,11 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2154 = {
bundleType: 0,
version: "19.0.0-native-fb-0f1856c4-20240925",
version: "19.0.0-native-fb-778e1ed2-20240926",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-native-fb-0f1856c4-20240925"
reconcilerVersion: "19.0.0-native-fb-778e1ed2-20240926"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2155 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16054,4 +16055,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-native-fb-0f1856c4-20240925";
exports.version = "19.0.0-native-fb-778e1ed2-20240926";
Loading

0 comments on commit 2baa9b4

Please sign in to comment.