react-dom 19.0.0-rc-380f5d67-20241113 → 19.0.0-rc.1
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-dom-client.development.js +394 -313
- package/cjs/react-dom-client.production.js +454 -383
- package/cjs/react-dom-profiling.development.js +394 -313
- package/cjs/react-dom-profiling.profiling.js +495 -426
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +3 -3
- package/cjs/react-dom-server.node.production.js +3 -3
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -1010,28 +1010,40 @@
|
|
1010
1010
|
var pendingLanes = root.pendingLanes;
|
1011
1011
|
if (0 === pendingLanes) return 0;
|
1012
1012
|
var nextLanes = 0,
|
1013
|
-
suspendedLanes = root.suspendedLanes
|
1014
|
-
|
1013
|
+
suspendedLanes = root.suspendedLanes,
|
1014
|
+
pingedLanes = root.pingedLanes,
|
1015
|
+
warmLanes = root.warmLanes;
|
1016
|
+
root = 0 !== root.finishedLanes;
|
1015
1017
|
var nonIdlePendingLanes = pendingLanes & 134217727;
|
1016
1018
|
0 !== nonIdlePendingLanes
|
1017
1019
|
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
|
1018
1020
|
0 !== pendingLanes
|
1019
1021
|
? (nextLanes = getHighestPriorityLanes(pendingLanes))
|
1020
|
-
: ((
|
1021
|
-
0 !==
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1022
|
+
: ((pingedLanes &= nonIdlePendingLanes),
|
1023
|
+
0 !== pingedLanes
|
1024
|
+
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1025
|
+
: root ||
|
1026
|
+
((warmLanes = nonIdlePendingLanes & ~warmLanes),
|
1027
|
+
0 !== warmLanes &&
|
1028
|
+
(nextLanes = getHighestPriorityLanes(warmLanes)))))
|
1029
|
+
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
|
1030
|
+
0 !== nonIdlePendingLanes
|
1031
|
+
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
|
1032
|
+
: 0 !== pingedLanes
|
1033
|
+
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1034
|
+
: root ||
|
1035
|
+
((warmLanes = pendingLanes & ~warmLanes),
|
1036
|
+
0 !== warmLanes &&
|
1037
|
+
(nextLanes = getHighestPriorityLanes(warmLanes))));
|
1026
1038
|
return 0 === nextLanes
|
1027
1039
|
? 0
|
1028
1040
|
: 0 !== wipLanes &&
|
1029
1041
|
wipLanes !== nextLanes &&
|
1030
1042
|
0 === (wipLanes & suspendedLanes) &&
|
1031
1043
|
((suspendedLanes = nextLanes & -nextLanes),
|
1032
|
-
(
|
1033
|
-
suspendedLanes >=
|
1034
|
-
(32 === suspendedLanes && 0 !== (
|
1044
|
+
(warmLanes = wipLanes & -wipLanes),
|
1045
|
+
suspendedLanes >= warmLanes ||
|
1046
|
+
(32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
|
1035
1047
|
? wipLanes
|
1036
1048
|
: nextLanes;
|
1037
1049
|
}
|
@@ -1116,7 +1128,9 @@
|
|
1116
1128
|
root,
|
1117
1129
|
finishedLanes,
|
1118
1130
|
remainingLanes,
|
1119
|
-
spawnedLane
|
1131
|
+
spawnedLane,
|
1132
|
+
updatedLanes,
|
1133
|
+
suspendedRetryLanes
|
1120
1134
|
) {
|
1121
1135
|
var previouslyPendingLanes = root.pendingLanes;
|
1122
1136
|
root.pendingLanes = remainingLanes;
|
@@ -1127,17 +1141,17 @@
|
|
1127
1141
|
root.entangledLanes &= remainingLanes;
|
1128
1142
|
root.errorRecoveryDisabledLanes &= remainingLanes;
|
1129
1143
|
root.shellSuspendCounter = 0;
|
1130
|
-
|
1131
|
-
|
1144
|
+
var entanglements = root.entanglements,
|
1145
|
+
expirationTimes = root.expirationTimes,
|
1132
1146
|
hiddenUpdates = root.hiddenUpdates;
|
1133
1147
|
for (
|
1134
1148
|
remainingLanes = previouslyPendingLanes & ~remainingLanes;
|
1135
1149
|
0 < remainingLanes;
|
1136
1150
|
|
1137
1151
|
) {
|
1138
|
-
var index = 31 - clz32(remainingLanes)
|
1139
|
-
|
1140
|
-
|
1152
|
+
var index = 31 - clz32(remainingLanes),
|
1153
|
+
lane = 1 << index;
|
1154
|
+
entanglements[index] = 0;
|
1141
1155
|
expirationTimes[index] = -1;
|
1142
1156
|
var hiddenUpdatesForLane = hiddenUpdates[index];
|
1143
1157
|
if (null !== hiddenUpdatesForLane)
|
@@ -1149,9 +1163,14 @@
|
|
1149
1163
|
var update = hiddenUpdatesForLane[index];
|
1150
1164
|
null !== update && (update.lane &= -536870913);
|
1151
1165
|
}
|
1152
|
-
remainingLanes &= ~
|
1166
|
+
remainingLanes &= ~lane;
|
1153
1167
|
}
|
1154
1168
|
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
|
1169
|
+
0 !== suspendedRetryLanes &&
|
1170
|
+
0 === updatedLanes &&
|
1171
|
+
0 !== root.tag &&
|
1172
|
+
(root.suspendedLanes |=
|
1173
|
+
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
|
1155
1174
|
}
|
1156
1175
|
function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
|
1157
1176
|
root.pendingLanes |= spawnedLane;
|
@@ -8664,32 +8683,32 @@
|
|
8664
8683
|
return current;
|
8665
8684
|
}
|
8666
8685
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
8667
|
-
var
|
8668
|
-
var
|
8686
|
+
var JSCompiler_object_inline_digest_2322;
|
8687
|
+
var JSCompiler_object_inline_stack_2323 = workInProgress.pendingProps;
|
8669
8688
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
8670
|
-
var
|
8689
|
+
var JSCompiler_object_inline_componentStack_2324 = !1;
|
8671
8690
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
8672
|
-
(
|
8673
|
-
(
|
8691
|
+
(JSCompiler_object_inline_digest_2322 = didSuspend) ||
|
8692
|
+
(JSCompiler_object_inline_digest_2322 =
|
8674
8693
|
null !== current && null === current.memoizedState
|
8675
8694
|
? !1
|
8676
8695
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
8677
|
-
|
8678
|
-
((
|
8696
|
+
JSCompiler_object_inline_digest_2322 &&
|
8697
|
+
((JSCompiler_object_inline_componentStack_2324 = !0),
|
8679
8698
|
(workInProgress.flags &= -129));
|
8680
|
-
|
8699
|
+
JSCompiler_object_inline_digest_2322 = 0 !== (workInProgress.flags & 32);
|
8681
8700
|
workInProgress.flags &= -33;
|
8682
8701
|
if (null === current) {
|
8683
8702
|
if (isHydrating) {
|
8684
|
-
|
8703
|
+
JSCompiler_object_inline_componentStack_2324
|
8685
8704
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
8686
8705
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
8687
8706
|
if (isHydrating) {
|
8688
|
-
var
|
8707
|
+
var JSCompiler_object_inline_message_2321 = nextHydratableInstance;
|
8689
8708
|
var JSCompiler_temp;
|
8690
|
-
if (!(JSCompiler_temp = !
|
8709
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2321)) {
|
8691
8710
|
c: {
|
8692
|
-
var instance =
|
8711
|
+
var instance = JSCompiler_object_inline_message_2321;
|
8693
8712
|
for (
|
8694
8713
|
JSCompiler_temp = rootOrSingletonContext;
|
8695
8714
|
8 !== instance.nodeType;
|
@@ -8730,19 +8749,19 @@
|
|
8730
8749
|
JSCompiler_temp &&
|
8731
8750
|
(warnNonHydratedInstance(
|
8732
8751
|
workInProgress,
|
8733
|
-
|
8752
|
+
JSCompiler_object_inline_message_2321
|
8734
8753
|
),
|
8735
8754
|
throwOnHydrationMismatch(workInProgress));
|
8736
8755
|
}
|
8737
|
-
|
8756
|
+
JSCompiler_object_inline_message_2321 = workInProgress.memoizedState;
|
8738
8757
|
if (
|
8739
|
-
null !==
|
8740
|
-
((
|
8741
|
-
|
8742
|
-
null !==
|
8758
|
+
null !== JSCompiler_object_inline_message_2321 &&
|
8759
|
+
((JSCompiler_object_inline_message_2321 =
|
8760
|
+
JSCompiler_object_inline_message_2321.dehydrated),
|
8761
|
+
null !== JSCompiler_object_inline_message_2321)
|
8743
8762
|
)
|
8744
8763
|
return (
|
8745
|
-
|
8764
|
+
JSCompiler_object_inline_message_2321.data ===
|
8746
8765
|
SUSPENSE_FALLBACK_START_DATA
|
8747
8766
|
? (workInProgress.lanes = 16)
|
8748
8767
|
: (workInProgress.lanes = 536870912),
|
@@ -8750,58 +8769,58 @@
|
|
8750
8769
|
);
|
8751
8770
|
popSuspenseHandler(workInProgress);
|
8752
8771
|
}
|
8753
|
-
|
8754
|
-
|
8755
|
-
|
8756
|
-
|
8757
|
-
if (
|
8772
|
+
JSCompiler_object_inline_message_2321 =
|
8773
|
+
JSCompiler_object_inline_stack_2323.children;
|
8774
|
+
JSCompiler_object_inline_stack_2323 =
|
8775
|
+
JSCompiler_object_inline_stack_2323.fallback;
|
8776
|
+
if (JSCompiler_object_inline_componentStack_2324)
|
8758
8777
|
return (
|
8759
8778
|
reuseSuspenseHandlerOnStack(workInProgress),
|
8760
|
-
(
|
8779
|
+
(JSCompiler_object_inline_componentStack_2324 =
|
8761
8780
|
workInProgress.mode),
|
8762
|
-
(
|
8781
|
+
(JSCompiler_object_inline_message_2321 =
|
8763
8782
|
mountWorkInProgressOffscreenFiber(
|
8764
8783
|
{
|
8765
8784
|
mode: "hidden",
|
8766
|
-
children:
|
8785
|
+
children: JSCompiler_object_inline_message_2321
|
8767
8786
|
},
|
8768
|
-
|
8787
|
+
JSCompiler_object_inline_componentStack_2324
|
8769
8788
|
)),
|
8770
|
-
(
|
8771
|
-
|
8772
|
-
|
8789
|
+
(JSCompiler_object_inline_stack_2323 = createFiberFromFragment(
|
8790
|
+
JSCompiler_object_inline_stack_2323,
|
8791
|
+
JSCompiler_object_inline_componentStack_2324,
|
8773
8792
|
renderLanes,
|
8774
8793
|
null
|
8775
8794
|
)),
|
8776
|
-
(
|
8777
|
-
(
|
8778
|
-
(
|
8779
|
-
|
8780
|
-
(workInProgress.child =
|
8781
|
-
(
|
8795
|
+
(JSCompiler_object_inline_message_2321.return = workInProgress),
|
8796
|
+
(JSCompiler_object_inline_stack_2323.return = workInProgress),
|
8797
|
+
(JSCompiler_object_inline_message_2321.sibling =
|
8798
|
+
JSCompiler_object_inline_stack_2323),
|
8799
|
+
(workInProgress.child = JSCompiler_object_inline_message_2321),
|
8800
|
+
(JSCompiler_object_inline_componentStack_2324 =
|
8782
8801
|
workInProgress.child),
|
8783
|
-
(
|
8802
|
+
(JSCompiler_object_inline_componentStack_2324.memoizedState =
|
8784
8803
|
mountSuspenseOffscreenState(renderLanes)),
|
8785
|
-
(
|
8804
|
+
(JSCompiler_object_inline_componentStack_2324.childLanes =
|
8786
8805
|
getRemainingWorkInPrimaryTree(
|
8787
8806
|
current,
|
8788
|
-
|
8807
|
+
JSCompiler_object_inline_digest_2322,
|
8789
8808
|
renderLanes
|
8790
8809
|
)),
|
8791
8810
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
8792
|
-
|
8811
|
+
JSCompiler_object_inline_stack_2323
|
8793
8812
|
);
|
8794
8813
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
8795
8814
|
return mountSuspensePrimaryChildren(
|
8796
8815
|
workInProgress,
|
8797
|
-
|
8816
|
+
JSCompiler_object_inline_message_2321
|
8798
8817
|
);
|
8799
8818
|
}
|
8800
8819
|
var prevState = current.memoizedState;
|
8801
8820
|
if (
|
8802
8821
|
null !== prevState &&
|
8803
|
-
((
|
8804
|
-
null !==
|
8822
|
+
((JSCompiler_object_inline_message_2321 = prevState.dehydrated),
|
8823
|
+
null !== JSCompiler_object_inline_message_2321)
|
8805
8824
|
) {
|
8806
8825
|
if (didSuspend)
|
8807
8826
|
workInProgress.flags & 256
|
@@ -8818,95 +8837,95 @@
|
|
8818
8837
|
(workInProgress.flags |= 128),
|
8819
8838
|
(workInProgress = null))
|
8820
8839
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
8821
|
-
(
|
8822
|
-
|
8823
|
-
(
|
8824
|
-
(
|
8840
|
+
(JSCompiler_object_inline_componentStack_2324 =
|
8841
|
+
JSCompiler_object_inline_stack_2323.fallback),
|
8842
|
+
(JSCompiler_object_inline_message_2321 = workInProgress.mode),
|
8843
|
+
(JSCompiler_object_inline_stack_2323 =
|
8825
8844
|
mountWorkInProgressOffscreenFiber(
|
8826
8845
|
{
|
8827
8846
|
mode: "visible",
|
8828
|
-
children:
|
8847
|
+
children: JSCompiler_object_inline_stack_2323.children
|
8829
8848
|
},
|
8830
|
-
|
8849
|
+
JSCompiler_object_inline_message_2321
|
8831
8850
|
)),
|
8832
|
-
(
|
8851
|
+
(JSCompiler_object_inline_componentStack_2324 =
|
8833
8852
|
createFiberFromFragment(
|
8834
|
-
|
8835
|
-
|
8853
|
+
JSCompiler_object_inline_componentStack_2324,
|
8854
|
+
JSCompiler_object_inline_message_2321,
|
8836
8855
|
renderLanes,
|
8837
8856
|
null
|
8838
8857
|
)),
|
8839
|
-
(
|
8840
|
-
(
|
8841
|
-
(
|
8858
|
+
(JSCompiler_object_inline_componentStack_2324.flags |= 2),
|
8859
|
+
(JSCompiler_object_inline_stack_2323.return = workInProgress),
|
8860
|
+
(JSCompiler_object_inline_componentStack_2324.return =
|
8842
8861
|
workInProgress),
|
8843
|
-
(
|
8844
|
-
|
8845
|
-
(workInProgress.child =
|
8862
|
+
(JSCompiler_object_inline_stack_2323.sibling =
|
8863
|
+
JSCompiler_object_inline_componentStack_2324),
|
8864
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2323),
|
8846
8865
|
reconcileChildFibers(
|
8847
8866
|
workInProgress,
|
8848
8867
|
current.child,
|
8849
8868
|
null,
|
8850
8869
|
renderLanes
|
8851
8870
|
),
|
8852
|
-
(
|
8853
|
-
(
|
8871
|
+
(JSCompiler_object_inline_stack_2323 = workInProgress.child),
|
8872
|
+
(JSCompiler_object_inline_stack_2323.memoizedState =
|
8854
8873
|
mountSuspenseOffscreenState(renderLanes)),
|
8855
|
-
(
|
8874
|
+
(JSCompiler_object_inline_stack_2323.childLanes =
|
8856
8875
|
getRemainingWorkInPrimaryTree(
|
8857
8876
|
current,
|
8858
|
-
|
8877
|
+
JSCompiler_object_inline_digest_2322,
|
8859
8878
|
renderLanes
|
8860
8879
|
)),
|
8861
8880
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
8862
8881
|
(workInProgress =
|
8863
|
-
|
8882
|
+
JSCompiler_object_inline_componentStack_2324));
|
8864
8883
|
else if (
|
8865
8884
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
8866
8885
|
isHydrating &&
|
8867
8886
|
console.error(
|
8868
8887
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
8869
8888
|
),
|
8870
|
-
|
8889
|
+
JSCompiler_object_inline_message_2321.data ===
|
8871
8890
|
SUSPENSE_FALLBACK_START_DATA)
|
8872
8891
|
) {
|
8873
|
-
|
8874
|
-
|
8875
|
-
|
8876
|
-
if (
|
8877
|
-
JSCompiler_temp =
|
8878
|
-
var message =
|
8879
|
-
instance =
|
8880
|
-
var componentStack =
|
8892
|
+
JSCompiler_object_inline_digest_2322 =
|
8893
|
+
JSCompiler_object_inline_message_2321.nextSibling &&
|
8894
|
+
JSCompiler_object_inline_message_2321.nextSibling.dataset;
|
8895
|
+
if (JSCompiler_object_inline_digest_2322) {
|
8896
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2322.dgst;
|
8897
|
+
var message = JSCompiler_object_inline_digest_2322.msg;
|
8898
|
+
instance = JSCompiler_object_inline_digest_2322.stck;
|
8899
|
+
var componentStack = JSCompiler_object_inline_digest_2322.cstck;
|
8881
8900
|
}
|
8882
|
-
|
8883
|
-
|
8884
|
-
|
8885
|
-
JSCompiler_temp =
|
8901
|
+
JSCompiler_object_inline_message_2321 = message;
|
8902
|
+
JSCompiler_object_inline_digest_2322 = JSCompiler_temp;
|
8903
|
+
JSCompiler_object_inline_stack_2323 = instance;
|
8904
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2324 =
|
8886
8905
|
componentStack;
|
8887
|
-
|
8888
|
-
|
8889
|
-
? Error(
|
8906
|
+
JSCompiler_object_inline_componentStack_2324 =
|
8907
|
+
JSCompiler_object_inline_message_2321
|
8908
|
+
? Error(JSCompiler_object_inline_message_2321)
|
8890
8909
|
: Error(
|
8891
8910
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
8892
8911
|
);
|
8893
|
-
|
8894
|
-
|
8895
|
-
|
8896
|
-
|
8897
|
-
|
8912
|
+
JSCompiler_object_inline_componentStack_2324.stack =
|
8913
|
+
JSCompiler_object_inline_stack_2323 || "";
|
8914
|
+
JSCompiler_object_inline_componentStack_2324.digest =
|
8915
|
+
JSCompiler_object_inline_digest_2322;
|
8916
|
+
JSCompiler_object_inline_digest_2322 =
|
8898
8917
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
8899
|
-
|
8900
|
-
value:
|
8918
|
+
JSCompiler_object_inline_stack_2323 = {
|
8919
|
+
value: JSCompiler_object_inline_componentStack_2324,
|
8901
8920
|
source: null,
|
8902
|
-
stack:
|
8921
|
+
stack: JSCompiler_object_inline_digest_2322
|
8903
8922
|
};
|
8904
|
-
"string" === typeof
|
8923
|
+
"string" === typeof JSCompiler_object_inline_digest_2322 &&
|
8905
8924
|
CapturedStacks.set(
|
8906
|
-
|
8907
|
-
|
8925
|
+
JSCompiler_object_inline_componentStack_2324,
|
8926
|
+
JSCompiler_object_inline_stack_2323
|
8908
8927
|
);
|
8909
|
-
queueHydrationError(
|
8928
|
+
queueHydrationError(JSCompiler_object_inline_stack_2323);
|
8910
8929
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
8911
8930
|
current,
|
8912
8931
|
workInProgress,
|
@@ -8920,25 +8939,25 @@
|
|
8920
8939
|
renderLanes,
|
8921
8940
|
!1
|
8922
8941
|
),
|
8923
|
-
(
|
8942
|
+
(JSCompiler_object_inline_digest_2322 =
|
8924
8943
|
0 !== (renderLanes & current.childLanes)),
|
8925
|
-
didReceiveUpdate ||
|
8944
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2322)
|
8926
8945
|
) {
|
8927
|
-
|
8928
|
-
if (null !==
|
8929
|
-
|
8930
|
-
if (0 !== (
|
8931
|
-
|
8946
|
+
JSCompiler_object_inline_digest_2322 = workInProgressRoot;
|
8947
|
+
if (null !== JSCompiler_object_inline_digest_2322) {
|
8948
|
+
JSCompiler_object_inline_stack_2323 = renderLanes & -renderLanes;
|
8949
|
+
if (0 !== (JSCompiler_object_inline_stack_2323 & 42))
|
8950
|
+
JSCompiler_object_inline_stack_2323 = 1;
|
8932
8951
|
else
|
8933
|
-
switch (
|
8952
|
+
switch (JSCompiler_object_inline_stack_2323) {
|
8934
8953
|
case 2:
|
8935
|
-
|
8954
|
+
JSCompiler_object_inline_stack_2323 = 1;
|
8936
8955
|
break;
|
8937
8956
|
case 8:
|
8938
|
-
|
8957
|
+
JSCompiler_object_inline_stack_2323 = 4;
|
8939
8958
|
break;
|
8940
8959
|
case 32:
|
8941
|
-
|
8960
|
+
JSCompiler_object_inline_stack_2323 = 16;
|
8942
8961
|
break;
|
8943
8962
|
case 128:
|
8944
8963
|
case 256:
|
@@ -8959,40 +8978,40 @@
|
|
8959
8978
|
case 8388608:
|
8960
8979
|
case 16777216:
|
8961
8980
|
case 33554432:
|
8962
|
-
|
8981
|
+
JSCompiler_object_inline_stack_2323 = 64;
|
8963
8982
|
break;
|
8964
8983
|
case 268435456:
|
8965
|
-
|
8984
|
+
JSCompiler_object_inline_stack_2323 = 134217728;
|
8966
8985
|
break;
|
8967
8986
|
default:
|
8968
|
-
|
8987
|
+
JSCompiler_object_inline_stack_2323 = 0;
|
8969
8988
|
}
|
8970
|
-
|
8989
|
+
JSCompiler_object_inline_stack_2323 =
|
8971
8990
|
0 !==
|
8972
|
-
(
|
8973
|
-
(
|
8991
|
+
(JSCompiler_object_inline_stack_2323 &
|
8992
|
+
(JSCompiler_object_inline_digest_2322.suspendedLanes |
|
8974
8993
|
renderLanes))
|
8975
8994
|
? 0
|
8976
|
-
:
|
8995
|
+
: JSCompiler_object_inline_stack_2323;
|
8977
8996
|
if (
|
8978
|
-
0 !==
|
8979
|
-
|
8997
|
+
0 !== JSCompiler_object_inline_stack_2323 &&
|
8998
|
+
JSCompiler_object_inline_stack_2323 !== prevState.retryLane
|
8980
8999
|
)
|
8981
9000
|
throw (
|
8982
|
-
((prevState.retryLane =
|
9001
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2323),
|
8983
9002
|
enqueueConcurrentRenderForLane(
|
8984
9003
|
current,
|
8985
|
-
|
9004
|
+
JSCompiler_object_inline_stack_2323
|
8986
9005
|
),
|
8987
9006
|
scheduleUpdateOnFiber(
|
8988
|
-
|
9007
|
+
JSCompiler_object_inline_digest_2322,
|
8989
9008
|
current,
|
8990
|
-
|
9009
|
+
JSCompiler_object_inline_stack_2323
|
8991
9010
|
),
|
8992
9011
|
SelectiveHydrationException)
|
8993
9012
|
);
|
8994
9013
|
}
|
8995
|
-
|
9014
|
+
JSCompiler_object_inline_message_2321.data ===
|
8996
9015
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
8997
9016
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
8998
9017
|
current,
|
@@ -9000,7 +9019,7 @@
|
|
9000
9019
|
renderLanes
|
9001
9020
|
);
|
9002
9021
|
} else
|
9003
|
-
|
9022
|
+
JSCompiler_object_inline_message_2321.data ===
|
9004
9023
|
SUSPENSE_PENDING_START_DATA
|
9005
9024
|
? ((workInProgress.flags |= 128),
|
9006
9025
|
(workInProgress.child = current.child),
|
@@ -9008,12 +9027,12 @@
|
|
9008
9027
|
null,
|
9009
9028
|
current
|
9010
9029
|
)),
|
9011
|
-
(
|
9030
|
+
(JSCompiler_object_inline_message_2321._reactRetry =
|
9012
9031
|
workInProgress),
|
9013
9032
|
(workInProgress = null))
|
9014
9033
|
: ((current = prevState.treeContext),
|
9015
9034
|
(nextHydratableInstance = getNextHydratable(
|
9016
|
-
|
9035
|
+
JSCompiler_object_inline_message_2321.nextSibling
|
9017
9036
|
)),
|
9018
9037
|
(hydrationParentFiber = workInProgress),
|
9019
9038
|
(isHydrating = !0),
|
@@ -9031,57 +9050,57 @@
|
|
9031
9050
|
(treeContextProvider = workInProgress)),
|
9032
9051
|
(workInProgress = mountSuspensePrimaryChildren(
|
9033
9052
|
workInProgress,
|
9034
|
-
|
9053
|
+
JSCompiler_object_inline_stack_2323.children
|
9035
9054
|
)),
|
9036
9055
|
(workInProgress.flags |= 4096));
|
9037
9056
|
return workInProgress;
|
9038
9057
|
}
|
9039
|
-
if (
|
9058
|
+
if (JSCompiler_object_inline_componentStack_2324)
|
9040
9059
|
return (
|
9041
9060
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9042
|
-
(
|
9043
|
-
|
9044
|
-
(
|
9061
|
+
(JSCompiler_object_inline_componentStack_2324 =
|
9062
|
+
JSCompiler_object_inline_stack_2323.fallback),
|
9063
|
+
(JSCompiler_object_inline_message_2321 = workInProgress.mode),
|
9045
9064
|
(JSCompiler_temp = current.child),
|
9046
9065
|
(instance = JSCompiler_temp.sibling),
|
9047
|
-
(
|
9066
|
+
(JSCompiler_object_inline_stack_2323 = createWorkInProgress(
|
9048
9067
|
JSCompiler_temp,
|
9049
9068
|
{
|
9050
9069
|
mode: "hidden",
|
9051
|
-
children:
|
9070
|
+
children: JSCompiler_object_inline_stack_2323.children
|
9052
9071
|
}
|
9053
9072
|
)),
|
9054
|
-
(
|
9073
|
+
(JSCompiler_object_inline_stack_2323.subtreeFlags =
|
9055
9074
|
JSCompiler_temp.subtreeFlags & 31457280),
|
9056
9075
|
null !== instance
|
9057
|
-
? (
|
9076
|
+
? (JSCompiler_object_inline_componentStack_2324 =
|
9058
9077
|
createWorkInProgress(
|
9059
9078
|
instance,
|
9060
|
-
|
9079
|
+
JSCompiler_object_inline_componentStack_2324
|
9061
9080
|
))
|
9062
|
-
: ((
|
9081
|
+
: ((JSCompiler_object_inline_componentStack_2324 =
|
9063
9082
|
createFiberFromFragment(
|
9064
|
-
|
9065
|
-
|
9083
|
+
JSCompiler_object_inline_componentStack_2324,
|
9084
|
+
JSCompiler_object_inline_message_2321,
|
9066
9085
|
renderLanes,
|
9067
9086
|
null
|
9068
9087
|
)),
|
9069
|
-
(
|
9070
|
-
(
|
9088
|
+
(JSCompiler_object_inline_componentStack_2324.flags |= 2)),
|
9089
|
+
(JSCompiler_object_inline_componentStack_2324.return =
|
9071
9090
|
workInProgress),
|
9072
|
-
(
|
9073
|
-
(
|
9074
|
-
|
9075
|
-
(workInProgress.child =
|
9076
|
-
(
|
9077
|
-
|
9078
|
-
(
|
9079
|
-
(
|
9080
|
-
null ===
|
9081
|
-
? (
|
9091
|
+
(JSCompiler_object_inline_stack_2323.return = workInProgress),
|
9092
|
+
(JSCompiler_object_inline_stack_2323.sibling =
|
9093
|
+
JSCompiler_object_inline_componentStack_2324),
|
9094
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2323),
|
9095
|
+
(JSCompiler_object_inline_stack_2323 =
|
9096
|
+
JSCompiler_object_inline_componentStack_2324),
|
9097
|
+
(JSCompiler_object_inline_componentStack_2324 = workInProgress.child),
|
9098
|
+
(JSCompiler_object_inline_message_2321 = current.child.memoizedState),
|
9099
|
+
null === JSCompiler_object_inline_message_2321
|
9100
|
+
? (JSCompiler_object_inline_message_2321 =
|
9082
9101
|
mountSuspenseOffscreenState(renderLanes))
|
9083
9102
|
: ((JSCompiler_temp =
|
9084
|
-
|
9103
|
+
JSCompiler_object_inline_message_2321.cachePool),
|
9085
9104
|
null !== JSCompiler_temp
|
9086
9105
|
? ((instance = CacheContext._currentValue),
|
9087
9106
|
(JSCompiler_temp =
|
@@ -9089,37 +9108,37 @@
|
|
9089
9108
|
? { parent: instance, pool: instance }
|
9090
9109
|
: JSCompiler_temp))
|
9091
9110
|
: (JSCompiler_temp = getSuspendedCache()),
|
9092
|
-
(
|
9111
|
+
(JSCompiler_object_inline_message_2321 = {
|
9093
9112
|
baseLanes:
|
9094
|
-
|
9113
|
+
JSCompiler_object_inline_message_2321.baseLanes | renderLanes,
|
9095
9114
|
cachePool: JSCompiler_temp
|
9096
9115
|
})),
|
9097
|
-
(
|
9098
|
-
|
9099
|
-
(
|
9116
|
+
(JSCompiler_object_inline_componentStack_2324.memoizedState =
|
9117
|
+
JSCompiler_object_inline_message_2321),
|
9118
|
+
(JSCompiler_object_inline_componentStack_2324.childLanes =
|
9100
9119
|
getRemainingWorkInPrimaryTree(
|
9101
9120
|
current,
|
9102
|
-
|
9121
|
+
JSCompiler_object_inline_digest_2322,
|
9103
9122
|
renderLanes
|
9104
9123
|
)),
|
9105
9124
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9106
|
-
|
9125
|
+
JSCompiler_object_inline_stack_2323
|
9107
9126
|
);
|
9108
9127
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9109
9128
|
renderLanes = current.child;
|
9110
9129
|
current = renderLanes.sibling;
|
9111
9130
|
renderLanes = createWorkInProgress(renderLanes, {
|
9112
9131
|
mode: "visible",
|
9113
|
-
children:
|
9132
|
+
children: JSCompiler_object_inline_stack_2323.children
|
9114
9133
|
});
|
9115
9134
|
renderLanes.return = workInProgress;
|
9116
9135
|
renderLanes.sibling = null;
|
9117
9136
|
null !== current &&
|
9118
|
-
((
|
9119
|
-
null ===
|
9137
|
+
((JSCompiler_object_inline_digest_2322 = workInProgress.deletions),
|
9138
|
+
null === JSCompiler_object_inline_digest_2322
|
9120
9139
|
? ((workInProgress.deletions = [current]),
|
9121
9140
|
(workInProgress.flags |= 16))
|
9122
|
-
:
|
9141
|
+
: JSCompiler_object_inline_digest_2322.push(current));
|
9123
9142
|
workInProgress.child = renderLanes;
|
9124
9143
|
workInProgress.memoizedState = null;
|
9125
9144
|
return renderLanes;
|
@@ -13438,20 +13457,34 @@
|
|
13438
13457
|
(resource.state.loading & Inserted) !== NotLoaded
|
13439
13458
|
)
|
13440
13459
|
workInProgress.flags &= -16777217;
|
13441
|
-
else if (
|
13442
|
-
|
13443
|
-
|
13460
|
+
else if (
|
13461
|
+
((workInProgress.flags |= 16777216), !preloadResource(resource))
|
13462
|
+
) {
|
13463
|
+
resource = suspenseHandlerStackCursor.current;
|
13464
|
+
if (
|
13465
|
+
null !== resource &&
|
13466
|
+
((workInProgressRootRenderLanes & 4194176) ===
|
13467
|
+
workInProgressRootRenderLanes
|
13468
|
+
? null !== shellBoundary
|
13469
|
+
: ((workInProgressRootRenderLanes & 62914560) !==
|
13470
|
+
workInProgressRootRenderLanes &&
|
13471
|
+
0 === (workInProgressRootRenderLanes & 536870912)) ||
|
13472
|
+
resource !== shellBoundary)
|
13473
|
+
)
|
13444
13474
|
throw (
|
13445
13475
|
((suspendedThenable = noopSuspenseyCommitThenable),
|
13446
13476
|
SuspenseyCommitException)
|
13447
13477
|
);
|
13478
|
+
workInProgress.flags |= 8192;
|
13479
|
+
}
|
13448
13480
|
}
|
13449
13481
|
function scheduleRetryEffect(workInProgress, retryQueue) {
|
13450
13482
|
null !== retryQueue && (workInProgress.flags |= 4);
|
13451
13483
|
workInProgress.flags & 16384 &&
|
13452
13484
|
((retryQueue =
|
13453
13485
|
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
|
13454
|
-
(workInProgress.lanes |= retryQueue)
|
13486
|
+
(workInProgress.lanes |= retryQueue),
|
13487
|
+
(workInProgressSuspendedRetryLanes |= retryQueue));
|
13455
13488
|
}
|
13456
13489
|
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
13457
13490
|
if (!isHydrating)
|
@@ -14248,7 +14281,8 @@
|
|
14248
14281
|
markRootSuspended(
|
14249
14282
|
root,
|
14250
14283
|
workInProgressRootRenderLanes,
|
14251
|
-
workInProgressDeferredLane
|
14284
|
+
workInProgressDeferredLane,
|
14285
|
+
!1
|
14252
14286
|
);
|
14253
14287
|
markRootUpdated$1(root, lane);
|
14254
14288
|
if (
|
@@ -14290,25 +14324,36 @@
|
|
14290
14324
|
markRootSuspended(
|
14291
14325
|
root,
|
14292
14326
|
workInProgressRootRenderLanes,
|
14293
|
-
workInProgressDeferredLane
|
14327
|
+
workInProgressDeferredLane,
|
14328
|
+
!1
|
14294
14329
|
)),
|
14295
14330
|
ensureRootIsScheduled(root);
|
14296
14331
|
}
|
14297
14332
|
function performWorkOnRoot(root, lanes, forceSync) {
|
14298
14333
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
|
14299
14334
|
throw Error("Should not already be working.");
|
14300
|
-
var
|
14335
|
+
var shouldTimeSlice =
|
14301
14336
|
(!forceSync &&
|
14302
14337
|
0 === (lanes & 60) &&
|
14303
14338
|
0 === (lanes & root.expiredLanes)) ||
|
14304
|
-
|
14339
|
+
checkIfRootIsPrerendering(root, lanes),
|
14340
|
+
exitStatus = shouldTimeSlice
|
14305
14341
|
? renderRootConcurrent(root, lanes)
|
14306
14342
|
: renderRootSync(root, lanes, !0),
|
14307
|
-
renderWasConcurrent =
|
14343
|
+
renderWasConcurrent = shouldTimeSlice;
|
14308
14344
|
do {
|
14309
|
-
if (exitStatus === RootInProgress)
|
14310
|
-
|
14311
|
-
|
14345
|
+
if (exitStatus === RootInProgress) {
|
14346
|
+
workInProgressRootIsPrerendering &&
|
14347
|
+
!shouldTimeSlice &&
|
14348
|
+
markRootSuspended(root, lanes, 0, !1);
|
14349
|
+
break;
|
14350
|
+
} else if (exitStatus === RootDidNotComplete)
|
14351
|
+
markRootSuspended(
|
14352
|
+
root,
|
14353
|
+
lanes,
|
14354
|
+
0,
|
14355
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14356
|
+
);
|
14312
14357
|
else {
|
14313
14358
|
forceSync = root.current.alternate;
|
14314
14359
|
if (
|
@@ -14373,11 +14418,11 @@
|
|
14373
14418
|
}
|
14374
14419
|
if (exitStatus === RootFatalErrored) {
|
14375
14420
|
prepareFreshStack(root, 0);
|
14376
|
-
markRootSuspended(root, lanes, 0);
|
14421
|
+
markRootSuspended(root, lanes, 0, !0);
|
14377
14422
|
break;
|
14378
14423
|
}
|
14379
14424
|
a: {
|
14380
|
-
|
14425
|
+
shouldTimeSlice = root;
|
14381
14426
|
switch (exitStatus) {
|
14382
14427
|
case RootInProgress:
|
14383
14428
|
case RootFatalErrored:
|
@@ -14385,9 +14430,10 @@
|
|
14385
14430
|
case RootSuspendedWithDelay:
|
14386
14431
|
if ((lanes & 4194176) === lanes) {
|
14387
14432
|
markRootSuspended(
|
14388
|
-
|
14433
|
+
shouldTimeSlice,
|
14389
14434
|
lanes,
|
14390
|
-
workInProgressDeferredLane
|
14435
|
+
workInProgressDeferredLane,
|
14436
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14391
14437
|
);
|
14392
14438
|
break a;
|
14393
14439
|
}
|
@@ -14401,11 +14447,11 @@
|
|
14401
14447
|
default:
|
14402
14448
|
throw Error("Unknown root exit status.");
|
14403
14449
|
}
|
14404
|
-
|
14405
|
-
|
14450
|
+
shouldTimeSlice.finishedWork = forceSync;
|
14451
|
+
shouldTimeSlice.finishedLanes = lanes;
|
14406
14452
|
if (null !== ReactSharedInternals.actQueue)
|
14407
14453
|
commitRoot(
|
14408
|
-
|
14454
|
+
shouldTimeSlice,
|
14409
14455
|
workInProgressRootRecoverableErrors,
|
14410
14456
|
workInProgressTransitions,
|
14411
14457
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
@@ -14426,15 +14472,16 @@
|
|
14426
14472
|
10 < exitStatus)
|
14427
14473
|
) {
|
14428
14474
|
markRootSuspended(
|
14429
|
-
|
14475
|
+
shouldTimeSlice,
|
14430
14476
|
lanes,
|
14431
|
-
workInProgressDeferredLane
|
14477
|
+
workInProgressDeferredLane,
|
14478
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14432
14479
|
);
|
14433
|
-
if (0 !== getNextLanes(
|
14434
|
-
|
14480
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
14481
|
+
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
14435
14482
|
commitRootWhenReady.bind(
|
14436
14483
|
null,
|
14437
|
-
|
14484
|
+
shouldTimeSlice,
|
14438
14485
|
forceSync,
|
14439
14486
|
workInProgressRootRecoverableErrors,
|
14440
14487
|
workInProgressTransitions,
|
@@ -14453,7 +14500,7 @@
|
|
14453
14500
|
break a;
|
14454
14501
|
}
|
14455
14502
|
commitRootWhenReady(
|
14456
|
-
|
14503
|
+
shouldTimeSlice,
|
14457
14504
|
forceSync,
|
14458
14505
|
workInProgressRootRecoverableErrors,
|
14459
14506
|
workInProgressTransitions,
|
@@ -14497,11 +14544,8 @@
|
|
14497
14544
|
completedRenderStartTime,
|
14498
14545
|
completedRenderEndTime
|
14499
14546
|
) {
|
14500
|
-
|
14501
|
-
if (
|
14502
|
-
didSkipSuspendedSiblings & 8192 ||
|
14503
|
-
16785408 === (didSkipSuspendedSiblings & 16785408)
|
14504
|
-
)
|
14547
|
+
var subtreeFlags = finishedWork.subtreeFlags;
|
14548
|
+
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
|
14505
14549
|
if (
|
14506
14550
|
((suspendedState = {
|
14507
14551
|
stylesheets: null,
|
@@ -14527,7 +14571,12 @@
|
|
14527
14571
|
completedRenderEndTime
|
14528
14572
|
)
|
14529
14573
|
);
|
14530
|
-
markRootSuspended(
|
14574
|
+
markRootSuspended(
|
14575
|
+
root,
|
14576
|
+
lanes,
|
14577
|
+
spawnedLane,
|
14578
|
+
!didSkipSuspendedSiblings
|
14579
|
+
);
|
14531
14580
|
return;
|
14532
14581
|
}
|
14533
14582
|
commitRoot(
|
@@ -14577,19 +14626,22 @@
|
|
14577
14626
|
}
|
14578
14627
|
return !0;
|
14579
14628
|
}
|
14580
|
-
function markRootSuspended(
|
14629
|
+
function markRootSuspended(
|
14630
|
+
root,
|
14631
|
+
suspendedLanes,
|
14632
|
+
spawnedLane,
|
14633
|
+
didAttemptEntireTree
|
14634
|
+
) {
|
14581
14635
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
14582
14636
|
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
14583
14637
|
root.suspendedLanes |= suspendedLanes;
|
14584
14638
|
root.pingedLanes &= ~suspendedLanes;
|
14585
|
-
|
14586
|
-
|
14587
|
-
|
14588
|
-
|
14589
|
-
) {
|
14639
|
+
didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
|
14640
|
+
didAttemptEntireTree = root.expirationTimes;
|
14641
|
+
for (var lanes = suspendedLanes; 0 < lanes; ) {
|
14590
14642
|
var index = 31 - clz32(lanes),
|
14591
14643
|
lane = 1 << index;
|
14592
|
-
|
14644
|
+
didAttemptEntireTree[index] = -1;
|
14593
14645
|
lanes &= ~lane;
|
14594
14646
|
}
|
14595
14647
|
0 !== spawnedLane &&
|
@@ -14633,7 +14685,7 @@
|
|
14633
14685
|
workInProgressSuspendedReason = NotSuspended;
|
14634
14686
|
workInProgressThrownValue = null;
|
14635
14687
|
workInProgressRootDidSkipSuspendedSiblings = !1;
|
14636
|
-
checkIfRootIsPrerendering(root, lanes);
|
14688
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
|
14637
14689
|
workInProgressRootDidAttachPingListener = !1;
|
14638
14690
|
workInProgressRootExitStatus = RootInProgress;
|
14639
14691
|
workInProgressSuspendedRetryLanes =
|
@@ -14671,12 +14723,7 @@
|
|
14671
14723
|
current = null;
|
14672
14724
|
thrownValue === SuspenseException
|
14673
14725
|
? ((thrownValue = getSuspendedThenable()),
|
14674
|
-
(workInProgressSuspendedReason =
|
14675
|
-
shouldRemainOnPreviousScreen() &&
|
14676
|
-
0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14677
|
-
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
|
14678
|
-
? SuspendedOnData
|
14679
|
-
: SuspendedOnImmediate))
|
14726
|
+
(workInProgressSuspendedReason = SuspendedOnImmediate))
|
14680
14727
|
: thrownValue === SuspenseyCommitException
|
14681
14728
|
? ((thrownValue = getSuspendedThenable()),
|
14682
14729
|
(workInProgressSuspendedReason = SuspendedOnInstance))
|
@@ -14727,21 +14774,6 @@
|
|
14727
14774
|
);
|
14728
14775
|
}
|
14729
14776
|
}
|
14730
|
-
function shouldRemainOnPreviousScreen() {
|
14731
|
-
var handler = suspenseHandlerStackCursor.current;
|
14732
|
-
return null === handler
|
14733
|
-
? !0
|
14734
|
-
: (workInProgressRootRenderLanes & 4194176) ===
|
14735
|
-
workInProgressRootRenderLanes
|
14736
|
-
? null === shellBoundary
|
14737
|
-
? !0
|
14738
|
-
: !1
|
14739
|
-
: (workInProgressRootRenderLanes & 62914560) ===
|
14740
|
-
workInProgressRootRenderLanes ||
|
14741
|
-
0 !== (workInProgressRootRenderLanes & 536870912)
|
14742
|
-
? handler === shellBoundary
|
14743
|
-
: !1;
|
14744
|
-
}
|
14745
14777
|
function pushDispatcher() {
|
14746
14778
|
var prevDispatcher = ReactSharedInternals.H;
|
14747
14779
|
ReactSharedInternals.H = ContextOnlyDispatcher;
|
@@ -14754,16 +14786,22 @@
|
|
14754
14786
|
}
|
14755
14787
|
function renderDidSuspendDelayIfPossible() {
|
14756
14788
|
workInProgressRootExitStatus = RootSuspendedWithDelay;
|
14789
|
+
workInProgressRootDidSkipSuspendedSiblings ||
|
14790
|
+
((workInProgressRootRenderLanes & 4194176) !==
|
14791
|
+
workInProgressRootRenderLanes &&
|
14792
|
+
null !== suspenseHandlerStackCursor.current) ||
|
14793
|
+
(workInProgressRootIsPrerendering = !0);
|
14757
14794
|
(0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14758
14795
|
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
|
14759
14796
|
null === workInProgressRoot ||
|
14760
14797
|
markRootSuspended(
|
14761
14798
|
workInProgressRoot,
|
14762
14799
|
workInProgressRootRenderLanes,
|
14763
|
-
workInProgressDeferredLane
|
14800
|
+
workInProgressDeferredLane,
|
14801
|
+
!1
|
14764
14802
|
);
|
14765
14803
|
}
|
14766
|
-
function renderRootSync(root, lanes) {
|
14804
|
+
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
|
14767
14805
|
var prevExecutionContext = executionContext;
|
14768
14806
|
executionContext |= RenderContext;
|
14769
14807
|
var prevDispatcher = pushDispatcher(),
|
@@ -14806,6 +14844,13 @@
|
|
14806
14844
|
workInProgressSuspendedReason = NotSuspended;
|
14807
14845
|
workInProgressThrownValue = null;
|
14808
14846
|
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
|
14847
|
+
if (
|
14848
|
+
shouldYieldForPrerendering &&
|
14849
|
+
workInProgressRootIsPrerendering
|
14850
|
+
) {
|
14851
|
+
memoizedUpdaters = RootInProgress;
|
14852
|
+
break a;
|
14853
|
+
}
|
14809
14854
|
break;
|
14810
14855
|
default:
|
14811
14856
|
(reason = workInProgressSuspendedReason),
|
@@ -14855,7 +14900,11 @@
|
|
14855
14900
|
workInProgressTransitions = null;
|
14856
14901
|
workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
|
14857
14902
|
prepareFreshStack(root, lanes);
|
14858
|
-
} else
|
14903
|
+
} else
|
14904
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
|
14905
|
+
root,
|
14906
|
+
lanes
|
14907
|
+
);
|
14859
14908
|
markRenderStarted(lanes);
|
14860
14909
|
a: do
|
14861
14910
|
try {
|
@@ -15067,7 +15116,12 @@
|
|
15067
15116
|
stopProfilerTimerIfRunningAndRecordDuration(unitOfWork);
|
15068
15117
|
return current;
|
15069
15118
|
}
|
15070
|
-
function throwAndUnwindWorkLoop(
|
15119
|
+
function throwAndUnwindWorkLoop(
|
15120
|
+
root,
|
15121
|
+
unitOfWork,
|
15122
|
+
thrownValue,
|
15123
|
+
suspendedReason
|
15124
|
+
) {
|
15071
15125
|
resetContextDependencies();
|
15072
15126
|
resetHooksOnUnwind(unitOfWork);
|
15073
15127
|
thenableState$1 = null;
|
@@ -15101,9 +15155,25 @@
|
|
15101
15155
|
workInProgress = null;
|
15102
15156
|
return;
|
15103
15157
|
}
|
15104
|
-
unitOfWork.flags & 32768
|
15105
|
-
|
15106
|
-
|
15158
|
+
if (unitOfWork.flags & 32768) {
|
15159
|
+
if (isHydrating || suspendedReason === SuspendedOnError) root = !0;
|
15160
|
+
else if (
|
15161
|
+
workInProgressRootIsPrerendering ||
|
15162
|
+
0 !== (workInProgressRootRenderLanes & 536870912)
|
15163
|
+
)
|
15164
|
+
root = !1;
|
15165
|
+
else if (
|
15166
|
+
((workInProgressRootDidSkipSuspendedSiblings = root = !0),
|
15167
|
+
suspendedReason === SuspendedOnData ||
|
15168
|
+
suspendedReason === SuspendedOnImmediate ||
|
15169
|
+
suspendedReason === SuspendedOnDeprecatedThrowPromise)
|
15170
|
+
)
|
15171
|
+
(suspendedReason = suspenseHandlerStackCursor.current),
|
15172
|
+
null !== suspendedReason &&
|
15173
|
+
13 === suspendedReason.tag &&
|
15174
|
+
(suspendedReason.flags |= 16384);
|
15175
|
+
unwindUnitOfWork(unitOfWork, root);
|
15176
|
+
} else completeUnitOfWork(unitOfWork);
|
15107
15177
|
}
|
15108
15178
|
function completeUnitOfWork(unitOfWork) {
|
15109
15179
|
var completedWork = unitOfWork;
|
@@ -15214,7 +15284,9 @@
|
|
15214
15284
|
transitions,
|
15215
15285
|
didIncludeRenderPhaseUpdate,
|
15216
15286
|
renderPriorityLevel,
|
15217
|
-
spawnedLane
|
15287
|
+
spawnedLane,
|
15288
|
+
updatedLanes,
|
15289
|
+
suspendedRetryLanes
|
15218
15290
|
) {
|
15219
15291
|
do flushPassiveEffects();
|
15220
15292
|
while (null !== rootWithPendingPassiveEffects);
|
@@ -15247,7 +15319,9 @@
|
|
15247
15319
|
root,
|
15248
15320
|
didIncludeRenderPhaseUpdate,
|
15249
15321
|
remainingLanes,
|
15250
|
-
spawnedLane
|
15322
|
+
spawnedLane,
|
15323
|
+
updatedLanes,
|
15324
|
+
suspendedRetryLanes
|
15251
15325
|
);
|
15252
15326
|
root === workInProgressRoot &&
|
15253
15327
|
((workInProgress = workInProgressRoot = null),
|
@@ -15264,35 +15338,39 @@
|
|
15264
15338
|
}));
|
15265
15339
|
commitStartTime = now();
|
15266
15340
|
transitions = 0 !== (finishedWork.flags & 15990);
|
15267
|
-
|
15268
|
-
transitions = ReactSharedInternals.T
|
15269
|
-
|
15270
|
-
|
15271
|
-
|
15272
|
-
|
15273
|
-
|
15274
|
-
|
15275
|
-
|
15276
|
-
|
15277
|
-
|
15278
|
-
selectionInformation = eventsEnabled = null;
|
15279
|
-
root.current = finishedWork;
|
15280
|
-
null !== injectedProfilingHooks &&
|
15281
|
-
"function" ===
|
15282
|
-
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15283
|
-
injectedProfilingHooks.markLayoutEffectsStarted(
|
15341
|
+
0 !== (finishedWork.subtreeFlags & 15990) || transitions
|
15342
|
+
? ((transitions = ReactSharedInternals.T),
|
15343
|
+
(ReactSharedInternals.T = null),
|
15344
|
+
(spawnedLane = ReactDOMSharedInternals.p),
|
15345
|
+
(ReactDOMSharedInternals.p = DiscreteEventPriority),
|
15346
|
+
(updatedLanes = executionContext),
|
15347
|
+
(executionContext |= CommitContext),
|
15348
|
+
commitBeforeMutationEffects(root, finishedWork),
|
15349
|
+
commitMutationEffects(
|
15350
|
+
root,
|
15351
|
+
finishedWork,
|
15284
15352
|
didIncludeRenderPhaseUpdate
|
15285
|
-
)
|
15286
|
-
|
15287
|
-
|
15288
|
-
|
15289
|
-
|
15290
|
-
injectedProfilingHooks
|
15291
|
-
|
15292
|
-
|
15293
|
-
|
15294
|
-
|
15295
|
-
|
15353
|
+
),
|
15354
|
+
restoreSelection(selectionInformation, root.containerInfo),
|
15355
|
+
(_enabled = !!eventsEnabled),
|
15356
|
+
(selectionInformation = eventsEnabled = null),
|
15357
|
+
(root.current = finishedWork),
|
15358
|
+
null !== injectedProfilingHooks &&
|
15359
|
+
"function" ===
|
15360
|
+
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15361
|
+
injectedProfilingHooks.markLayoutEffectsStarted(
|
15362
|
+
didIncludeRenderPhaseUpdate
|
15363
|
+
),
|
15364
|
+
commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
|
15365
|
+
null !== injectedProfilingHooks &&
|
15366
|
+
"function" ===
|
15367
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15368
|
+
injectedProfilingHooks.markLayoutEffectsStopped(),
|
15369
|
+
requestPaint(),
|
15370
|
+
(executionContext = updatedLanes),
|
15371
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
15372
|
+
(ReactSharedInternals.T = transitions))
|
15373
|
+
: (root.current = finishedWork);
|
15296
15374
|
(transitions = rootDoesHavePassiveEffects)
|
15297
15375
|
? ((rootDoesHavePassiveEffects = !1),
|
15298
15376
|
(rootWithPendingPassiveEffects = root),
|
@@ -15810,43 +15888,45 @@
|
|
15810
15888
|
(root.callbackNode = null),
|
15811
15889
|
(root.callbackPriority = 0)
|
15812
15890
|
);
|
15813
|
-
if (0 !== (suspendedLanes & 3))
|
15814
|
-
return (
|
15815
|
-
null !== pingedLanes && cancelCallback(pingedLanes),
|
15816
|
-
(root.callbackPriority = 2),
|
15817
|
-
(root.callbackNode = null),
|
15818
|
-
2
|
15819
|
-
);
|
15820
|
-
currentTime = suspendedLanes & -suspendedLanes;
|
15821
15891
|
if (
|
15822
|
-
|
15823
|
-
(
|
15824
|
-
|
15825
|
-
|
15826
|
-
|
15827
|
-
|
15828
|
-
|
15829
|
-
|
15830
|
-
|
15831
|
-
|
15832
|
-
|
15833
|
-
|
15834
|
-
|
15835
|
-
|
15836
|
-
|
15837
|
-
|
15838
|
-
|
15839
|
-
|
15840
|
-
|
15841
|
-
|
15842
|
-
|
15843
|
-
|
15844
|
-
|
15845
|
-
|
15846
|
-
|
15847
|
-
|
15848
|
-
|
15849
|
-
|
15892
|
+
0 === (suspendedLanes & 3) ||
|
15893
|
+
checkIfRootIsPrerendering(root, suspendedLanes)
|
15894
|
+
) {
|
15895
|
+
currentTime = suspendedLanes & -suspendedLanes;
|
15896
|
+
if (
|
15897
|
+
currentTime !== root.callbackPriority ||
|
15898
|
+
(null !== ReactSharedInternals.actQueue &&
|
15899
|
+
pingedLanes !== fakeActCallbackNode)
|
15900
|
+
)
|
15901
|
+
cancelCallback(pingedLanes);
|
15902
|
+
else return currentTime;
|
15903
|
+
switch (lanesToEventPriority(suspendedLanes)) {
|
15904
|
+
case DiscreteEventPriority:
|
15905
|
+
case ContinuousEventPriority:
|
15906
|
+
suspendedLanes = UserBlockingPriority;
|
15907
|
+
break;
|
15908
|
+
case DefaultEventPriority:
|
15909
|
+
suspendedLanes = NormalPriority$1;
|
15910
|
+
break;
|
15911
|
+
case IdleEventPriority:
|
15912
|
+
suspendedLanes = IdlePriority;
|
15913
|
+
break;
|
15914
|
+
default:
|
15915
|
+
suspendedLanes = NormalPriority$1;
|
15916
|
+
}
|
15917
|
+
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
|
15918
|
+
null !== ReactSharedInternals.actQueue
|
15919
|
+
? (ReactSharedInternals.actQueue.push(pingedLanes),
|
15920
|
+
(suspendedLanes = fakeActCallbackNode))
|
15921
|
+
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
|
15922
|
+
root.callbackPriority = currentTime;
|
15923
|
+
root.callbackNode = suspendedLanes;
|
15924
|
+
return currentTime;
|
15925
|
+
}
|
15926
|
+
null !== pingedLanes && cancelCallback(pingedLanes);
|
15927
|
+
root.callbackPriority = 2;
|
15928
|
+
root.callbackNode = null;
|
15929
|
+
return 2;
|
15850
15930
|
}
|
15851
15931
|
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
|
15852
15932
|
nestedUpdateScheduled = currentUpdateIsNested = !1;
|
@@ -23917,6 +23997,7 @@
|
|
23917
23997
|
workInProgressSuspendedReason = NotSuspended,
|
23918
23998
|
workInProgressThrownValue = null,
|
23919
23999
|
workInProgressRootDidSkipSuspendedSiblings = !1,
|
24000
|
+
workInProgressRootIsPrerendering = !1,
|
23920
24001
|
workInProgressRootDidAttachPingListener = !1,
|
23921
24002
|
entangledRenderLanes = 0,
|
23922
24003
|
workInProgressRootExitStatus = RootInProgress,
|
@@ -24495,11 +24576,11 @@
|
|
24495
24576
|
};
|
24496
24577
|
(function () {
|
24497
24578
|
var isomorphicReactPackageVersion = React.version;
|
24498
|
-
if ("19.0.0
|
24579
|
+
if ("19.0.0" !== isomorphicReactPackageVersion)
|
24499
24580
|
throw Error(
|
24500
24581
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24501
24582
|
(isomorphicReactPackageVersion +
|
24502
|
-
"\n - react-dom: 19.0.0
|
24583
|
+
"\n - react-dom: 19.0.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
24503
24584
|
);
|
24504
24585
|
})();
|
24505
24586
|
("function" === typeof Map &&
|
@@ -24536,11 +24617,11 @@
|
|
24536
24617
|
!(function () {
|
24537
24618
|
var internals = {
|
24538
24619
|
bundleType: 1,
|
24539
|
-
version: "19.0.0
|
24620
|
+
version: "19.0.0",
|
24540
24621
|
rendererPackageName: "react-dom",
|
24541
24622
|
currentDispatcherRef: ReactSharedInternals,
|
24542
24623
|
findFiberByHostInstance: getClosestInstanceFromNode,
|
24543
|
-
reconcilerVersion: "19.0.0
|
24624
|
+
reconcilerVersion: "19.0.0"
|
24544
24625
|
};
|
24545
24626
|
internals.overrideHookState = overrideHookState;
|
24546
24627
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -25014,7 +25095,7 @@
|
|
25014
25095
|
exports.useFormStatus = function () {
|
25015
25096
|
return resolveDispatcher().useHostTransitionStatus();
|
25016
25097
|
};
|
25017
|
-
exports.version = "19.0.0
|
25098
|
+
exports.version = "19.0.0";
|
25018
25099
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
25019
25100
|
"function" ===
|
25020
25101
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|