@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
69
69
return self;
70
70
}
71
71
72
- var ReactVersion = "18.3.0-www-classic-4dda96a40-20221213 ";
72
+ var ReactVersion = "18.3.0-www-classic-84a0a171e-20221214 ";
73
73
74
74
var LegacyRoot = 0;
75
75
var ConcurrentRoot = 1;
@@ -8899,7 +8899,7 @@ function updateEffect(create, deps) {
8899
8899
updateEffectImpl(Passive, Passive$1, create, deps);
8900
8900
}
8901
8901
8902
- function useEventImpl (payload) {
8902
+ function useEffectEventImpl (payload) {
8903
8903
currentlyRenderingFiber.flags |= Update;
8904
8904
var componentUpdateQueue = currentlyRenderingFiber.updateQueue;
8905
8905
@@ -8928,7 +8928,7 @@ function mountEvent(callback) {
8928
8928
return function eventFn() {
8929
8929
if (isInvalidExecutionContextForEventFunction()) {
8930
8930
throw new Error(
8931
- "A function wrapped in useEvent can't be called during rendering."
8931
+ "A function wrapped in useEffectEvent can't be called during rendering."
8932
8932
);
8933
8933
}
8934
8934
@@ -8939,15 +8939,15 @@ function mountEvent(callback) {
8939
8939
function updateEvent(callback) {
8940
8940
var hook = updateWorkInProgressHook();
8941
8941
var ref = hook.memoizedState;
8942
- useEventImpl ({
8942
+ useEffectEventImpl ({
8943
8943
ref: ref,
8944
8944
nextImpl: callback
8945
8945
}); // $FlowIgnore[incompatible-return]
8946
8946
8947
8947
return function eventFn() {
8948
8948
if (isInvalidExecutionContextForEventFunction()) {
8949
8949
throw new Error(
8950
- "A function wrapped in useEvent can't be called during rendering."
8950
+ "A function wrapped in useEffectEvent can't be called during rendering."
8951
8951
);
8952
8952
}
8953
8953
@@ -9570,7 +9570,7 @@ var ContextOnlyDispatcher = {
9570
9570
}
9571
9571
9572
9572
{
9573
- ContextOnlyDispatcher.useEvent = throwInvalidHookError;
9573
+ ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError;
9574
9574
}
9575
9575
9576
9576
var HooksDispatcherOnMountInDEV = null;
@@ -9730,8 +9730,10 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
9730
9730
}
9731
9731
9732
9732
{
9733
- HooksDispatcherOnMountInDEV.useEvent = function useEvent(callback) {
9734
- currentHookNameInDev = "useEvent";
9733
+ HooksDispatcherOnMountInDEV.useEffectEvent = function useEffectEvent(
9734
+ callback
9735
+ ) {
9736
+ currentHookNameInDev = "useEffectEvent";
9735
9737
mountHookTypesDev();
9736
9738
return mountEvent(callback);
9737
9739
};
@@ -9861,10 +9863,10 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
9861
9863
}
9862
9864
9863
9865
{
9864
- HooksDispatcherOnMountWithHookTypesInDEV.useEvent = function useEvent (
9866
+ HooksDispatcherOnMountWithHookTypesInDEV.useEffectEvent = function useEffectEvent (
9865
9867
callback
9866
9868
) {
9867
- currentHookNameInDev = "useEvent ";
9869
+ currentHookNameInDev = "useEffectEvent ";
9868
9870
updateHookTypesDev();
9869
9871
return mountEvent(callback);
9870
9872
};
@@ -9994,8 +9996,10 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
9994
9996
}
9995
9997
9996
9998
{
9997
- HooksDispatcherOnUpdateInDEV.useEvent = function useEvent(callback) {
9998
- currentHookNameInDev = "useEvent";
9999
+ HooksDispatcherOnUpdateInDEV.useEffectEvent = function useEffectEvent(
10000
+ callback
10001
+ ) {
10002
+ currentHookNameInDev = "useEffectEvent";
9999
10003
updateHookTypesDev();
10000
10004
return updateEvent(callback);
10001
10005
};
@@ -10125,8 +10129,10 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
10125
10129
}
10126
10130
10127
10131
{
10128
- HooksDispatcherOnRerenderInDEV.useEvent = function useEvent(callback) {
10129
- currentHookNameInDev = "useEvent";
10132
+ HooksDispatcherOnRerenderInDEV.useEffectEvent = function useEffectEvent(
10133
+ callback
10134
+ ) {
10135
+ currentHookNameInDev = "useEffectEvent";
10130
10136
updateHookTypesDev();
10131
10137
return updateEvent(callback);
10132
10138
};
@@ -10279,10 +10285,10 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
10279
10285
}
10280
10286
10281
10287
{
10282
- InvalidNestedHooksDispatcherOnMountInDEV.useEvent = function useEvent (
10288
+ InvalidNestedHooksDispatcherOnMountInDEV.useEffectEvent = function useEffectEvent (
10283
10289
callback
10284
10290
) {
10285
- currentHookNameInDev = "useEvent ";
10291
+ currentHookNameInDev = "useEffectEvent ";
10286
10292
warnInvalidHookAccess();
10287
10293
mountHookTypesDev();
10288
10294
return mountEvent(callback);
@@ -10436,10 +10442,10 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
10436
10442
}
10437
10443
10438
10444
{
10439
- InvalidNestedHooksDispatcherOnUpdateInDEV.useEvent = function useEvent (
10445
+ InvalidNestedHooksDispatcherOnUpdateInDEV.useEffectEvent = function useEffectEvent (
10440
10446
callback
10441
10447
) {
10442
- currentHookNameInDev = "useEvent ";
10448
+ currentHookNameInDev = "useEffectEvent ";
10443
10449
warnInvalidHookAccess();
10444
10450
updateHookTypesDev();
10445
10451
return updateEvent(callback);
@@ -10593,10 +10599,10 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
10593
10599
}
10594
10600
10595
10601
{
10596
- InvalidNestedHooksDispatcherOnRerenderInDEV.useEvent = function useEvent (
10602
+ InvalidNestedHooksDispatcherOnRerenderInDEV.useEffectEvent = function useEffectEvent (
10597
10603
callback
10598
10604
) {
10599
- currentHookNameInDev = "useEvent ";
10605
+ currentHookNameInDev = "useEffectEvent ";
10600
10606
warnInvalidHookAccess();
10601
10607
updateHookTypesDev();
10602
10608
return updateEvent(callback);
@@ -18965,7 +18971,7 @@ function commitBeforeMutationEffectsOnFiber(finishedWork) {
18965
18971
case FunctionComponent: {
18966
18972
{
18967
18973
if ((flags & Update) !== NoFlags) {
18968
- commitUseEventMount (finishedWork);
18974
+ commitUseEffectEventMount (finishedWork);
18969
18975
}
18970
18976
}
18971
18977
@@ -19244,7 +19250,7 @@ function commitHookEffectListMount(flags, finishedWork) {
19244
19250
}
19245
19251
}
19246
19252
19247
- function commitUseEventMount (finishedWork) {
19253
+ function commitUseEffectEventMount (finishedWork) {
19248
19254
var updateQueue = finishedWork.updateQueue;
19249
19255
var eventPayloads = updateQueue !== null ? updateQueue.events : null;
19250
19256
0 commit comments