react 19.1.0-canary-740a4f7a-20250325 → 19.1.0-canary-313332d1-20250326
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,17 +1173,12 @@
|
|
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, deps) {
|
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
|
-
|
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);
|
1181
|
+
return resolveDispatcher().useEffect(create, deps);
|
1187
1182
|
};
|
1188
1183
|
exports.useId = function () {
|
1189
1184
|
return resolveDispatcher().useId();
|
@@ -1234,7 +1229,7 @@
|
|
1234
1229
|
exports.useTransition = function () {
|
1235
1230
|
return resolveDispatcher().useTransition();
|
1236
1231
|
};
|
1237
|
-
exports.version = "19.1.0-canary-
|
1232
|
+
exports.version = "19.1.0-canary-313332d1-20250326";
|
1238
1233
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1239
1234
|
"function" ===
|
1240
1235
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -494,13 +494,8 @@ 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
|
-
|
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);
|
497
|
+
exports.useEffect = function (create, deps) {
|
498
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
504
499
|
};
|
505
500
|
exports.useId = function () {
|
506
501
|
return ReactSharedInternals.H.useId();
|
@@ -543,4 +538,4 @@ exports.useSyncExternalStore = function (
|
|
543
538
|
exports.useTransition = function () {
|
544
539
|
return ReactSharedInternals.H.useTransition();
|
545
540
|
};
|
546
|
-
exports.version = "19.1.0-canary-
|
541
|
+
exports.version = "19.1.0-canary-313332d1-20250326";
|