react-dom 19.0.0-rc-380f5d67-20241113 → 19.0.0-rc-e1ef8c95-20241115
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 +399 -326
- package/cjs/react-dom-client.production.js +454 -391
- package/cjs/react-dom-profiling.development.js +399 -326
- package/cjs/react-dom-profiling.profiling.js +495 -434
- 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,26 +14324,30 @@
|
|
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
|
-
|
14312
|
-
|
14345
|
+
if (exitStatus === RootInProgress) {
|
14346
|
+
workInProgressRootIsPrerendering &&
|
14347
|
+
!shouldTimeSlice &&
|
14348
|
+
markRootSuspended(root, lanes, 0, !1);
|
14349
|
+
break;
|
14350
|
+
} else {
|
14313
14351
|
forceSync = root.current.alternate;
|
14314
14352
|
if (
|
14315
14353
|
renderWasConcurrent &&
|
@@ -14373,25 +14411,25 @@
|
|
14373
14411
|
}
|
14374
14412
|
if (exitStatus === RootFatalErrored) {
|
14375
14413
|
prepareFreshStack(root, 0);
|
14376
|
-
markRootSuspended(root, lanes, 0);
|
14414
|
+
markRootSuspended(root, lanes, 0, !0);
|
14377
14415
|
break;
|
14378
14416
|
}
|
14379
14417
|
a: {
|
14380
|
-
|
14418
|
+
shouldTimeSlice = root;
|
14381
14419
|
switch (exitStatus) {
|
14382
14420
|
case RootInProgress:
|
14383
14421
|
case RootFatalErrored:
|
14384
14422
|
throw Error("Root did not complete. This is a bug in React.");
|
14385
14423
|
case RootSuspendedWithDelay:
|
14386
|
-
if ((lanes & 4194176)
|
14387
|
-
|
14388
|
-
|
14389
|
-
|
14390
|
-
|
14391
|
-
|
14392
|
-
|
14393
|
-
|
14394
|
-
break;
|
14424
|
+
if ((lanes & 4194176) !== lanes) break;
|
14425
|
+
case RootSuspendedAtTheShell:
|
14426
|
+
markRootSuspended(
|
14427
|
+
shouldTimeSlice,
|
14428
|
+
lanes,
|
14429
|
+
workInProgressDeferredLane,
|
14430
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14431
|
+
);
|
14432
|
+
break a;
|
14395
14433
|
case RootErrored:
|
14396
14434
|
workInProgressRootRecoverableErrors = null;
|
14397
14435
|
break;
|
@@ -14401,11 +14439,11 @@
|
|
14401
14439
|
default:
|
14402
14440
|
throw Error("Unknown root exit status.");
|
14403
14441
|
}
|
14404
|
-
|
14405
|
-
|
14442
|
+
shouldTimeSlice.finishedWork = forceSync;
|
14443
|
+
shouldTimeSlice.finishedLanes = lanes;
|
14406
14444
|
if (null !== ReactSharedInternals.actQueue)
|
14407
14445
|
commitRoot(
|
14408
|
-
|
14446
|
+
shouldTimeSlice,
|
14409
14447
|
workInProgressRootRecoverableErrors,
|
14410
14448
|
workInProgressTransitions,
|
14411
14449
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
@@ -14426,15 +14464,16 @@
|
|
14426
14464
|
10 < exitStatus)
|
14427
14465
|
) {
|
14428
14466
|
markRootSuspended(
|
14429
|
-
|
14467
|
+
shouldTimeSlice,
|
14430
14468
|
lanes,
|
14431
|
-
workInProgressDeferredLane
|
14469
|
+
workInProgressDeferredLane,
|
14470
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14432
14471
|
);
|
14433
|
-
if (0 !== getNextLanes(
|
14434
|
-
|
14472
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
14473
|
+
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
14435
14474
|
commitRootWhenReady.bind(
|
14436
14475
|
null,
|
14437
|
-
|
14476
|
+
shouldTimeSlice,
|
14438
14477
|
forceSync,
|
14439
14478
|
workInProgressRootRecoverableErrors,
|
14440
14479
|
workInProgressTransitions,
|
@@ -14453,7 +14492,7 @@
|
|
14453
14492
|
break a;
|
14454
14493
|
}
|
14455
14494
|
commitRootWhenReady(
|
14456
|
-
|
14495
|
+
shouldTimeSlice,
|
14457
14496
|
forceSync,
|
14458
14497
|
workInProgressRootRecoverableErrors,
|
14459
14498
|
workInProgressTransitions,
|
@@ -14497,11 +14536,8 @@
|
|
14497
14536
|
completedRenderStartTime,
|
14498
14537
|
completedRenderEndTime
|
14499
14538
|
) {
|
14500
|
-
|
14501
|
-
if (
|
14502
|
-
didSkipSuspendedSiblings & 8192 ||
|
14503
|
-
16785408 === (didSkipSuspendedSiblings & 16785408)
|
14504
|
-
)
|
14539
|
+
var subtreeFlags = finishedWork.subtreeFlags;
|
14540
|
+
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
|
14505
14541
|
if (
|
14506
14542
|
((suspendedState = {
|
14507
14543
|
stylesheets: null,
|
@@ -14527,7 +14563,12 @@
|
|
14527
14563
|
completedRenderEndTime
|
14528
14564
|
)
|
14529
14565
|
);
|
14530
|
-
markRootSuspended(
|
14566
|
+
markRootSuspended(
|
14567
|
+
root,
|
14568
|
+
lanes,
|
14569
|
+
spawnedLane,
|
14570
|
+
!didSkipSuspendedSiblings
|
14571
|
+
);
|
14531
14572
|
return;
|
14532
14573
|
}
|
14533
14574
|
commitRoot(
|
@@ -14577,19 +14618,22 @@
|
|
14577
14618
|
}
|
14578
14619
|
return !0;
|
14579
14620
|
}
|
14580
|
-
function markRootSuspended(
|
14621
|
+
function markRootSuspended(
|
14622
|
+
root,
|
14623
|
+
suspendedLanes,
|
14624
|
+
spawnedLane,
|
14625
|
+
didAttemptEntireTree
|
14626
|
+
) {
|
14581
14627
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
14582
14628
|
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
14583
14629
|
root.suspendedLanes |= suspendedLanes;
|
14584
14630
|
root.pingedLanes &= ~suspendedLanes;
|
14585
|
-
|
14586
|
-
|
14587
|
-
|
14588
|
-
|
14589
|
-
) {
|
14631
|
+
didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
|
14632
|
+
didAttemptEntireTree = root.expirationTimes;
|
14633
|
+
for (var lanes = suspendedLanes; 0 < lanes; ) {
|
14590
14634
|
var index = 31 - clz32(lanes),
|
14591
14635
|
lane = 1 << index;
|
14592
|
-
|
14636
|
+
didAttemptEntireTree[index] = -1;
|
14593
14637
|
lanes &= ~lane;
|
14594
14638
|
}
|
14595
14639
|
0 !== spawnedLane &&
|
@@ -14633,7 +14677,7 @@
|
|
14633
14677
|
workInProgressSuspendedReason = NotSuspended;
|
14634
14678
|
workInProgressThrownValue = null;
|
14635
14679
|
workInProgressRootDidSkipSuspendedSiblings = !1;
|
14636
|
-
checkIfRootIsPrerendering(root, lanes);
|
14680
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
|
14637
14681
|
workInProgressRootDidAttachPingListener = !1;
|
14638
14682
|
workInProgressRootExitStatus = RootInProgress;
|
14639
14683
|
workInProgressSuspendedRetryLanes =
|
@@ -14671,12 +14715,7 @@
|
|
14671
14715
|
current = null;
|
14672
14716
|
thrownValue === SuspenseException
|
14673
14717
|
? ((thrownValue = getSuspendedThenable()),
|
14674
|
-
(workInProgressSuspendedReason =
|
14675
|
-
shouldRemainOnPreviousScreen() &&
|
14676
|
-
0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14677
|
-
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
|
14678
|
-
? SuspendedOnData
|
14679
|
-
: SuspendedOnImmediate))
|
14718
|
+
(workInProgressSuspendedReason = SuspendedOnImmediate))
|
14680
14719
|
: thrownValue === SuspenseyCommitException
|
14681
14720
|
? ((thrownValue = getSuspendedThenable()),
|
14682
14721
|
(workInProgressSuspendedReason = SuspendedOnInstance))
|
@@ -14727,21 +14766,6 @@
|
|
14727
14766
|
);
|
14728
14767
|
}
|
14729
14768
|
}
|
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
14769
|
function pushDispatcher() {
|
14746
14770
|
var prevDispatcher = ReactSharedInternals.H;
|
14747
14771
|
ReactSharedInternals.H = ContextOnlyDispatcher;
|
@@ -14754,16 +14778,22 @@
|
|
14754
14778
|
}
|
14755
14779
|
function renderDidSuspendDelayIfPossible() {
|
14756
14780
|
workInProgressRootExitStatus = RootSuspendedWithDelay;
|
14781
|
+
workInProgressRootDidSkipSuspendedSiblings ||
|
14782
|
+
((workInProgressRootRenderLanes & 4194176) !==
|
14783
|
+
workInProgressRootRenderLanes &&
|
14784
|
+
null !== suspenseHandlerStackCursor.current) ||
|
14785
|
+
(workInProgressRootIsPrerendering = !0);
|
14757
14786
|
(0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14758
14787
|
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
|
14759
14788
|
null === workInProgressRoot ||
|
14760
14789
|
markRootSuspended(
|
14761
14790
|
workInProgressRoot,
|
14762
14791
|
workInProgressRootRenderLanes,
|
14763
|
-
workInProgressDeferredLane
|
14792
|
+
workInProgressDeferredLane,
|
14793
|
+
!1
|
14764
14794
|
);
|
14765
14795
|
}
|
14766
|
-
function renderRootSync(root, lanes) {
|
14796
|
+
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
|
14767
14797
|
var prevExecutionContext = executionContext;
|
14768
14798
|
executionContext |= RenderContext;
|
14769
14799
|
var prevDispatcher = pushDispatcher(),
|
@@ -14796,7 +14826,7 @@
|
|
14796
14826
|
switch (workInProgressSuspendedReason) {
|
14797
14827
|
case SuspendedOnHydration:
|
14798
14828
|
resetWorkInProgressStack();
|
14799
|
-
memoizedUpdaters =
|
14829
|
+
memoizedUpdaters = RootSuspendedAtTheShell;
|
14800
14830
|
break a;
|
14801
14831
|
case SuspendedOnImmediate:
|
14802
14832
|
case SuspendedOnData:
|
@@ -14806,6 +14836,13 @@
|
|
14806
14836
|
workInProgressSuspendedReason = NotSuspended;
|
14807
14837
|
workInProgressThrownValue = null;
|
14808
14838
|
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
|
14839
|
+
if (
|
14840
|
+
shouldYieldForPrerendering &&
|
14841
|
+
workInProgressRootIsPrerendering
|
14842
|
+
) {
|
14843
|
+
memoizedUpdaters = RootInProgress;
|
14844
|
+
break a;
|
14845
|
+
}
|
14809
14846
|
break;
|
14810
14847
|
default:
|
14811
14848
|
(reason = workInProgressSuspendedReason),
|
@@ -14855,7 +14892,11 @@
|
|
14855
14892
|
workInProgressTransitions = null;
|
14856
14893
|
workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
|
14857
14894
|
prepareFreshStack(root, lanes);
|
14858
|
-
} else
|
14895
|
+
} else
|
14896
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
|
14897
|
+
root,
|
14898
|
+
lanes
|
14899
|
+
);
|
14859
14900
|
markRenderStarted(lanes);
|
14860
14901
|
a: do
|
14861
14902
|
try {
|
@@ -14964,7 +15005,7 @@
|
|
14964
15005
|
break;
|
14965
15006
|
case SuspendedOnHydration:
|
14966
15007
|
resetWorkInProgressStack();
|
14967
|
-
workInProgressRootExitStatus =
|
15008
|
+
workInProgressRootExitStatus = RootSuspendedAtTheShell;
|
14968
15009
|
break a;
|
14969
15010
|
default:
|
14970
15011
|
throw Error(
|
@@ -15067,7 +15108,12 @@
|
|
15067
15108
|
stopProfilerTimerIfRunningAndRecordDuration(unitOfWork);
|
15068
15109
|
return current;
|
15069
15110
|
}
|
15070
|
-
function throwAndUnwindWorkLoop(
|
15111
|
+
function throwAndUnwindWorkLoop(
|
15112
|
+
root,
|
15113
|
+
unitOfWork,
|
15114
|
+
thrownValue,
|
15115
|
+
suspendedReason
|
15116
|
+
) {
|
15071
15117
|
resetContextDependencies();
|
15072
15118
|
resetHooksOnUnwind(unitOfWork);
|
15073
15119
|
thenableState$1 = null;
|
@@ -15101,9 +15147,25 @@
|
|
15101
15147
|
workInProgress = null;
|
15102
15148
|
return;
|
15103
15149
|
}
|
15104
|
-
unitOfWork.flags & 32768
|
15105
|
-
|
15106
|
-
|
15150
|
+
if (unitOfWork.flags & 32768) {
|
15151
|
+
if (isHydrating || suspendedReason === SuspendedOnError) root = !0;
|
15152
|
+
else if (
|
15153
|
+
workInProgressRootIsPrerendering ||
|
15154
|
+
0 !== (workInProgressRootRenderLanes & 536870912)
|
15155
|
+
)
|
15156
|
+
root = !1;
|
15157
|
+
else if (
|
15158
|
+
((workInProgressRootDidSkipSuspendedSiblings = root = !0),
|
15159
|
+
suspendedReason === SuspendedOnData ||
|
15160
|
+
suspendedReason === SuspendedOnImmediate ||
|
15161
|
+
suspendedReason === SuspendedOnDeprecatedThrowPromise)
|
15162
|
+
)
|
15163
|
+
(suspendedReason = suspenseHandlerStackCursor.current),
|
15164
|
+
null !== suspendedReason &&
|
15165
|
+
13 === suspendedReason.tag &&
|
15166
|
+
(suspendedReason.flags |= 16384);
|
15167
|
+
unwindUnitOfWork(unitOfWork, root);
|
15168
|
+
} else completeUnitOfWork(unitOfWork);
|
15107
15169
|
}
|
15108
15170
|
function completeUnitOfWork(unitOfWork) {
|
15109
15171
|
var completedWork = unitOfWork;
|
@@ -15170,7 +15232,7 @@
|
|
15170
15232
|
}
|
15171
15233
|
workInProgress = unitOfWork = next;
|
15172
15234
|
} while (null !== unitOfWork);
|
15173
|
-
workInProgressRootExitStatus =
|
15235
|
+
workInProgressRootExitStatus = RootSuspendedAtTheShell;
|
15174
15236
|
workInProgress = null;
|
15175
15237
|
}
|
15176
15238
|
function commitRoot(
|
@@ -15214,7 +15276,9 @@
|
|
15214
15276
|
transitions,
|
15215
15277
|
didIncludeRenderPhaseUpdate,
|
15216
15278
|
renderPriorityLevel,
|
15217
|
-
spawnedLane
|
15279
|
+
spawnedLane,
|
15280
|
+
updatedLanes,
|
15281
|
+
suspendedRetryLanes
|
15218
15282
|
) {
|
15219
15283
|
do flushPassiveEffects();
|
15220
15284
|
while (null !== rootWithPendingPassiveEffects);
|
@@ -15247,7 +15311,9 @@
|
|
15247
15311
|
root,
|
15248
15312
|
didIncludeRenderPhaseUpdate,
|
15249
15313
|
remainingLanes,
|
15250
|
-
spawnedLane
|
15314
|
+
spawnedLane,
|
15315
|
+
updatedLanes,
|
15316
|
+
suspendedRetryLanes
|
15251
15317
|
);
|
15252
15318
|
root === workInProgressRoot &&
|
15253
15319
|
((workInProgress = workInProgressRoot = null),
|
@@ -15264,35 +15330,39 @@
|
|
15264
15330
|
}));
|
15265
15331
|
commitStartTime = now();
|
15266
15332
|
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(
|
15333
|
+
0 !== (finishedWork.subtreeFlags & 15990) || transitions
|
15334
|
+
? ((transitions = ReactSharedInternals.T),
|
15335
|
+
(ReactSharedInternals.T = null),
|
15336
|
+
(spawnedLane = ReactDOMSharedInternals.p),
|
15337
|
+
(ReactDOMSharedInternals.p = DiscreteEventPriority),
|
15338
|
+
(updatedLanes = executionContext),
|
15339
|
+
(executionContext |= CommitContext),
|
15340
|
+
commitBeforeMutationEffects(root, finishedWork),
|
15341
|
+
commitMutationEffects(
|
15342
|
+
root,
|
15343
|
+
finishedWork,
|
15284
15344
|
didIncludeRenderPhaseUpdate
|
15285
|
-
)
|
15286
|
-
|
15287
|
-
|
15288
|
-
|
15289
|
-
|
15290
|
-
injectedProfilingHooks
|
15291
|
-
|
15292
|
-
|
15293
|
-
|
15294
|
-
|
15295
|
-
|
15345
|
+
),
|
15346
|
+
restoreSelection(selectionInformation, root.containerInfo),
|
15347
|
+
(_enabled = !!eventsEnabled),
|
15348
|
+
(selectionInformation = eventsEnabled = null),
|
15349
|
+
(root.current = finishedWork),
|
15350
|
+
null !== injectedProfilingHooks &&
|
15351
|
+
"function" ===
|
15352
|
+
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15353
|
+
injectedProfilingHooks.markLayoutEffectsStarted(
|
15354
|
+
didIncludeRenderPhaseUpdate
|
15355
|
+
),
|
15356
|
+
commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
|
15357
|
+
null !== injectedProfilingHooks &&
|
15358
|
+
"function" ===
|
15359
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15360
|
+
injectedProfilingHooks.markLayoutEffectsStopped(),
|
15361
|
+
requestPaint(),
|
15362
|
+
(executionContext = updatedLanes),
|
15363
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
15364
|
+
(ReactSharedInternals.T = transitions))
|
15365
|
+
: (root.current = finishedWork);
|
15296
15366
|
(transitions = rootDoesHavePassiveEffects)
|
15297
15367
|
? ((rootDoesHavePassiveEffects = !1),
|
15298
15368
|
(rootWithPendingPassiveEffects = root),
|
@@ -15810,43 +15880,45 @@
|
|
15810
15880
|
(root.callbackNode = null),
|
15811
15881
|
(root.callbackPriority = 0)
|
15812
15882
|
);
|
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
15883
|
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
|
-
|
15884
|
+
0 === (suspendedLanes & 3) ||
|
15885
|
+
checkIfRootIsPrerendering(root, suspendedLanes)
|
15886
|
+
) {
|
15887
|
+
currentTime = suspendedLanes & -suspendedLanes;
|
15888
|
+
if (
|
15889
|
+
currentTime !== root.callbackPriority ||
|
15890
|
+
(null !== ReactSharedInternals.actQueue &&
|
15891
|
+
pingedLanes !== fakeActCallbackNode)
|
15892
|
+
)
|
15893
|
+
cancelCallback(pingedLanes);
|
15894
|
+
else return currentTime;
|
15895
|
+
switch (lanesToEventPriority(suspendedLanes)) {
|
15896
|
+
case DiscreteEventPriority:
|
15897
|
+
case ContinuousEventPriority:
|
15898
|
+
suspendedLanes = UserBlockingPriority;
|
15899
|
+
break;
|
15900
|
+
case DefaultEventPriority:
|
15901
|
+
suspendedLanes = NormalPriority$1;
|
15902
|
+
break;
|
15903
|
+
case IdleEventPriority:
|
15904
|
+
suspendedLanes = IdlePriority;
|
15905
|
+
break;
|
15906
|
+
default:
|
15907
|
+
suspendedLanes = NormalPriority$1;
|
15908
|
+
}
|
15909
|
+
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
|
15910
|
+
null !== ReactSharedInternals.actQueue
|
15911
|
+
? (ReactSharedInternals.actQueue.push(pingedLanes),
|
15912
|
+
(suspendedLanes = fakeActCallbackNode))
|
15913
|
+
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
|
15914
|
+
root.callbackPriority = currentTime;
|
15915
|
+
root.callbackNode = suspendedLanes;
|
15916
|
+
return currentTime;
|
15917
|
+
}
|
15918
|
+
null !== pingedLanes && cancelCallback(pingedLanes);
|
15919
|
+
root.callbackPriority = 2;
|
15920
|
+
root.callbackNode = null;
|
15921
|
+
return 2;
|
15850
15922
|
}
|
15851
15923
|
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
|
15852
15924
|
nestedUpdateScheduled = currentUpdateIsNested = !1;
|
@@ -19760,7 +19832,7 @@
|
|
19760
19832
|
) {
|
19761
19833
|
outsideHostContainerContext &&
|
19762
19834
|
console.error(
|
19763
|
-
'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not
|
19835
|
+
'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.'
|
19764
19836
|
);
|
19765
19837
|
break;
|
19766
19838
|
}
|
@@ -23899,8 +23971,8 @@
|
|
23899
23971
|
RootErrored = 2,
|
23900
23972
|
RootSuspended = 3,
|
23901
23973
|
RootSuspendedWithDelay = 4,
|
23974
|
+
RootSuspendedAtTheShell = 6,
|
23902
23975
|
RootCompleted = 5,
|
23903
|
-
RootDidNotComplete = 6,
|
23904
23976
|
executionContext = NoContext,
|
23905
23977
|
workInProgressRoot = null,
|
23906
23978
|
workInProgress = null,
|
@@ -23917,6 +23989,7 @@
|
|
23917
23989
|
workInProgressSuspendedReason = NotSuspended,
|
23918
23990
|
workInProgressThrownValue = null,
|
23919
23991
|
workInProgressRootDidSkipSuspendedSiblings = !1,
|
23992
|
+
workInProgressRootIsPrerendering = !1,
|
23920
23993
|
workInProgressRootDidAttachPingListener = !1,
|
23921
23994
|
entangledRenderLanes = 0,
|
23922
23995
|
workInProgressRootExitStatus = RootInProgress,
|
@@ -24495,11 +24568,11 @@
|
|
24495
24568
|
};
|
24496
24569
|
(function () {
|
24497
24570
|
var isomorphicReactPackageVersion = React.version;
|
24498
|
-
if ("19.0.0-rc-
|
24571
|
+
if ("19.0.0-rc-e1ef8c95-20241115" !== isomorphicReactPackageVersion)
|
24499
24572
|
throw Error(
|
24500
24573
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24501
24574
|
(isomorphicReactPackageVersion +
|
24502
|
-
"\n - react-dom: 19.0.0-rc-
|
24575
|
+
"\n - react-dom: 19.0.0-rc-e1ef8c95-20241115\nLearn more: https://react.dev/warnings/version-mismatch")
|
24503
24576
|
);
|
24504
24577
|
})();
|
24505
24578
|
("function" === typeof Map &&
|
@@ -24536,11 +24609,11 @@
|
|
24536
24609
|
!(function () {
|
24537
24610
|
var internals = {
|
24538
24611
|
bundleType: 1,
|
24539
|
-
version: "19.0.0-rc-
|
24612
|
+
version: "19.0.0-rc-e1ef8c95-20241115",
|
24540
24613
|
rendererPackageName: "react-dom",
|
24541
24614
|
currentDispatcherRef: ReactSharedInternals,
|
24542
24615
|
findFiberByHostInstance: getClosestInstanceFromNode,
|
24543
|
-
reconcilerVersion: "19.0.0-rc-
|
24616
|
+
reconcilerVersion: "19.0.0-rc-e1ef8c95-20241115"
|
24544
24617
|
};
|
24545
24618
|
internals.overrideHookState = overrideHookState;
|
24546
24619
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -25014,7 +25087,7 @@
|
|
25014
25087
|
exports.useFormStatus = function () {
|
25015
25088
|
return resolveDispatcher().useHostTransitionStatus();
|
25016
25089
|
};
|
25017
|
-
exports.version = "19.0.0-rc-
|
25090
|
+
exports.version = "19.0.0-rc-e1ef8c95-20241115";
|
25018
25091
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
25019
25092
|
"function" ===
|
25020
25093
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|