react-server-dom-webpack 19.1.0-canary-32b0cad8-20250213 → 19.1.0-canary-4632e36a-20250216
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-server-dom-webpack-client.browser.development.js +2 -2
- package/cjs/react-server-dom-webpack-server.browser.development.js +41 -41
- package/cjs/react-server-dom-webpack-server.browser.production.js +17 -17
- package/cjs/react-server-dom-webpack-server.edge.development.js +41 -41
- package/cjs/react-server-dom-webpack-server.edge.production.js +17 -17
- package/cjs/react-server-dom-webpack-server.node.development.js +41 -41
- package/cjs/react-server-dom-webpack-server.node.production.js +17 -17
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +41 -41
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +17 -17
- package/package.json +3 -3
@@ -2662,10 +2662,10 @@
|
|
2662
2662
|
return hook.checkDCE ? !0 : !1;
|
2663
2663
|
})({
|
2664
2664
|
bundleType: 1,
|
2665
|
-
version: "19.1.0-canary-
|
2665
|
+
version: "19.1.0-canary-4632e36a-20250216",
|
2666
2666
|
rendererPackageName: "react-server-dom-webpack",
|
2667
2667
|
currentDispatcherRef: ReactSharedInternals,
|
2668
|
-
reconcilerVersion: "19.1.0-canary-
|
2668
|
+
reconcilerVersion: "19.1.0-canary-4632e36a-20250216",
|
2669
2669
|
getCurrentComponentInfo: function () {
|
2670
2670
|
return currentOwnerInDEV;
|
2671
2671
|
}
|
@@ -3625,24 +3625,52 @@
|
|
3625
3625
|
thenableState = null,
|
3626
3626
|
currentComponentDebugInfo = null,
|
3627
3627
|
HooksDispatcher = {
|
3628
|
-
|
3629
|
-
|
3628
|
+
readContext: unsupportedContext,
|
3629
|
+
use: function (usable) {
|
3630
|
+
if (
|
3631
|
+
(null !== usable && "object" === typeof usable) ||
|
3632
|
+
"function" === typeof usable
|
3633
|
+
) {
|
3634
|
+
if ("function" === typeof usable.then) {
|
3635
|
+
var index = thenableIndexCounter;
|
3636
|
+
thenableIndexCounter += 1;
|
3637
|
+
null === thenableState && (thenableState = []);
|
3638
|
+
return trackUsedThenable(thenableState, usable, index);
|
3639
|
+
}
|
3640
|
+
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3641
|
+
}
|
3642
|
+
if (isClientReference(usable)) {
|
3643
|
+
if (
|
3644
|
+
null != usable.value &&
|
3645
|
+
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3646
|
+
)
|
3647
|
+
throw Error(
|
3648
|
+
"Cannot read a Client Context from a Server Component."
|
3649
|
+
);
|
3650
|
+
throw Error("Cannot use() an already resolved Client Reference.");
|
3651
|
+
}
|
3652
|
+
throw Error(
|
3653
|
+
"An unsupported type was passed to use(): " + String(usable)
|
3654
|
+
);
|
3630
3655
|
},
|
3631
3656
|
useCallback: function (callback) {
|
3632
3657
|
return callback;
|
3633
3658
|
},
|
3634
|
-
useDebugValue: function () {},
|
3635
|
-
useDeferredValue: unsupportedHook,
|
3636
|
-
useTransition: unsupportedHook,
|
3637
|
-
readContext: unsupportedContext,
|
3638
3659
|
useContext: unsupportedContext,
|
3660
|
+
useEffect: unsupportedHook,
|
3661
|
+
useImperativeHandle: unsupportedHook,
|
3662
|
+
useLayoutEffect: unsupportedHook,
|
3663
|
+
useInsertionEffect: unsupportedHook,
|
3664
|
+
useMemo: function (nextCreate) {
|
3665
|
+
return nextCreate();
|
3666
|
+
},
|
3639
3667
|
useReducer: unsupportedHook,
|
3640
3668
|
useRef: unsupportedHook,
|
3641
3669
|
useState: unsupportedHook,
|
3642
|
-
|
3643
|
-
|
3644
|
-
|
3645
|
-
|
3670
|
+
useDebugValue: function () {},
|
3671
|
+
useDeferredValue: unsupportedHook,
|
3672
|
+
useTransition: unsupportedHook,
|
3673
|
+
useSyncExternalStore: unsupportedHook,
|
3646
3674
|
useId: function () {
|
3647
3675
|
if (null === currentRequest$1)
|
3648
3676
|
throw Error("useId can only be used while React is rendering");
|
@@ -3656,44 +3684,16 @@
|
|
3656
3684
|
);
|
3657
3685
|
},
|
3658
3686
|
useHostTransitionStatus: unsupportedHook,
|
3659
|
-
useOptimistic: unsupportedHook,
|
3660
3687
|
useFormState: unsupportedHook,
|
3661
3688
|
useActionState: unsupportedHook,
|
3662
|
-
|
3663
|
-
useCacheRefresh: function () {
|
3664
|
-
return unsupportedRefresh;
|
3665
|
-
},
|
3689
|
+
useOptimistic: unsupportedHook,
|
3666
3690
|
useMemoCache: function (size) {
|
3667
3691
|
for (var data = Array(size), i = 0; i < size; i++)
|
3668
3692
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
3669
3693
|
return data;
|
3670
3694
|
},
|
3671
|
-
|
3672
|
-
|
3673
|
-
(null !== usable && "object" === typeof usable) ||
|
3674
|
-
"function" === typeof usable
|
3675
|
-
) {
|
3676
|
-
if ("function" === typeof usable.then) {
|
3677
|
-
var index = thenableIndexCounter;
|
3678
|
-
thenableIndexCounter += 1;
|
3679
|
-
null === thenableState && (thenableState = []);
|
3680
|
-
return trackUsedThenable(thenableState, usable, index);
|
3681
|
-
}
|
3682
|
-
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3683
|
-
}
|
3684
|
-
if (isClientReference(usable)) {
|
3685
|
-
if (
|
3686
|
-
null != usable.value &&
|
3687
|
-
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3688
|
-
)
|
3689
|
-
throw Error(
|
3690
|
-
"Cannot read a Client Context from a Server Component."
|
3691
|
-
);
|
3692
|
-
throw Error("Cannot use() an already resolved Client Reference.");
|
3693
|
-
}
|
3694
|
-
throw Error(
|
3695
|
-
"An unsupported type was passed to use(): " + String(usable)
|
3696
|
-
);
|
3695
|
+
useCacheRefresh: function () {
|
3696
|
+
return unsupportedRefresh;
|
3697
3697
|
}
|
3698
3698
|
},
|
3699
3699
|
currentOwner = null,
|
@@ -507,39 +507,39 @@ function getThenableStateAfterSuspending() {
|
|
507
507
|
return state;
|
508
508
|
}
|
509
509
|
var HooksDispatcher = {
|
510
|
-
|
511
|
-
|
512
|
-
},
|
510
|
+
readContext: unsupportedContext,
|
511
|
+
use: use,
|
513
512
|
useCallback: function (callback) {
|
514
513
|
return callback;
|
515
514
|
},
|
516
|
-
useDebugValue: function () {},
|
517
|
-
useDeferredValue: unsupportedHook,
|
518
|
-
useTransition: unsupportedHook,
|
519
|
-
readContext: unsupportedContext,
|
520
515
|
useContext: unsupportedContext,
|
516
|
+
useEffect: unsupportedHook,
|
517
|
+
useImperativeHandle: unsupportedHook,
|
518
|
+
useLayoutEffect: unsupportedHook,
|
519
|
+
useInsertionEffect: unsupportedHook,
|
520
|
+
useMemo: function (nextCreate) {
|
521
|
+
return nextCreate();
|
522
|
+
},
|
521
523
|
useReducer: unsupportedHook,
|
522
524
|
useRef: unsupportedHook,
|
523
525
|
useState: unsupportedHook,
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
526
|
+
useDebugValue: function () {},
|
527
|
+
useDeferredValue: unsupportedHook,
|
528
|
+
useTransition: unsupportedHook,
|
529
|
+
useSyncExternalStore: unsupportedHook,
|
528
530
|
useId: useId,
|
529
531
|
useHostTransitionStatus: unsupportedHook,
|
530
|
-
useOptimistic: unsupportedHook,
|
531
532
|
useFormState: unsupportedHook,
|
532
533
|
useActionState: unsupportedHook,
|
533
|
-
|
534
|
-
useCacheRefresh: function () {
|
535
|
-
return unsupportedRefresh;
|
536
|
-
},
|
534
|
+
useOptimistic: unsupportedHook,
|
537
535
|
useMemoCache: function (size) {
|
538
536
|
for (var data = Array(size), i = 0; i < size; i++)
|
539
537
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
540
538
|
return data;
|
541
539
|
},
|
542
|
-
|
540
|
+
useCacheRefresh: function () {
|
541
|
+
return unsupportedRefresh;
|
542
|
+
}
|
543
543
|
};
|
544
544
|
function unsupportedHook() {
|
545
545
|
throw Error("This Hook is not supported in Server Components.");
|
@@ -3705,24 +3705,52 @@
|
|
3705
3705
|
thenableState = null,
|
3706
3706
|
currentComponentDebugInfo = null,
|
3707
3707
|
HooksDispatcher = {
|
3708
|
-
|
3709
|
-
|
3708
|
+
readContext: unsupportedContext,
|
3709
|
+
use: function (usable) {
|
3710
|
+
if (
|
3711
|
+
(null !== usable && "object" === typeof usable) ||
|
3712
|
+
"function" === typeof usable
|
3713
|
+
) {
|
3714
|
+
if ("function" === typeof usable.then) {
|
3715
|
+
var index = thenableIndexCounter;
|
3716
|
+
thenableIndexCounter += 1;
|
3717
|
+
null === thenableState && (thenableState = []);
|
3718
|
+
return trackUsedThenable(thenableState, usable, index);
|
3719
|
+
}
|
3720
|
+
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3721
|
+
}
|
3722
|
+
if (isClientReference(usable)) {
|
3723
|
+
if (
|
3724
|
+
null != usable.value &&
|
3725
|
+
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3726
|
+
)
|
3727
|
+
throw Error(
|
3728
|
+
"Cannot read a Client Context from a Server Component."
|
3729
|
+
);
|
3730
|
+
throw Error("Cannot use() an already resolved Client Reference.");
|
3731
|
+
}
|
3732
|
+
throw Error(
|
3733
|
+
"An unsupported type was passed to use(): " + String(usable)
|
3734
|
+
);
|
3710
3735
|
},
|
3711
3736
|
useCallback: function (callback) {
|
3712
3737
|
return callback;
|
3713
3738
|
},
|
3714
|
-
useDebugValue: function () {},
|
3715
|
-
useDeferredValue: unsupportedHook,
|
3716
|
-
useTransition: unsupportedHook,
|
3717
|
-
readContext: unsupportedContext,
|
3718
3739
|
useContext: unsupportedContext,
|
3740
|
+
useEffect: unsupportedHook,
|
3741
|
+
useImperativeHandle: unsupportedHook,
|
3742
|
+
useLayoutEffect: unsupportedHook,
|
3743
|
+
useInsertionEffect: unsupportedHook,
|
3744
|
+
useMemo: function (nextCreate) {
|
3745
|
+
return nextCreate();
|
3746
|
+
},
|
3719
3747
|
useReducer: unsupportedHook,
|
3720
3748
|
useRef: unsupportedHook,
|
3721
3749
|
useState: unsupportedHook,
|
3722
|
-
|
3723
|
-
|
3724
|
-
|
3725
|
-
|
3750
|
+
useDebugValue: function () {},
|
3751
|
+
useDeferredValue: unsupportedHook,
|
3752
|
+
useTransition: unsupportedHook,
|
3753
|
+
useSyncExternalStore: unsupportedHook,
|
3726
3754
|
useId: function () {
|
3727
3755
|
if (null === currentRequest$1)
|
3728
3756
|
throw Error("useId can only be used while React is rendering");
|
@@ -3736,44 +3764,16 @@
|
|
3736
3764
|
);
|
3737
3765
|
},
|
3738
3766
|
useHostTransitionStatus: unsupportedHook,
|
3739
|
-
useOptimistic: unsupportedHook,
|
3740
3767
|
useFormState: unsupportedHook,
|
3741
3768
|
useActionState: unsupportedHook,
|
3742
|
-
|
3743
|
-
useCacheRefresh: function () {
|
3744
|
-
return unsupportedRefresh;
|
3745
|
-
},
|
3769
|
+
useOptimistic: unsupportedHook,
|
3746
3770
|
useMemoCache: function (size) {
|
3747
3771
|
for (var data = Array(size), i = 0; i < size; i++)
|
3748
3772
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
3749
3773
|
return data;
|
3750
3774
|
},
|
3751
|
-
|
3752
|
-
|
3753
|
-
(null !== usable && "object" === typeof usable) ||
|
3754
|
-
"function" === typeof usable
|
3755
|
-
) {
|
3756
|
-
if ("function" === typeof usable.then) {
|
3757
|
-
var index = thenableIndexCounter;
|
3758
|
-
thenableIndexCounter += 1;
|
3759
|
-
null === thenableState && (thenableState = []);
|
3760
|
-
return trackUsedThenable(thenableState, usable, index);
|
3761
|
-
}
|
3762
|
-
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3763
|
-
}
|
3764
|
-
if (isClientReference(usable)) {
|
3765
|
-
if (
|
3766
|
-
null != usable.value &&
|
3767
|
-
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3768
|
-
)
|
3769
|
-
throw Error(
|
3770
|
-
"Cannot read a Client Context from a Server Component."
|
3771
|
-
);
|
3772
|
-
throw Error("Cannot use() an already resolved Client Reference.");
|
3773
|
-
}
|
3774
|
-
throw Error(
|
3775
|
-
"An unsupported type was passed to use(): " + String(usable)
|
3776
|
-
);
|
3775
|
+
useCacheRefresh: function () {
|
3776
|
+
return unsupportedRefresh;
|
3777
3777
|
}
|
3778
3778
|
},
|
3779
3779
|
currentOwner = null,
|
@@ -505,39 +505,39 @@ function getThenableStateAfterSuspending() {
|
|
505
505
|
return state;
|
506
506
|
}
|
507
507
|
var HooksDispatcher = {
|
508
|
-
|
509
|
-
|
510
|
-
},
|
508
|
+
readContext: unsupportedContext,
|
509
|
+
use: use,
|
511
510
|
useCallback: function (callback) {
|
512
511
|
return callback;
|
513
512
|
},
|
514
|
-
useDebugValue: function () {},
|
515
|
-
useDeferredValue: unsupportedHook,
|
516
|
-
useTransition: unsupportedHook,
|
517
|
-
readContext: unsupportedContext,
|
518
513
|
useContext: unsupportedContext,
|
514
|
+
useEffect: unsupportedHook,
|
515
|
+
useImperativeHandle: unsupportedHook,
|
516
|
+
useLayoutEffect: unsupportedHook,
|
517
|
+
useInsertionEffect: unsupportedHook,
|
518
|
+
useMemo: function (nextCreate) {
|
519
|
+
return nextCreate();
|
520
|
+
},
|
519
521
|
useReducer: unsupportedHook,
|
520
522
|
useRef: unsupportedHook,
|
521
523
|
useState: unsupportedHook,
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
524
|
+
useDebugValue: function () {},
|
525
|
+
useDeferredValue: unsupportedHook,
|
526
|
+
useTransition: unsupportedHook,
|
527
|
+
useSyncExternalStore: unsupportedHook,
|
526
528
|
useId: useId,
|
527
529
|
useHostTransitionStatus: unsupportedHook,
|
528
|
-
useOptimistic: unsupportedHook,
|
529
530
|
useFormState: unsupportedHook,
|
530
531
|
useActionState: unsupportedHook,
|
531
|
-
|
532
|
-
useCacheRefresh: function () {
|
533
|
-
return unsupportedRefresh;
|
534
|
-
},
|
532
|
+
useOptimistic: unsupportedHook,
|
535
533
|
useMemoCache: function (size) {
|
536
534
|
for (var data = Array(size), i = 0; i < size; i++)
|
537
535
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
538
536
|
return data;
|
539
537
|
},
|
540
|
-
|
538
|
+
useCacheRefresh: function () {
|
539
|
+
return unsupportedRefresh;
|
540
|
+
}
|
541
541
|
};
|
542
542
|
function unsupportedHook() {
|
543
543
|
throw Error("This Hook is not supported in Server Components.");
|
@@ -3702,24 +3702,52 @@
|
|
3702
3702
|
thenableState = null,
|
3703
3703
|
currentComponentDebugInfo = null,
|
3704
3704
|
HooksDispatcher = {
|
3705
|
-
|
3706
|
-
|
3705
|
+
readContext: unsupportedContext,
|
3706
|
+
use: function (usable) {
|
3707
|
+
if (
|
3708
|
+
(null !== usable && "object" === typeof usable) ||
|
3709
|
+
"function" === typeof usable
|
3710
|
+
) {
|
3711
|
+
if ("function" === typeof usable.then) {
|
3712
|
+
var index = thenableIndexCounter;
|
3713
|
+
thenableIndexCounter += 1;
|
3714
|
+
null === thenableState && (thenableState = []);
|
3715
|
+
return trackUsedThenable(thenableState, usable, index);
|
3716
|
+
}
|
3717
|
+
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3718
|
+
}
|
3719
|
+
if (isClientReference(usable)) {
|
3720
|
+
if (
|
3721
|
+
null != usable.value &&
|
3722
|
+
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3723
|
+
)
|
3724
|
+
throw Error(
|
3725
|
+
"Cannot read a Client Context from a Server Component."
|
3726
|
+
);
|
3727
|
+
throw Error("Cannot use() an already resolved Client Reference.");
|
3728
|
+
}
|
3729
|
+
throw Error(
|
3730
|
+
"An unsupported type was passed to use(): " + String(usable)
|
3731
|
+
);
|
3707
3732
|
},
|
3708
3733
|
useCallback: function (callback) {
|
3709
3734
|
return callback;
|
3710
3735
|
},
|
3711
|
-
useDebugValue: function () {},
|
3712
|
-
useDeferredValue: unsupportedHook,
|
3713
|
-
useTransition: unsupportedHook,
|
3714
|
-
readContext: unsupportedContext,
|
3715
3736
|
useContext: unsupportedContext,
|
3737
|
+
useEffect: unsupportedHook,
|
3738
|
+
useImperativeHandle: unsupportedHook,
|
3739
|
+
useLayoutEffect: unsupportedHook,
|
3740
|
+
useInsertionEffect: unsupportedHook,
|
3741
|
+
useMemo: function (nextCreate) {
|
3742
|
+
return nextCreate();
|
3743
|
+
},
|
3716
3744
|
useReducer: unsupportedHook,
|
3717
3745
|
useRef: unsupportedHook,
|
3718
3746
|
useState: unsupportedHook,
|
3719
|
-
|
3720
|
-
|
3721
|
-
|
3722
|
-
|
3747
|
+
useDebugValue: function () {},
|
3748
|
+
useDeferredValue: unsupportedHook,
|
3749
|
+
useTransition: unsupportedHook,
|
3750
|
+
useSyncExternalStore: unsupportedHook,
|
3723
3751
|
useId: function () {
|
3724
3752
|
if (null === currentRequest$1)
|
3725
3753
|
throw Error("useId can only be used while React is rendering");
|
@@ -3733,44 +3761,16 @@
|
|
3733
3761
|
);
|
3734
3762
|
},
|
3735
3763
|
useHostTransitionStatus: unsupportedHook,
|
3736
|
-
useOptimistic: unsupportedHook,
|
3737
3764
|
useFormState: unsupportedHook,
|
3738
3765
|
useActionState: unsupportedHook,
|
3739
|
-
|
3740
|
-
useCacheRefresh: function () {
|
3741
|
-
return unsupportedRefresh;
|
3742
|
-
},
|
3766
|
+
useOptimistic: unsupportedHook,
|
3743
3767
|
useMemoCache: function (size) {
|
3744
3768
|
for (var data = Array(size), i = 0; i < size; i++)
|
3745
3769
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
3746
3770
|
return data;
|
3747
3771
|
},
|
3748
|
-
|
3749
|
-
|
3750
|
-
(null !== usable && "object" === typeof usable) ||
|
3751
|
-
"function" === typeof usable
|
3752
|
-
) {
|
3753
|
-
if ("function" === typeof usable.then) {
|
3754
|
-
var index = thenableIndexCounter;
|
3755
|
-
thenableIndexCounter += 1;
|
3756
|
-
null === thenableState && (thenableState = []);
|
3757
|
-
return trackUsedThenable(thenableState, usable, index);
|
3758
|
-
}
|
3759
|
-
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3760
|
-
}
|
3761
|
-
if (isClientReference(usable)) {
|
3762
|
-
if (
|
3763
|
-
null != usable.value &&
|
3764
|
-
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3765
|
-
)
|
3766
|
-
throw Error(
|
3767
|
-
"Cannot read a Client Context from a Server Component."
|
3768
|
-
);
|
3769
|
-
throw Error("Cannot use() an already resolved Client Reference.");
|
3770
|
-
}
|
3771
|
-
throw Error(
|
3772
|
-
"An unsupported type was passed to use(): " + String(usable)
|
3773
|
-
);
|
3772
|
+
useCacheRefresh: function () {
|
3773
|
+
return unsupportedRefresh;
|
3774
3774
|
}
|
3775
3775
|
},
|
3776
3776
|
currentOwner = null,
|
@@ -525,39 +525,39 @@ function getThenableStateAfterSuspending() {
|
|
525
525
|
return state;
|
526
526
|
}
|
527
527
|
var HooksDispatcher = {
|
528
|
-
|
529
|
-
|
530
|
-
},
|
528
|
+
readContext: unsupportedContext,
|
529
|
+
use: use,
|
531
530
|
useCallback: function (callback) {
|
532
531
|
return callback;
|
533
532
|
},
|
534
|
-
useDebugValue: function () {},
|
535
|
-
useDeferredValue: unsupportedHook,
|
536
|
-
useTransition: unsupportedHook,
|
537
|
-
readContext: unsupportedContext,
|
538
533
|
useContext: unsupportedContext,
|
534
|
+
useEffect: unsupportedHook,
|
535
|
+
useImperativeHandle: unsupportedHook,
|
536
|
+
useLayoutEffect: unsupportedHook,
|
537
|
+
useInsertionEffect: unsupportedHook,
|
538
|
+
useMemo: function (nextCreate) {
|
539
|
+
return nextCreate();
|
540
|
+
},
|
539
541
|
useReducer: unsupportedHook,
|
540
542
|
useRef: unsupportedHook,
|
541
543
|
useState: unsupportedHook,
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
544
|
+
useDebugValue: function () {},
|
545
|
+
useDeferredValue: unsupportedHook,
|
546
|
+
useTransition: unsupportedHook,
|
547
|
+
useSyncExternalStore: unsupportedHook,
|
546
548
|
useId: useId,
|
547
549
|
useHostTransitionStatus: unsupportedHook,
|
548
|
-
useOptimistic: unsupportedHook,
|
549
550
|
useFormState: unsupportedHook,
|
550
551
|
useActionState: unsupportedHook,
|
551
|
-
|
552
|
-
useCacheRefresh: function () {
|
553
|
-
return unsupportedRefresh;
|
554
|
-
},
|
552
|
+
useOptimistic: unsupportedHook,
|
555
553
|
useMemoCache: function (size) {
|
556
554
|
for (var data = Array(size), i = 0; i < size; i++)
|
557
555
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
558
556
|
return data;
|
559
557
|
},
|
560
|
-
|
558
|
+
useCacheRefresh: function () {
|
559
|
+
return unsupportedRefresh;
|
560
|
+
}
|
561
561
|
};
|
562
562
|
function unsupportedHook() {
|
563
563
|
throw Error("This Hook is not supported in Server Components.");
|
@@ -3665,24 +3665,52 @@
|
|
3665
3665
|
thenableState = null,
|
3666
3666
|
currentComponentDebugInfo = null,
|
3667
3667
|
HooksDispatcher = {
|
3668
|
-
|
3669
|
-
|
3668
|
+
readContext: unsupportedContext,
|
3669
|
+
use: function (usable) {
|
3670
|
+
if (
|
3671
|
+
(null !== usable && "object" === typeof usable) ||
|
3672
|
+
"function" === typeof usable
|
3673
|
+
) {
|
3674
|
+
if ("function" === typeof usable.then) {
|
3675
|
+
var index = thenableIndexCounter;
|
3676
|
+
thenableIndexCounter += 1;
|
3677
|
+
null === thenableState && (thenableState = []);
|
3678
|
+
return trackUsedThenable(thenableState, usable, index);
|
3679
|
+
}
|
3680
|
+
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3681
|
+
}
|
3682
|
+
if (isClientReference(usable)) {
|
3683
|
+
if (
|
3684
|
+
null != usable.value &&
|
3685
|
+
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3686
|
+
)
|
3687
|
+
throw Error(
|
3688
|
+
"Cannot read a Client Context from a Server Component."
|
3689
|
+
);
|
3690
|
+
throw Error("Cannot use() an already resolved Client Reference.");
|
3691
|
+
}
|
3692
|
+
throw Error(
|
3693
|
+
"An unsupported type was passed to use(): " + String(usable)
|
3694
|
+
);
|
3670
3695
|
},
|
3671
3696
|
useCallback: function (callback) {
|
3672
3697
|
return callback;
|
3673
3698
|
},
|
3674
|
-
useDebugValue: function () {},
|
3675
|
-
useDeferredValue: unsupportedHook,
|
3676
|
-
useTransition: unsupportedHook,
|
3677
|
-
readContext: unsupportedContext,
|
3678
3699
|
useContext: unsupportedContext,
|
3700
|
+
useEffect: unsupportedHook,
|
3701
|
+
useImperativeHandle: unsupportedHook,
|
3702
|
+
useLayoutEffect: unsupportedHook,
|
3703
|
+
useInsertionEffect: unsupportedHook,
|
3704
|
+
useMemo: function (nextCreate) {
|
3705
|
+
return nextCreate();
|
3706
|
+
},
|
3679
3707
|
useReducer: unsupportedHook,
|
3680
3708
|
useRef: unsupportedHook,
|
3681
3709
|
useState: unsupportedHook,
|
3682
|
-
|
3683
|
-
|
3684
|
-
|
3685
|
-
|
3710
|
+
useDebugValue: function () {},
|
3711
|
+
useDeferredValue: unsupportedHook,
|
3712
|
+
useTransition: unsupportedHook,
|
3713
|
+
useSyncExternalStore: unsupportedHook,
|
3686
3714
|
useId: function () {
|
3687
3715
|
if (null === currentRequest$1)
|
3688
3716
|
throw Error("useId can only be used while React is rendering");
|
@@ -3696,44 +3724,16 @@
|
|
3696
3724
|
);
|
3697
3725
|
},
|
3698
3726
|
useHostTransitionStatus: unsupportedHook,
|
3699
|
-
useOptimistic: unsupportedHook,
|
3700
3727
|
useFormState: unsupportedHook,
|
3701
3728
|
useActionState: unsupportedHook,
|
3702
|
-
|
3703
|
-
useCacheRefresh: function () {
|
3704
|
-
return unsupportedRefresh;
|
3705
|
-
},
|
3729
|
+
useOptimistic: unsupportedHook,
|
3706
3730
|
useMemoCache: function (size) {
|
3707
3731
|
for (var data = Array(size), i = 0; i < size; i++)
|
3708
3732
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
3709
3733
|
return data;
|
3710
3734
|
},
|
3711
|
-
|
3712
|
-
|
3713
|
-
(null !== usable && "object" === typeof usable) ||
|
3714
|
-
"function" === typeof usable
|
3715
|
-
) {
|
3716
|
-
if ("function" === typeof usable.then) {
|
3717
|
-
var index = thenableIndexCounter;
|
3718
|
-
thenableIndexCounter += 1;
|
3719
|
-
null === thenableState && (thenableState = []);
|
3720
|
-
return trackUsedThenable(thenableState, usable, index);
|
3721
|
-
}
|
3722
|
-
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3723
|
-
}
|
3724
|
-
if (isClientReference(usable)) {
|
3725
|
-
if (
|
3726
|
-
null != usable.value &&
|
3727
|
-
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3728
|
-
)
|
3729
|
-
throw Error(
|
3730
|
-
"Cannot read a Client Context from a Server Component."
|
3731
|
-
);
|
3732
|
-
throw Error("Cannot use() an already resolved Client Reference.");
|
3733
|
-
}
|
3734
|
-
throw Error(
|
3735
|
-
"An unsupported type was passed to use(): " + String(usable)
|
3736
|
-
);
|
3735
|
+
useCacheRefresh: function () {
|
3736
|
+
return unsupportedRefresh;
|
3737
3737
|
}
|
3738
3738
|
},
|
3739
3739
|
currentOwner = null,
|
@@ -525,39 +525,39 @@ function getThenableStateAfterSuspending() {
|
|
525
525
|
return state;
|
526
526
|
}
|
527
527
|
var HooksDispatcher = {
|
528
|
-
|
529
|
-
|
530
|
-
},
|
528
|
+
readContext: unsupportedContext,
|
529
|
+
use: use,
|
531
530
|
useCallback: function (callback) {
|
532
531
|
return callback;
|
533
532
|
},
|
534
|
-
useDebugValue: function () {},
|
535
|
-
useDeferredValue: unsupportedHook,
|
536
|
-
useTransition: unsupportedHook,
|
537
|
-
readContext: unsupportedContext,
|
538
533
|
useContext: unsupportedContext,
|
534
|
+
useEffect: unsupportedHook,
|
535
|
+
useImperativeHandle: unsupportedHook,
|
536
|
+
useLayoutEffect: unsupportedHook,
|
537
|
+
useInsertionEffect: unsupportedHook,
|
538
|
+
useMemo: function (nextCreate) {
|
539
|
+
return nextCreate();
|
540
|
+
},
|
539
541
|
useReducer: unsupportedHook,
|
540
542
|
useRef: unsupportedHook,
|
541
543
|
useState: unsupportedHook,
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
544
|
+
useDebugValue: function () {},
|
545
|
+
useDeferredValue: unsupportedHook,
|
546
|
+
useTransition: unsupportedHook,
|
547
|
+
useSyncExternalStore: unsupportedHook,
|
546
548
|
useId: useId,
|
547
549
|
useHostTransitionStatus: unsupportedHook,
|
548
|
-
useOptimistic: unsupportedHook,
|
549
550
|
useFormState: unsupportedHook,
|
550
551
|
useActionState: unsupportedHook,
|
551
|
-
|
552
|
-
useCacheRefresh: function () {
|
553
|
-
return unsupportedRefresh;
|
554
|
-
},
|
552
|
+
useOptimistic: unsupportedHook,
|
555
553
|
useMemoCache: function (size) {
|
556
554
|
for (var data = Array(size), i = 0; i < size; i++)
|
557
555
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
558
556
|
return data;
|
559
557
|
},
|
560
|
-
|
558
|
+
useCacheRefresh: function () {
|
559
|
+
return unsupportedRefresh;
|
560
|
+
}
|
561
561
|
};
|
562
562
|
function unsupportedHook() {
|
563
563
|
throw Error("This Hook is not supported in Server Components.");
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-server-dom-webpack",
|
3
3
|
"description": "React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.",
|
4
|
-
"version": "19.1.0-canary-
|
4
|
+
"version": "19.1.0-canary-4632e36a-20250216",
|
5
5
|
"keywords": [
|
6
6
|
"react"
|
7
7
|
],
|
@@ -99,8 +99,8 @@
|
|
99
99
|
"node": ">=0.10.0"
|
100
100
|
},
|
101
101
|
"peerDependencies": {
|
102
|
-
"react": "19.1.0-canary-
|
103
|
-
"react-dom": "19.1.0-canary-
|
102
|
+
"react": "19.1.0-canary-4632e36a-20250216",
|
103
|
+
"react-dom": "19.1.0-canary-4632e36a-20250216",
|
104
104
|
"webpack": "^5.59.0"
|
105
105
|
},
|
106
106
|
"dependencies": {
|