react 19.1.0-canary-cd90a4d8-20250210 → 19.1.0-canary-cbbe8666-20250213
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
@@ -1478,8 +1478,17 @@
|
|
1478
1478
|
exports.useDeferredValue = function (value, initialValue) {
|
1479
1479
|
return resolveDispatcher().useDeferredValue(value, initialValue);
|
1480
1480
|
};
|
1481
|
-
exports.useEffect = function (create,
|
1482
|
-
|
1481
|
+
exports.useEffect = function (create, createDeps, update) {
|
1482
|
+
null == create &&
|
1483
|
+
console.warn(
|
1484
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
1485
|
+
);
|
1486
|
+
var dispatcher = resolveDispatcher();
|
1487
|
+
if ("function" === typeof update)
|
1488
|
+
throw Error(
|
1489
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
1490
|
+
);
|
1491
|
+
return dispatcher.useEffect(create, createDeps);
|
1483
1492
|
};
|
1484
1493
|
exports.useId = function () {
|
1485
1494
|
return resolveDispatcher().useId();
|
@@ -1488,9 +1497,17 @@
|
|
1488
1497
|
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
1489
1498
|
};
|
1490
1499
|
exports.useInsertionEffect = function (create, deps) {
|
1500
|
+
null == create &&
|
1501
|
+
console.warn(
|
1502
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
1503
|
+
);
|
1491
1504
|
return resolveDispatcher().useInsertionEffect(create, deps);
|
1492
1505
|
};
|
1493
1506
|
exports.useLayoutEffect = function (create, deps) {
|
1507
|
+
null == create &&
|
1508
|
+
console.warn(
|
1509
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
1510
|
+
);
|
1494
1511
|
return resolveDispatcher().useLayoutEffect(create, deps);
|
1495
1512
|
};
|
1496
1513
|
exports.useMemo = function (create, deps) {
|
@@ -1522,7 +1539,7 @@
|
|
1522
1539
|
exports.useTransition = function () {
|
1523
1540
|
return resolveDispatcher().useTransition();
|
1524
1541
|
};
|
1525
|
-
exports.version = "19.1.0-canary-
|
1542
|
+
exports.version = "19.1.0-canary-cbbe8666-20250213";
|
1526
1543
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1527
1544
|
"function" ===
|
1528
1545
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -497,8 +497,13 @@ exports.useDebugValue = function () {};
|
|
497
497
|
exports.useDeferredValue = function (value, initialValue) {
|
498
498
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
499
499
|
};
|
500
|
-
exports.useEffect = function (create,
|
501
|
-
|
500
|
+
exports.useEffect = function (create, createDeps, update) {
|
501
|
+
var dispatcher = ReactSharedInternals.H;
|
502
|
+
if ("function" === typeof update)
|
503
|
+
throw Error(
|
504
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
505
|
+
);
|
506
|
+
return dispatcher.useEffect(create, createDeps);
|
502
507
|
};
|
503
508
|
exports.useId = function () {
|
504
509
|
return ReactSharedInternals.H.useId();
|
@@ -541,4 +546,4 @@ exports.useSyncExternalStore = function (
|
|
541
546
|
exports.useTransition = function () {
|
542
547
|
return ReactSharedInternals.H.useTransition();
|
543
548
|
};
|
544
|
-
exports.version = "19.1.0-canary-
|
549
|
+
exports.version = "19.1.0-canary-cbbe8666-20250213";
|