react 19.2.0-canary-63779030-20250328 → 19.2.0-canary-e5dd82a7-20250401
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
@@ -498,6 +498,9 @@
|
|
498
498
|
);
|
499
499
|
return dispatcher;
|
500
500
|
}
|
501
|
+
function releaseAsyncTransition() {
|
502
|
+
ReactSharedInternals.asyncTransitions--;
|
503
|
+
}
|
501
504
|
function noop() {}
|
502
505
|
function enqueueTask(task) {
|
503
506
|
if (null === enqueueTaskImpl)
|
@@ -660,8 +663,8 @@
|
|
660
663
|
A: null,
|
661
664
|
T: null,
|
662
665
|
S: null,
|
663
|
-
V: null,
|
664
666
|
actQueue: null,
|
667
|
+
asyncTransitions: 0,
|
665
668
|
isBatchingLegacy: !1,
|
666
669
|
didScheduleLegacyUpdate: !1,
|
667
670
|
didUsePromise: !1,
|
@@ -1118,8 +1121,8 @@
|
|
1118
1121
|
exports.startTransition = function (scope) {
|
1119
1122
|
var prevTransition = ReactSharedInternals.T,
|
1120
1123
|
currentTransition = {};
|
1121
|
-
ReactSharedInternals.T = currentTransition;
|
1122
1124
|
currentTransition._updatedFibers = new Set();
|
1125
|
+
ReactSharedInternals.T = currentTransition;
|
1123
1126
|
try {
|
1124
1127
|
var returnValue = scope(),
|
1125
1128
|
onStartTransitionFinish = ReactSharedInternals.S;
|
@@ -1128,7 +1131,9 @@
|
|
1128
1131
|
"object" === typeof returnValue &&
|
1129
1132
|
null !== returnValue &&
|
1130
1133
|
"function" === typeof returnValue.then &&
|
1131
|
-
|
1134
|
+
(ReactSharedInternals.asyncTransitions++,
|
1135
|
+
returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
|
1136
|
+
returnValue.then(noop, reportGlobalError));
|
1132
1137
|
} catch (error) {
|
1133
1138
|
reportGlobalError(error);
|
1134
1139
|
} finally {
|
@@ -1140,6 +1145,14 @@
|
|
1140
1145
|
console.warn(
|
1141
1146
|
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
1142
1147
|
)),
|
1148
|
+
null !== prevTransition &&
|
1149
|
+
null !== currentTransition.types &&
|
1150
|
+
(null !== prevTransition.types &&
|
1151
|
+
prevTransition.types !== currentTransition.types &&
|
1152
|
+
console.error(
|
1153
|
+
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
1154
|
+
),
|
1155
|
+
(prevTransition.types = currentTransition.types)),
|
1143
1156
|
(ReactSharedInternals.T = prevTransition);
|
1144
1157
|
}
|
1145
1158
|
};
|
@@ -1229,7 +1242,7 @@
|
|
1229
1242
|
exports.useTransition = function () {
|
1230
1243
|
return resolveDispatcher().useTransition();
|
1231
1244
|
};
|
1232
|
-
exports.version = "19.2.0-canary-
|
1245
|
+
exports.version = "19.2.0-canary-e5dd82a7-20250401";
|
1233
1246
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1234
1247
|
"function" ===
|
1235
1248
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -72,7 +72,7 @@ pureComponentPrototype.constructor = PureComponent;
|
|
72
72
|
assign(pureComponentPrototype, Component.prototype);
|
73
73
|
pureComponentPrototype.isPureReactComponent = !0;
|
74
74
|
var isArrayImpl = Array.isArray,
|
75
|
-
ReactSharedInternals = { H: null, A: null, T: null, S: null
|
75
|
+
ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
76
76
|
hasOwnProperty = Object.prototype.hasOwnProperty;
|
77
77
|
function ReactElement(type, key, self, source, owner, props) {
|
78
78
|
self = props.ref;
|
@@ -472,7 +472,10 @@ exports.startTransition = function (scope) {
|
|
472
472
|
} catch (error) {
|
473
473
|
reportGlobalError(error);
|
474
474
|
} finally {
|
475
|
-
|
475
|
+
null !== prevTransition &&
|
476
|
+
null !== currentTransition.types &&
|
477
|
+
(prevTransition.types = currentTransition.types),
|
478
|
+
(ReactSharedInternals.T = prevTransition);
|
476
479
|
}
|
477
480
|
};
|
478
481
|
exports.unstable_useCacheRefresh = function () {
|
@@ -538,4 +541,4 @@ exports.useSyncExternalStore = function (
|
|
538
541
|
exports.useTransition = function () {
|
539
542
|
return ReactSharedInternals.H.useTransition();
|
540
543
|
};
|
541
|
-
exports.version = "19.2.0-canary-
|
544
|
+
exports.version = "19.2.0-canary-e5dd82a7-20250401";
|