mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Bugfix: useDeferredValue loop during popstate transition (#27559)
During a popstate event, we attempt to render updates synchronously even
if they are transitions, to preserve scroll position if possible. We do
this by entangling the transition lane with the Sync lane.
However, if rendering the transition spawns additional transition
updates (e.g. a setState inside useEffect), there's no reason to render
those synchronously, too. We should use the normal transition behavior.
This fixes an issue where useDeferredValue during a popstate event would
spawn a transition update that was itself also synchronous.
DiffTrain build for [6db7f4209e](https://github.com/facebook/react/commit/6db7f4209e6f32ebde298a0b7451710dd6aa3e19)
This commit is contained in:
@@ -1 +1 @@
|
||||
8c85b02996b940d63f961f835348a0dd0045d3b6
|
||||
6db7f4209e6f32ebde298a0b7451710dd6aa3e19
|
||||
|
||||
@@ -27,7 +27,7 @@ if (
|
||||
}
|
||||
"use strict";
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-08b720b1";
|
||||
var ReactVersion = "18.3.0-www-classic-63396f54";
|
||||
|
||||
// ATTENTION
|
||||
// When adding new symbols to this file,
|
||||
|
||||
@@ -579,4 +579,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-f25765d2";
|
||||
exports.version = "18.3.0-www-modern-ed902e38";
|
||||
|
||||
@@ -590,7 +590,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactCurrentDispatcher.current.useTransition();
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-a1b21365";
|
||||
exports.version = "18.3.0-www-modern-82bf9b55";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -34150,7 +34150,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-3d4cba16";
|
||||
var ReactVersion = "18.3.0-www-classic-a73ccc38";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -42008,8 +42008,30 @@ function getCurrentEventPriority() {
|
||||
|
||||
return getEventPriority(currentEvent.type);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
return window.event && window.event.type === "popstate";
|
||||
var event = window.event;
|
||||
|
||||
if (event && event.type === "popstate") {
|
||||
// This is a popstate event. Attempt to render any transition during this
|
||||
// event synchronously. Unless we already attempted during this event.
|
||||
if (event === currentPopstateTransitionEvent) {
|
||||
// We already attempted to render this popstate transition synchronously.
|
||||
// Any subsequent attempts must have happened as the result of a derived
|
||||
// update, like startTransition inside useEffect, or useDV. Switch back to
|
||||
// the default behavior for all remaining transitions during the current
|
||||
// popstate event.
|
||||
return false;
|
||||
} else {
|
||||
// Cache the current event in case a derived transition is scheduled.
|
||||
// (Refer to previous branch.)
|
||||
currentPopstateTransitionEvent = event;
|
||||
return true;
|
||||
}
|
||||
} // We're not inside a popstate event.
|
||||
|
||||
currentPopstateTransitionEvent = null;
|
||||
return false;
|
||||
}
|
||||
// if a component just imports ReactDOM (e.g. for findDOMNode).
|
||||
// Some environments might not have setTimeout or clearTimeout.
|
||||
|
||||
@@ -33995,7 +33995,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-e95a7c7a";
|
||||
var ReactVersion = "18.3.0-www-modern-682a5c12";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -42518,8 +42518,30 @@ function getCurrentEventPriority() {
|
||||
|
||||
return getEventPriority(currentEvent.type);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
return window.event && window.event.type === "popstate";
|
||||
var event = window.event;
|
||||
|
||||
if (event && event.type === "popstate") {
|
||||
// This is a popstate event. Attempt to render any transition during this
|
||||
// event synchronously. Unless we already attempted during this event.
|
||||
if (event === currentPopstateTransitionEvent) {
|
||||
// We already attempted to render this popstate transition synchronously.
|
||||
// Any subsequent attempts must have happened as the result of a derived
|
||||
// update, like startTransition inside useEffect, or useDV. Switch back to
|
||||
// the default behavior for all remaining transitions during the current
|
||||
// popstate event.
|
||||
return false;
|
||||
} else {
|
||||
// Cache the current event in case a derived transition is scheduled.
|
||||
// (Refer to previous branch.)
|
||||
currentPopstateTransitionEvent = event;
|
||||
return true;
|
||||
}
|
||||
} // We're not inside a popstate event.
|
||||
|
||||
currentPopstateTransitionEvent = null;
|
||||
return false;
|
||||
}
|
||||
// if a component just imports ReactDOM (e.g. for findDOMNode).
|
||||
// Some environments might not have setTimeout or clearTimeout.
|
||||
|
||||
@@ -3106,11 +3106,7 @@ function processRootScheduleInMicrotask() {
|
||||
|
||||
) {
|
||||
var next = root.next;
|
||||
if (
|
||||
0 !== currentEventTransitionLane &&
|
||||
window.event &&
|
||||
"popstate" === window.event.type
|
||||
) {
|
||||
if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) {
|
||||
var root$jscomp$0 = root,
|
||||
lane = currentEventTransitionLane;
|
||||
root$jscomp$0.pendingLanes |= 2;
|
||||
@@ -14701,6 +14697,17 @@ function shouldSetTextContent(type, props) {
|
||||
null != props.dangerouslySetInnerHTML.__html)
|
||||
);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
var event = window.event;
|
||||
if (event && "popstate" === event.type) {
|
||||
if (event === currentPopstateTransitionEvent) return !1;
|
||||
currentPopstateTransitionEvent = event;
|
||||
return !0;
|
||||
}
|
||||
currentPopstateTransitionEvent = null;
|
||||
return !1;
|
||||
}
|
||||
var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0,
|
||||
cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0,
|
||||
localPromise = "function" === typeof Promise ? Promise : void 0,
|
||||
@@ -16473,7 +16480,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1796 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-5728733b",
|
||||
version: "18.3.0-www-classic-3c2b8f45",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2142 = {
|
||||
@@ -16503,7 +16510,7 @@ var internals$jscomp$inline_2142 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-5728733b"
|
||||
reconcilerVersion: "18.3.0-www-classic-3c2b8f45"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2143 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16840,4 +16847,4 @@ exports.useFormState = function () {
|
||||
exports.useFormStatus = function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-5728733b";
|
||||
exports.version = "18.3.0-www-classic-3c2b8f45";
|
||||
|
||||
@@ -3003,11 +3003,7 @@ function processRootScheduleInMicrotask() {
|
||||
|
||||
) {
|
||||
var next = root.next;
|
||||
if (
|
||||
0 !== currentEventTransitionLane &&
|
||||
window.event &&
|
||||
"popstate" === window.event.type
|
||||
) {
|
||||
if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) {
|
||||
var root$jscomp$0 = root,
|
||||
lane = currentEventTransitionLane;
|
||||
root$jscomp$0.pendingLanes |= 2;
|
||||
@@ -14944,6 +14940,17 @@ function shouldSetTextContent(type, props) {
|
||||
null != props.dangerouslySetInnerHTML.__html)
|
||||
);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
var event = window.event;
|
||||
if (event && "popstate" === event.type) {
|
||||
if (event === currentPopstateTransitionEvent) return !1;
|
||||
currentPopstateTransitionEvent = event;
|
||||
return !0;
|
||||
}
|
||||
currentPopstateTransitionEvent = null;
|
||||
return !1;
|
||||
}
|
||||
var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0,
|
||||
cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0,
|
||||
localPromise = "function" === typeof Promise ? Promise : void 0,
|
||||
@@ -15999,7 +16006,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1755 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-b72d3d1b",
|
||||
version: "18.3.0-www-modern-d4fb2ac8",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2106 = {
|
||||
@@ -16030,7 +16037,7 @@ var internals$jscomp$inline_2106 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-b72d3d1b"
|
||||
reconcilerVersion: "18.3.0-www-modern-d4fb2ac8"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2107 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16295,4 +16302,4 @@ exports.useFormState = function () {
|
||||
exports.useFormStatus = function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-b72d3d1b";
|
||||
exports.version = "18.3.0-www-modern-d4fb2ac8";
|
||||
|
||||
@@ -3253,11 +3253,7 @@ function processRootScheduleInMicrotask() {
|
||||
|
||||
) {
|
||||
var next = root.next;
|
||||
if (
|
||||
0 !== currentEventTransitionLane &&
|
||||
window.event &&
|
||||
"popstate" === window.event.type
|
||||
) {
|
||||
if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) {
|
||||
var root$jscomp$0 = root,
|
||||
lane = currentEventTransitionLane;
|
||||
root$jscomp$0.pendingLanes |= 2;
|
||||
@@ -15477,6 +15473,17 @@ function shouldSetTextContent(type, props) {
|
||||
null != props.dangerouslySetInnerHTML.__html)
|
||||
);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
var event = window.event;
|
||||
if (event && "popstate" === event.type) {
|
||||
if (event === currentPopstateTransitionEvent) return !1;
|
||||
currentPopstateTransitionEvent = event;
|
||||
return !0;
|
||||
}
|
||||
currentPopstateTransitionEvent = null;
|
||||
return !1;
|
||||
}
|
||||
var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0,
|
||||
cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0,
|
||||
localPromise = "function" === typeof Promise ? Promise : void 0,
|
||||
@@ -17249,7 +17256,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1881 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-60bcbdf9",
|
||||
version: "18.3.0-www-classic-0f5bdde1",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -17293,7 +17300,7 @@ var devToolsConfig$jscomp$inline_1881 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-60bcbdf9"
|
||||
reconcilerVersion: "18.3.0-www-classic-0f5bdde1"
|
||||
});
|
||||
assign(Internals, {
|
||||
ReactBrowserEventEmitter: {
|
||||
@@ -17617,7 +17624,7 @@ exports.useFormState = function () {
|
||||
exports.useFormStatus = function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-60bcbdf9";
|
||||
exports.version = "18.3.0-www-classic-0f5bdde1";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -3150,11 +3150,7 @@ function processRootScheduleInMicrotask() {
|
||||
|
||||
) {
|
||||
var next = root.next;
|
||||
if (
|
||||
0 !== currentEventTransitionLane &&
|
||||
window.event &&
|
||||
"popstate" === window.event.type
|
||||
) {
|
||||
if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) {
|
||||
var root$jscomp$0 = root,
|
||||
lane = currentEventTransitionLane;
|
||||
root$jscomp$0.pendingLanes |= 2;
|
||||
@@ -15714,6 +15710,17 @@ function shouldSetTextContent(type, props) {
|
||||
null != props.dangerouslySetInnerHTML.__html)
|
||||
);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
var event = window.event;
|
||||
if (event && "popstate" === event.type) {
|
||||
if (event === currentPopstateTransitionEvent) return !1;
|
||||
currentPopstateTransitionEvent = event;
|
||||
return !0;
|
||||
}
|
||||
currentPopstateTransitionEvent = null;
|
||||
return !1;
|
||||
}
|
||||
var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0,
|
||||
cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0,
|
||||
localPromise = "function" === typeof Promise ? Promise : void 0,
|
||||
@@ -16769,7 +16776,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1840 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-3c8736cc",
|
||||
version: "18.3.0-www-modern-88285787",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
(function (internals) {
|
||||
@@ -16814,7 +16821,7 @@ var devToolsConfig$jscomp$inline_1840 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-3c8736cc"
|
||||
reconcilerVersion: "18.3.0-www-modern-88285787"
|
||||
});
|
||||
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
|
||||
exports.createPortal = function (children, container) {
|
||||
@@ -17066,7 +17073,7 @@ exports.useFormState = function () {
|
||||
exports.useFormStatus = function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-3c8736cc";
|
||||
exports.version = "18.3.0-www-modern-88285787";
|
||||
|
||||
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
||||
if (
|
||||
|
||||
@@ -34767,7 +34767,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-classic-2a0db555";
|
||||
var ReactVersion = "18.3.0-www-classic-0c4709ef";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -42625,8 +42625,30 @@ function getCurrentEventPriority() {
|
||||
|
||||
return getEventPriority(currentEvent.type);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
return window.event && window.event.type === "popstate";
|
||||
var event = window.event;
|
||||
|
||||
if (event && event.type === "popstate") {
|
||||
// This is a popstate event. Attempt to render any transition during this
|
||||
// event synchronously. Unless we already attempted during this event.
|
||||
if (event === currentPopstateTransitionEvent) {
|
||||
// We already attempted to render this popstate transition synchronously.
|
||||
// Any subsequent attempts must have happened as the result of a derived
|
||||
// update, like startTransition inside useEffect, or useDV. Switch back to
|
||||
// the default behavior for all remaining transitions during the current
|
||||
// popstate event.
|
||||
return false;
|
||||
} else {
|
||||
// Cache the current event in case a derived transition is scheduled.
|
||||
// (Refer to previous branch.)
|
||||
currentPopstateTransitionEvent = event;
|
||||
return true;
|
||||
}
|
||||
} // We're not inside a popstate event.
|
||||
|
||||
currentPopstateTransitionEvent = null;
|
||||
return false;
|
||||
}
|
||||
// if a component just imports ReactDOM (e.g. for findDOMNode).
|
||||
// Some environments might not have setTimeout or clearTimeout.
|
||||
|
||||
@@ -34612,7 +34612,7 @@ function createFiberRoot(
|
||||
return root;
|
||||
}
|
||||
|
||||
var ReactVersion = "18.3.0-www-modern-f25765d2";
|
||||
var ReactVersion = "18.3.0-www-modern-ed902e38";
|
||||
|
||||
function createPortal$1(
|
||||
children,
|
||||
@@ -43135,8 +43135,30 @@ function getCurrentEventPriority() {
|
||||
|
||||
return getEventPriority(currentEvent.type);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
return window.event && window.event.type === "popstate";
|
||||
var event = window.event;
|
||||
|
||||
if (event && event.type === "popstate") {
|
||||
// This is a popstate event. Attempt to render any transition during this
|
||||
// event synchronously. Unless we already attempted during this event.
|
||||
if (event === currentPopstateTransitionEvent) {
|
||||
// We already attempted to render this popstate transition synchronously.
|
||||
// Any subsequent attempts must have happened as the result of a derived
|
||||
// update, like startTransition inside useEffect, or useDV. Switch back to
|
||||
// the default behavior for all remaining transitions during the current
|
||||
// popstate event.
|
||||
return false;
|
||||
} else {
|
||||
// Cache the current event in case a derived transition is scheduled.
|
||||
// (Refer to previous branch.)
|
||||
currentPopstateTransitionEvent = event;
|
||||
return true;
|
||||
}
|
||||
} // We're not inside a popstate event.
|
||||
|
||||
currentPopstateTransitionEvent = null;
|
||||
return false;
|
||||
}
|
||||
// if a component just imports ReactDOM (e.g. for findDOMNode).
|
||||
// Some environments might not have setTimeout or clearTimeout.
|
||||
|
||||
@@ -3192,11 +3192,7 @@ function processRootScheduleInMicrotask() {
|
||||
|
||||
) {
|
||||
var next = root.next;
|
||||
if (
|
||||
0 !== currentEventTransitionLane &&
|
||||
window.event &&
|
||||
"popstate" === window.event.type
|
||||
) {
|
||||
if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) {
|
||||
var root$jscomp$0 = root,
|
||||
lane = currentEventTransitionLane;
|
||||
root$jscomp$0.pendingLanes |= 2;
|
||||
@@ -14973,6 +14969,17 @@ function shouldSetTextContent(type, props) {
|
||||
null != props.dangerouslySetInnerHTML.__html)
|
||||
);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
var event = window.event;
|
||||
if (event && "popstate" === event.type) {
|
||||
if (event === currentPopstateTransitionEvent) return !1;
|
||||
currentPopstateTransitionEvent = event;
|
||||
return !0;
|
||||
}
|
||||
currentPopstateTransitionEvent = null;
|
||||
return !1;
|
||||
}
|
||||
var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0,
|
||||
cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0,
|
||||
localPromise = "function" === typeof Promise ? Promise : void 0,
|
||||
@@ -16802,7 +16809,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1825 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-classic-08b720b1",
|
||||
version: "18.3.0-www-classic-63396f54",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2176 = {
|
||||
@@ -16832,7 +16839,7 @@ var internals$jscomp$inline_2176 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-classic-08b720b1"
|
||||
reconcilerVersion: "18.3.0-www-classic-63396f54"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2177 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17320,4 +17327,4 @@ exports.useFormState = function () {
|
||||
exports.useFormStatus = function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-classic-08b720b1";
|
||||
exports.version = "18.3.0-www-classic-63396f54";
|
||||
|
||||
@@ -3140,11 +3140,7 @@ function processRootScheduleInMicrotask() {
|
||||
|
||||
) {
|
||||
var next = root.next;
|
||||
if (
|
||||
0 !== currentEventTransitionLane &&
|
||||
window.event &&
|
||||
"popstate" === window.event.type
|
||||
) {
|
||||
if (0 !== currentEventTransitionLane && shouldAttemptEagerTransition()) {
|
||||
var root$jscomp$0 = root,
|
||||
lane = currentEventTransitionLane;
|
||||
root$jscomp$0.pendingLanes |= 2;
|
||||
@@ -15267,6 +15263,17 @@ function shouldSetTextContent(type, props) {
|
||||
null != props.dangerouslySetInnerHTML.__html)
|
||||
);
|
||||
}
|
||||
var currentPopstateTransitionEvent = null;
|
||||
function shouldAttemptEagerTransition() {
|
||||
var event = window.event;
|
||||
if (event && "popstate" === event.type) {
|
||||
if (event === currentPopstateTransitionEvent) return !1;
|
||||
currentPopstateTransitionEvent = event;
|
||||
return !0;
|
||||
}
|
||||
currentPopstateTransitionEvent = null;
|
||||
return !1;
|
||||
}
|
||||
var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0,
|
||||
cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0,
|
||||
localPromise = "function" === typeof Promise ? Promise : void 0,
|
||||
@@ -16379,7 +16386,7 @@ Internals.Events = [
|
||||
var devToolsConfig$jscomp$inline_1784 = {
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
bundleType: 0,
|
||||
version: "18.3.0-www-modern-a1b21365",
|
||||
version: "18.3.0-www-modern-82bf9b55",
|
||||
rendererPackageName: "react-dom"
|
||||
};
|
||||
var internals$jscomp$inline_2140 = {
|
||||
@@ -16410,7 +16417,7 @@ var internals$jscomp$inline_2140 = {
|
||||
scheduleRoot: null,
|
||||
setRefreshHandler: null,
|
||||
getCurrentFiber: null,
|
||||
reconcilerVersion: "18.3.0-www-modern-a1b21365"
|
||||
reconcilerVersion: "18.3.0-www-modern-82bf9b55"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2141 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16826,4 +16833,4 @@ exports.useFormState = function () {
|
||||
exports.useFormStatus = function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
};
|
||||
exports.version = "18.3.0-www-modern-a1b21365";
|
||||
exports.version = "18.3.0-www-modern-82bf9b55";
|
||||
|
||||
Reference in New Issue
Block a user