react 19.0.0-rc-a99d8e8d-20240916 → 19.0.0-rc-5dcb0097-20240918
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/react.development.js
CHANGED
@@ -1416,15 +1416,14 @@
|
|
1416
1416
|
};
|
1417
1417
|
exports.startTransition = function (scope) {
|
1418
1418
|
var prevTransition = ReactSharedInternals.T,
|
1419
|
-
|
1420
|
-
ReactSharedInternals.T =
|
1421
|
-
|
1422
|
-
ReactSharedInternals.T._updatedFibers = new Set();
|
1419
|
+
currentTransition = {};
|
1420
|
+
ReactSharedInternals.T = currentTransition;
|
1421
|
+
currentTransition._updatedFibers = new Set();
|
1423
1422
|
try {
|
1424
1423
|
var returnValue = scope(),
|
1425
1424
|
onStartTransitionFinish = ReactSharedInternals.S;
|
1426
1425
|
null !== onStartTransitionFinish &&
|
1427
|
-
onStartTransitionFinish(
|
1426
|
+
onStartTransitionFinish(currentTransition, returnValue);
|
1428
1427
|
"object" === typeof returnValue &&
|
1429
1428
|
null !== returnValue &&
|
1430
1429
|
"function" === typeof returnValue.then &&
|
@@ -1517,7 +1516,7 @@
|
|
1517
1516
|
exports.useTransition = function () {
|
1518
1517
|
return resolveDispatcher().useTransition();
|
1519
1518
|
};
|
1520
|
-
exports.version = "19.0.0-rc-
|
1519
|
+
exports.version = "19.0.0-rc-5dcb0097-20240918";
|
1521
1520
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1522
1521
|
"function" ===
|
1523
1522
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -456,13 +456,13 @@ exports.memo = function (type, compare) {
|
|
456
456
|
};
|
457
457
|
exports.startTransition = function (scope) {
|
458
458
|
var prevTransition = ReactSharedInternals.T,
|
459
|
-
|
460
|
-
ReactSharedInternals.T =
|
459
|
+
currentTransition = {};
|
460
|
+
ReactSharedInternals.T = currentTransition;
|
461
461
|
try {
|
462
462
|
var returnValue = scope(),
|
463
463
|
onStartTransitionFinish = ReactSharedInternals.S;
|
464
464
|
null !== onStartTransitionFinish &&
|
465
|
-
onStartTransitionFinish(
|
465
|
+
onStartTransitionFinish(currentTransition, returnValue);
|
466
466
|
"object" === typeof returnValue &&
|
467
467
|
null !== returnValue &&
|
468
468
|
"function" === typeof returnValue.then &&
|
@@ -536,4 +536,4 @@ exports.useSyncExternalStore = function (
|
|
536
536
|
exports.useTransition = function () {
|
537
537
|
return ReactSharedInternals.H.useTransition();
|
538
538
|
};
|
539
|
-
exports.version = "19.0.0-rc-
|
539
|
+
exports.version = "19.0.0-rc-5dcb0097-20240918";
|