react 19.1.0-canary-4280563b-20250326 → 19.1.0
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
@@ -1173,12 +1173,17 @@
|
|
1173
1173
|
exports.useDeferredValue = function (value, initialValue) {
|
1174
1174
|
return resolveDispatcher().useDeferredValue(value, initialValue);
|
1175
1175
|
};
|
1176
|
-
exports.useEffect = function (create,
|
1176
|
+
exports.useEffect = function (create, createDeps, update) {
|
1177
1177
|
null == create &&
|
1178
1178
|
console.warn(
|
1179
1179
|
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
1180
1180
|
);
|
1181
|
-
|
1181
|
+
var dispatcher = resolveDispatcher();
|
1182
|
+
if ("function" === typeof update)
|
1183
|
+
throw Error(
|
1184
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
1185
|
+
);
|
1186
|
+
return dispatcher.useEffect(create, createDeps);
|
1182
1187
|
};
|
1183
1188
|
exports.useId = function () {
|
1184
1189
|
return resolveDispatcher().useId();
|
@@ -1229,7 +1234,7 @@
|
|
1229
1234
|
exports.useTransition = function () {
|
1230
1235
|
return resolveDispatcher().useTransition();
|
1231
1236
|
};
|
1232
|
-
exports.version = "19.1.0
|
1237
|
+
exports.version = "19.1.0";
|
1233
1238
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1234
1239
|
"function" ===
|
1235
1240
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -494,8 +494,13 @@ exports.useDebugValue = function () {};
|
|
494
494
|
exports.useDeferredValue = function (value, initialValue) {
|
495
495
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
496
496
|
};
|
497
|
-
exports.useEffect = function (create,
|
498
|
-
|
497
|
+
exports.useEffect = function (create, createDeps, update) {
|
498
|
+
var dispatcher = ReactSharedInternals.H;
|
499
|
+
if ("function" === typeof update)
|
500
|
+
throw Error(
|
501
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
502
|
+
);
|
503
|
+
return dispatcher.useEffect(create, createDeps);
|
499
504
|
};
|
500
505
|
exports.useId = function () {
|
501
506
|
return ReactSharedInternals.H.useId();
|
@@ -538,4 +543,4 @@ exports.useSyncExternalStore = function (
|
|
538
543
|
exports.useTransition = function () {
|
539
544
|
return ReactSharedInternals.H.useTransition();
|
540
545
|
};
|
541
|
-
exports.version = "19.1.0
|
546
|
+
exports.version = "19.1.0";
|