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
@@ -1002,28 +1002,40 @@
|
|
1002
1002
|
var pendingLanes = root.pendingLanes;
|
1003
1003
|
if (0 === pendingLanes) return 0;
|
1004
1004
|
var nextLanes = 0,
|
1005
|
-
suspendedLanes = root.suspendedLanes
|
1006
|
-
|
1005
|
+
suspendedLanes = root.suspendedLanes,
|
1006
|
+
pingedLanes = root.pingedLanes,
|
1007
|
+
warmLanes = root.warmLanes;
|
1008
|
+
root = 0 !== root.finishedLanes;
|
1007
1009
|
var nonIdlePendingLanes = pendingLanes & 134217727;
|
1008
1010
|
0 !== nonIdlePendingLanes
|
1009
1011
|
? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
|
1010
1012
|
0 !== pendingLanes
|
1011
1013
|
? (nextLanes = getHighestPriorityLanes(pendingLanes))
|
1012
|
-
: ((
|
1013
|
-
0 !==
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1014
|
+
: ((pingedLanes &= nonIdlePendingLanes),
|
1015
|
+
0 !== pingedLanes
|
1016
|
+
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1017
|
+
: root ||
|
1018
|
+
((warmLanes = nonIdlePendingLanes & ~warmLanes),
|
1019
|
+
0 !== warmLanes &&
|
1020
|
+
(nextLanes = getHighestPriorityLanes(warmLanes)))))
|
1021
|
+
: ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
|
1022
|
+
0 !== nonIdlePendingLanes
|
1023
|
+
? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
|
1024
|
+
: 0 !== pingedLanes
|
1025
|
+
? (nextLanes = getHighestPriorityLanes(pingedLanes))
|
1026
|
+
: root ||
|
1027
|
+
((warmLanes = pendingLanes & ~warmLanes),
|
1028
|
+
0 !== warmLanes &&
|
1029
|
+
(nextLanes = getHighestPriorityLanes(warmLanes))));
|
1018
1030
|
return 0 === nextLanes
|
1019
1031
|
? 0
|
1020
1032
|
: 0 !== wipLanes &&
|
1021
1033
|
wipLanes !== nextLanes &&
|
1022
1034
|
0 === (wipLanes & suspendedLanes) &&
|
1023
1035
|
((suspendedLanes = nextLanes & -nextLanes),
|
1024
|
-
(
|
1025
|
-
suspendedLanes >=
|
1026
|
-
(32 === suspendedLanes && 0 !== (
|
1036
|
+
(warmLanes = wipLanes & -wipLanes),
|
1037
|
+
suspendedLanes >= warmLanes ||
|
1038
|
+
(32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
|
1027
1039
|
? wipLanes
|
1028
1040
|
: nextLanes;
|
1029
1041
|
}
|
@@ -1108,7 +1120,9 @@
|
|
1108
1120
|
root,
|
1109
1121
|
finishedLanes,
|
1110
1122
|
remainingLanes,
|
1111
|
-
spawnedLane
|
1123
|
+
spawnedLane,
|
1124
|
+
updatedLanes,
|
1125
|
+
suspendedRetryLanes
|
1112
1126
|
) {
|
1113
1127
|
var previouslyPendingLanes = root.pendingLanes;
|
1114
1128
|
root.pendingLanes = remainingLanes;
|
@@ -1119,17 +1133,17 @@
|
|
1119
1133
|
root.entangledLanes &= remainingLanes;
|
1120
1134
|
root.errorRecoveryDisabledLanes &= remainingLanes;
|
1121
1135
|
root.shellSuspendCounter = 0;
|
1122
|
-
|
1123
|
-
|
1136
|
+
var entanglements = root.entanglements,
|
1137
|
+
expirationTimes = root.expirationTimes,
|
1124
1138
|
hiddenUpdates = root.hiddenUpdates;
|
1125
1139
|
for (
|
1126
1140
|
remainingLanes = previouslyPendingLanes & ~remainingLanes;
|
1127
1141
|
0 < remainingLanes;
|
1128
1142
|
|
1129
1143
|
) {
|
1130
|
-
var index = 31 - clz32(remainingLanes)
|
1131
|
-
|
1132
|
-
|
1144
|
+
var index = 31 - clz32(remainingLanes),
|
1145
|
+
lane = 1 << index;
|
1146
|
+
entanglements[index] = 0;
|
1133
1147
|
expirationTimes[index] = -1;
|
1134
1148
|
var hiddenUpdatesForLane = hiddenUpdates[index];
|
1135
1149
|
if (null !== hiddenUpdatesForLane)
|
@@ -1141,9 +1155,14 @@
|
|
1141
1155
|
var update = hiddenUpdatesForLane[index];
|
1142
1156
|
null !== update && (update.lane &= -536870913);
|
1143
1157
|
}
|
1144
|
-
remainingLanes &= ~
|
1158
|
+
remainingLanes &= ~lane;
|
1145
1159
|
}
|
1146
1160
|
0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
|
1161
|
+
0 !== suspendedRetryLanes &&
|
1162
|
+
0 === updatedLanes &&
|
1163
|
+
0 !== root.tag &&
|
1164
|
+
(root.suspendedLanes |=
|
1165
|
+
suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
|
1147
1166
|
}
|
1148
1167
|
function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
|
1149
1168
|
root.pendingLanes |= spawnedLane;
|
@@ -8656,32 +8675,32 @@
|
|
8656
8675
|
return current;
|
8657
8676
|
}
|
8658
8677
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
8659
|
-
var
|
8660
|
-
var
|
8678
|
+
var JSCompiler_object_inline_digest_2317;
|
8679
|
+
var JSCompiler_object_inline_stack_2318 = workInProgress.pendingProps;
|
8661
8680
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
8662
|
-
var
|
8681
|
+
var JSCompiler_object_inline_componentStack_2319 = !1;
|
8663
8682
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
8664
|
-
(
|
8665
|
-
(
|
8683
|
+
(JSCompiler_object_inline_digest_2317 = didSuspend) ||
|
8684
|
+
(JSCompiler_object_inline_digest_2317 =
|
8666
8685
|
null !== current && null === current.memoizedState
|
8667
8686
|
? !1
|
8668
8687
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
8669
|
-
|
8670
|
-
((
|
8688
|
+
JSCompiler_object_inline_digest_2317 &&
|
8689
|
+
((JSCompiler_object_inline_componentStack_2319 = !0),
|
8671
8690
|
(workInProgress.flags &= -129));
|
8672
|
-
|
8691
|
+
JSCompiler_object_inline_digest_2317 = 0 !== (workInProgress.flags & 32);
|
8673
8692
|
workInProgress.flags &= -33;
|
8674
8693
|
if (null === current) {
|
8675
8694
|
if (isHydrating) {
|
8676
|
-
|
8695
|
+
JSCompiler_object_inline_componentStack_2319
|
8677
8696
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
8678
8697
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
8679
8698
|
if (isHydrating) {
|
8680
|
-
var
|
8699
|
+
var JSCompiler_object_inline_message_2316 = nextHydratableInstance;
|
8681
8700
|
var JSCompiler_temp;
|
8682
|
-
if (!(JSCompiler_temp = !
|
8701
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2316)) {
|
8683
8702
|
c: {
|
8684
|
-
var instance =
|
8703
|
+
var instance = JSCompiler_object_inline_message_2316;
|
8685
8704
|
for (
|
8686
8705
|
JSCompiler_temp = rootOrSingletonContext;
|
8687
8706
|
8 !== instance.nodeType;
|
@@ -8722,19 +8741,19 @@
|
|
8722
8741
|
JSCompiler_temp &&
|
8723
8742
|
(warnNonHydratedInstance(
|
8724
8743
|
workInProgress,
|
8725
|
-
|
8744
|
+
JSCompiler_object_inline_message_2316
|
8726
8745
|
),
|
8727
8746
|
throwOnHydrationMismatch(workInProgress));
|
8728
8747
|
}
|
8729
|
-
|
8748
|
+
JSCompiler_object_inline_message_2316 = workInProgress.memoizedState;
|
8730
8749
|
if (
|
8731
|
-
null !==
|
8732
|
-
((
|
8733
|
-
|
8734
|
-
null !==
|
8750
|
+
null !== JSCompiler_object_inline_message_2316 &&
|
8751
|
+
((JSCompiler_object_inline_message_2316 =
|
8752
|
+
JSCompiler_object_inline_message_2316.dehydrated),
|
8753
|
+
null !== JSCompiler_object_inline_message_2316)
|
8735
8754
|
)
|
8736
8755
|
return (
|
8737
|
-
|
8756
|
+
JSCompiler_object_inline_message_2316.data ===
|
8738
8757
|
SUSPENSE_FALLBACK_START_DATA
|
8739
8758
|
? (workInProgress.lanes = 16)
|
8740
8759
|
: (workInProgress.lanes = 536870912),
|
@@ -8742,58 +8761,58 @@
|
|
8742
8761
|
);
|
8743
8762
|
popSuspenseHandler(workInProgress);
|
8744
8763
|
}
|
8745
|
-
|
8746
|
-
|
8747
|
-
|
8748
|
-
|
8749
|
-
if (
|
8764
|
+
JSCompiler_object_inline_message_2316 =
|
8765
|
+
JSCompiler_object_inline_stack_2318.children;
|
8766
|
+
JSCompiler_object_inline_stack_2318 =
|
8767
|
+
JSCompiler_object_inline_stack_2318.fallback;
|
8768
|
+
if (JSCompiler_object_inline_componentStack_2319)
|
8750
8769
|
return (
|
8751
8770
|
reuseSuspenseHandlerOnStack(workInProgress),
|
8752
|
-
(
|
8771
|
+
(JSCompiler_object_inline_componentStack_2319 =
|
8753
8772
|
workInProgress.mode),
|
8754
|
-
(
|
8773
|
+
(JSCompiler_object_inline_message_2316 =
|
8755
8774
|
mountWorkInProgressOffscreenFiber(
|
8756
8775
|
{
|
8757
8776
|
mode: "hidden",
|
8758
|
-
children:
|
8777
|
+
children: JSCompiler_object_inline_message_2316
|
8759
8778
|
},
|
8760
|
-
|
8779
|
+
JSCompiler_object_inline_componentStack_2319
|
8761
8780
|
)),
|
8762
|
-
(
|
8763
|
-
|
8764
|
-
|
8781
|
+
(JSCompiler_object_inline_stack_2318 = createFiberFromFragment(
|
8782
|
+
JSCompiler_object_inline_stack_2318,
|
8783
|
+
JSCompiler_object_inline_componentStack_2319,
|
8765
8784
|
renderLanes,
|
8766
8785
|
null
|
8767
8786
|
)),
|
8768
|
-
(
|
8769
|
-
(
|
8770
|
-
(
|
8771
|
-
|
8772
|
-
(workInProgress.child =
|
8773
|
-
(
|
8787
|
+
(JSCompiler_object_inline_message_2316.return = workInProgress),
|
8788
|
+
(JSCompiler_object_inline_stack_2318.return = workInProgress),
|
8789
|
+
(JSCompiler_object_inline_message_2316.sibling =
|
8790
|
+
JSCompiler_object_inline_stack_2318),
|
8791
|
+
(workInProgress.child = JSCompiler_object_inline_message_2316),
|
8792
|
+
(JSCompiler_object_inline_componentStack_2319 =
|
8774
8793
|
workInProgress.child),
|
8775
|
-
(
|
8794
|
+
(JSCompiler_object_inline_componentStack_2319.memoizedState =
|
8776
8795
|
mountSuspenseOffscreenState(renderLanes)),
|
8777
|
-
(
|
8796
|
+
(JSCompiler_object_inline_componentStack_2319.childLanes =
|
8778
8797
|
getRemainingWorkInPrimaryTree(
|
8779
8798
|
current,
|
8780
|
-
|
8799
|
+
JSCompiler_object_inline_digest_2317,
|
8781
8800
|
renderLanes
|
8782
8801
|
)),
|
8783
8802
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
8784
|
-
|
8803
|
+
JSCompiler_object_inline_stack_2318
|
8785
8804
|
);
|
8786
8805
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
8787
8806
|
return mountSuspensePrimaryChildren(
|
8788
8807
|
workInProgress,
|
8789
|
-
|
8808
|
+
JSCompiler_object_inline_message_2316
|
8790
8809
|
);
|
8791
8810
|
}
|
8792
8811
|
var prevState = current.memoizedState;
|
8793
8812
|
if (
|
8794
8813
|
null !== prevState &&
|
8795
|
-
((
|
8796
|
-
null !==
|
8814
|
+
((JSCompiler_object_inline_message_2316 = prevState.dehydrated),
|
8815
|
+
null !== JSCompiler_object_inline_message_2316)
|
8797
8816
|
) {
|
8798
8817
|
if (didSuspend)
|
8799
8818
|
workInProgress.flags & 256
|
@@ -8810,95 +8829,95 @@
|
|
8810
8829
|
(workInProgress.flags |= 128),
|
8811
8830
|
(workInProgress = null))
|
8812
8831
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
8813
|
-
(
|
8814
|
-
|
8815
|
-
(
|
8816
|
-
(
|
8832
|
+
(JSCompiler_object_inline_componentStack_2319 =
|
8833
|
+
JSCompiler_object_inline_stack_2318.fallback),
|
8834
|
+
(JSCompiler_object_inline_message_2316 = workInProgress.mode),
|
8835
|
+
(JSCompiler_object_inline_stack_2318 =
|
8817
8836
|
mountWorkInProgressOffscreenFiber(
|
8818
8837
|
{
|
8819
8838
|
mode: "visible",
|
8820
|
-
children:
|
8839
|
+
children: JSCompiler_object_inline_stack_2318.children
|
8821
8840
|
},
|
8822
|
-
|
8841
|
+
JSCompiler_object_inline_message_2316
|
8823
8842
|
)),
|
8824
|
-
(
|
8843
|
+
(JSCompiler_object_inline_componentStack_2319 =
|
8825
8844
|
createFiberFromFragment(
|
8826
|
-
|
8827
|
-
|
8845
|
+
JSCompiler_object_inline_componentStack_2319,
|
8846
|
+
JSCompiler_object_inline_message_2316,
|
8828
8847
|
renderLanes,
|
8829
8848
|
null
|
8830
8849
|
)),
|
8831
|
-
(
|
8832
|
-
(
|
8833
|
-
(
|
8850
|
+
(JSCompiler_object_inline_componentStack_2319.flags |= 2),
|
8851
|
+
(JSCompiler_object_inline_stack_2318.return = workInProgress),
|
8852
|
+
(JSCompiler_object_inline_componentStack_2319.return =
|
8834
8853
|
workInProgress),
|
8835
|
-
(
|
8836
|
-
|
8837
|
-
(workInProgress.child =
|
8854
|
+
(JSCompiler_object_inline_stack_2318.sibling =
|
8855
|
+
JSCompiler_object_inline_componentStack_2319),
|
8856
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2318),
|
8838
8857
|
reconcileChildFibers(
|
8839
8858
|
workInProgress,
|
8840
8859
|
current.child,
|
8841
8860
|
null,
|
8842
8861
|
renderLanes
|
8843
8862
|
),
|
8844
|
-
(
|
8845
|
-
(
|
8863
|
+
(JSCompiler_object_inline_stack_2318 = workInProgress.child),
|
8864
|
+
(JSCompiler_object_inline_stack_2318.memoizedState =
|
8846
8865
|
mountSuspenseOffscreenState(renderLanes)),
|
8847
|
-
(
|
8866
|
+
(JSCompiler_object_inline_stack_2318.childLanes =
|
8848
8867
|
getRemainingWorkInPrimaryTree(
|
8849
8868
|
current,
|
8850
|
-
|
8869
|
+
JSCompiler_object_inline_digest_2317,
|
8851
8870
|
renderLanes
|
8852
8871
|
)),
|
8853
8872
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
8854
8873
|
(workInProgress =
|
8855
|
-
|
8874
|
+
JSCompiler_object_inline_componentStack_2319));
|
8856
8875
|
else if (
|
8857
8876
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
8858
8877
|
isHydrating &&
|
8859
8878
|
console.error(
|
8860
8879
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
8861
8880
|
),
|
8862
|
-
|
8881
|
+
JSCompiler_object_inline_message_2316.data ===
|
8863
8882
|
SUSPENSE_FALLBACK_START_DATA)
|
8864
8883
|
) {
|
8865
|
-
|
8866
|
-
|
8867
|
-
|
8868
|
-
if (
|
8869
|
-
JSCompiler_temp =
|
8870
|
-
var message =
|
8871
|
-
instance =
|
8872
|
-
var componentStack =
|
8884
|
+
JSCompiler_object_inline_digest_2317 =
|
8885
|
+
JSCompiler_object_inline_message_2316.nextSibling &&
|
8886
|
+
JSCompiler_object_inline_message_2316.nextSibling.dataset;
|
8887
|
+
if (JSCompiler_object_inline_digest_2317) {
|
8888
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2317.dgst;
|
8889
|
+
var message = JSCompiler_object_inline_digest_2317.msg;
|
8890
|
+
instance = JSCompiler_object_inline_digest_2317.stck;
|
8891
|
+
var componentStack = JSCompiler_object_inline_digest_2317.cstck;
|
8873
8892
|
}
|
8874
|
-
|
8875
|
-
|
8876
|
-
|
8877
|
-
JSCompiler_temp =
|
8893
|
+
JSCompiler_object_inline_message_2316 = message;
|
8894
|
+
JSCompiler_object_inline_digest_2317 = JSCompiler_temp;
|
8895
|
+
JSCompiler_object_inline_stack_2318 = instance;
|
8896
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2319 =
|
8878
8897
|
componentStack;
|
8879
|
-
|
8880
|
-
|
8881
|
-
? Error(
|
8898
|
+
JSCompiler_object_inline_componentStack_2319 =
|
8899
|
+
JSCompiler_object_inline_message_2316
|
8900
|
+
? Error(JSCompiler_object_inline_message_2316)
|
8882
8901
|
: Error(
|
8883
8902
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
8884
8903
|
);
|
8885
|
-
|
8886
|
-
|
8887
|
-
|
8888
|
-
|
8889
|
-
|
8904
|
+
JSCompiler_object_inline_componentStack_2319.stack =
|
8905
|
+
JSCompiler_object_inline_stack_2318 || "";
|
8906
|
+
JSCompiler_object_inline_componentStack_2319.digest =
|
8907
|
+
JSCompiler_object_inline_digest_2317;
|
8908
|
+
JSCompiler_object_inline_digest_2317 =
|
8890
8909
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
8891
|
-
|
8892
|
-
value:
|
8910
|
+
JSCompiler_object_inline_stack_2318 = {
|
8911
|
+
value: JSCompiler_object_inline_componentStack_2319,
|
8893
8912
|
source: null,
|
8894
|
-
stack:
|
8913
|
+
stack: JSCompiler_object_inline_digest_2317
|
8895
8914
|
};
|
8896
|
-
"string" === typeof
|
8915
|
+
"string" === typeof JSCompiler_object_inline_digest_2317 &&
|
8897
8916
|
CapturedStacks.set(
|
8898
|
-
|
8899
|
-
|
8917
|
+
JSCompiler_object_inline_componentStack_2319,
|
8918
|
+
JSCompiler_object_inline_stack_2318
|
8900
8919
|
);
|
8901
|
-
queueHydrationError(
|
8920
|
+
queueHydrationError(JSCompiler_object_inline_stack_2318);
|
8902
8921
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
8903
8922
|
current,
|
8904
8923
|
workInProgress,
|
@@ -8912,25 +8931,25 @@
|
|
8912
8931
|
renderLanes,
|
8913
8932
|
!1
|
8914
8933
|
),
|
8915
|
-
(
|
8934
|
+
(JSCompiler_object_inline_digest_2317 =
|
8916
8935
|
0 !== (renderLanes & current.childLanes)),
|
8917
|
-
didReceiveUpdate ||
|
8936
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2317)
|
8918
8937
|
) {
|
8919
|
-
|
8920
|
-
if (null !==
|
8921
|
-
|
8922
|
-
if (0 !== (
|
8923
|
-
|
8938
|
+
JSCompiler_object_inline_digest_2317 = workInProgressRoot;
|
8939
|
+
if (null !== JSCompiler_object_inline_digest_2317) {
|
8940
|
+
JSCompiler_object_inline_stack_2318 = renderLanes & -renderLanes;
|
8941
|
+
if (0 !== (JSCompiler_object_inline_stack_2318 & 42))
|
8942
|
+
JSCompiler_object_inline_stack_2318 = 1;
|
8924
8943
|
else
|
8925
|
-
switch (
|
8944
|
+
switch (JSCompiler_object_inline_stack_2318) {
|
8926
8945
|
case 2:
|
8927
|
-
|
8946
|
+
JSCompiler_object_inline_stack_2318 = 1;
|
8928
8947
|
break;
|
8929
8948
|
case 8:
|
8930
|
-
|
8949
|
+
JSCompiler_object_inline_stack_2318 = 4;
|
8931
8950
|
break;
|
8932
8951
|
case 32:
|
8933
|
-
|
8952
|
+
JSCompiler_object_inline_stack_2318 = 16;
|
8934
8953
|
break;
|
8935
8954
|
case 128:
|
8936
8955
|
case 256:
|
@@ -8951,40 +8970,40 @@
|
|
8951
8970
|
case 8388608:
|
8952
8971
|
case 16777216:
|
8953
8972
|
case 33554432:
|
8954
|
-
|
8973
|
+
JSCompiler_object_inline_stack_2318 = 64;
|
8955
8974
|
break;
|
8956
8975
|
case 268435456:
|
8957
|
-
|
8976
|
+
JSCompiler_object_inline_stack_2318 = 134217728;
|
8958
8977
|
break;
|
8959
8978
|
default:
|
8960
|
-
|
8979
|
+
JSCompiler_object_inline_stack_2318 = 0;
|
8961
8980
|
}
|
8962
|
-
|
8981
|
+
JSCompiler_object_inline_stack_2318 =
|
8963
8982
|
0 !==
|
8964
|
-
(
|
8965
|
-
(
|
8983
|
+
(JSCompiler_object_inline_stack_2318 &
|
8984
|
+
(JSCompiler_object_inline_digest_2317.suspendedLanes |
|
8966
8985
|
renderLanes))
|
8967
8986
|
? 0
|
8968
|
-
:
|
8987
|
+
: JSCompiler_object_inline_stack_2318;
|
8969
8988
|
if (
|
8970
|
-
0 !==
|
8971
|
-
|
8989
|
+
0 !== JSCompiler_object_inline_stack_2318 &&
|
8990
|
+
JSCompiler_object_inline_stack_2318 !== prevState.retryLane
|
8972
8991
|
)
|
8973
8992
|
throw (
|
8974
|
-
((prevState.retryLane =
|
8993
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2318),
|
8975
8994
|
enqueueConcurrentRenderForLane(
|
8976
8995
|
current,
|
8977
|
-
|
8996
|
+
JSCompiler_object_inline_stack_2318
|
8978
8997
|
),
|
8979
8998
|
scheduleUpdateOnFiber(
|
8980
|
-
|
8999
|
+
JSCompiler_object_inline_digest_2317,
|
8981
9000
|
current,
|
8982
|
-
|
9001
|
+
JSCompiler_object_inline_stack_2318
|
8983
9002
|
),
|
8984
9003
|
SelectiveHydrationException)
|
8985
9004
|
);
|
8986
9005
|
}
|
8987
|
-
|
9006
|
+
JSCompiler_object_inline_message_2316.data ===
|
8988
9007
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
8989
9008
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
8990
9009
|
current,
|
@@ -8992,7 +9011,7 @@
|
|
8992
9011
|
renderLanes
|
8993
9012
|
);
|
8994
9013
|
} else
|
8995
|
-
|
9014
|
+
JSCompiler_object_inline_message_2316.data ===
|
8996
9015
|
SUSPENSE_PENDING_START_DATA
|
8997
9016
|
? ((workInProgress.flags |= 128),
|
8998
9017
|
(workInProgress.child = current.child),
|
@@ -9000,12 +9019,12 @@
|
|
9000
9019
|
null,
|
9001
9020
|
current
|
9002
9021
|
)),
|
9003
|
-
(
|
9022
|
+
(JSCompiler_object_inline_message_2316._reactRetry =
|
9004
9023
|
workInProgress),
|
9005
9024
|
(workInProgress = null))
|
9006
9025
|
: ((current = prevState.treeContext),
|
9007
9026
|
(nextHydratableInstance = getNextHydratable(
|
9008
|
-
|
9027
|
+
JSCompiler_object_inline_message_2316.nextSibling
|
9009
9028
|
)),
|
9010
9029
|
(hydrationParentFiber = workInProgress),
|
9011
9030
|
(isHydrating = !0),
|
@@ -9023,57 +9042,57 @@
|
|
9023
9042
|
(treeContextProvider = workInProgress)),
|
9024
9043
|
(workInProgress = mountSuspensePrimaryChildren(
|
9025
9044
|
workInProgress,
|
9026
|
-
|
9045
|
+
JSCompiler_object_inline_stack_2318.children
|
9027
9046
|
)),
|
9028
9047
|
(workInProgress.flags |= 4096));
|
9029
9048
|
return workInProgress;
|
9030
9049
|
}
|
9031
|
-
if (
|
9050
|
+
if (JSCompiler_object_inline_componentStack_2319)
|
9032
9051
|
return (
|
9033
9052
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9034
|
-
(
|
9035
|
-
|
9036
|
-
(
|
9053
|
+
(JSCompiler_object_inline_componentStack_2319 =
|
9054
|
+
JSCompiler_object_inline_stack_2318.fallback),
|
9055
|
+
(JSCompiler_object_inline_message_2316 = workInProgress.mode),
|
9037
9056
|
(JSCompiler_temp = current.child),
|
9038
9057
|
(instance = JSCompiler_temp.sibling),
|
9039
|
-
(
|
9058
|
+
(JSCompiler_object_inline_stack_2318 = createWorkInProgress(
|
9040
9059
|
JSCompiler_temp,
|
9041
9060
|
{
|
9042
9061
|
mode: "hidden",
|
9043
|
-
children:
|
9062
|
+
children: JSCompiler_object_inline_stack_2318.children
|
9044
9063
|
}
|
9045
9064
|
)),
|
9046
|
-
(
|
9065
|
+
(JSCompiler_object_inline_stack_2318.subtreeFlags =
|
9047
9066
|
JSCompiler_temp.subtreeFlags & 31457280),
|
9048
9067
|
null !== instance
|
9049
|
-
? (
|
9068
|
+
? (JSCompiler_object_inline_componentStack_2319 =
|
9050
9069
|
createWorkInProgress(
|
9051
9070
|
instance,
|
9052
|
-
|
9071
|
+
JSCompiler_object_inline_componentStack_2319
|
9053
9072
|
))
|
9054
|
-
: ((
|
9073
|
+
: ((JSCompiler_object_inline_componentStack_2319 =
|
9055
9074
|
createFiberFromFragment(
|
9056
|
-
|
9057
|
-
|
9075
|
+
JSCompiler_object_inline_componentStack_2319,
|
9076
|
+
JSCompiler_object_inline_message_2316,
|
9058
9077
|
renderLanes,
|
9059
9078
|
null
|
9060
9079
|
)),
|
9061
|
-
(
|
9062
|
-
(
|
9080
|
+
(JSCompiler_object_inline_componentStack_2319.flags |= 2)),
|
9081
|
+
(JSCompiler_object_inline_componentStack_2319.return =
|
9063
9082
|
workInProgress),
|
9064
|
-
(
|
9065
|
-
(
|
9066
|
-
|
9067
|
-
(workInProgress.child =
|
9068
|
-
(
|
9069
|
-
|
9070
|
-
(
|
9071
|
-
(
|
9072
|
-
null ===
|
9073
|
-
? (
|
9083
|
+
(JSCompiler_object_inline_stack_2318.return = workInProgress),
|
9084
|
+
(JSCompiler_object_inline_stack_2318.sibling =
|
9085
|
+
JSCompiler_object_inline_componentStack_2319),
|
9086
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2318),
|
9087
|
+
(JSCompiler_object_inline_stack_2318 =
|
9088
|
+
JSCompiler_object_inline_componentStack_2319),
|
9089
|
+
(JSCompiler_object_inline_componentStack_2319 = workInProgress.child),
|
9090
|
+
(JSCompiler_object_inline_message_2316 = current.child.memoizedState),
|
9091
|
+
null === JSCompiler_object_inline_message_2316
|
9092
|
+
? (JSCompiler_object_inline_message_2316 =
|
9074
9093
|
mountSuspenseOffscreenState(renderLanes))
|
9075
9094
|
: ((JSCompiler_temp =
|
9076
|
-
|
9095
|
+
JSCompiler_object_inline_message_2316.cachePool),
|
9077
9096
|
null !== JSCompiler_temp
|
9078
9097
|
? ((instance = CacheContext._currentValue),
|
9079
9098
|
(JSCompiler_temp =
|
@@ -9081,37 +9100,37 @@
|
|
9081
9100
|
? { parent: instance, pool: instance }
|
9082
9101
|
: JSCompiler_temp))
|
9083
9102
|
: (JSCompiler_temp = getSuspendedCache()),
|
9084
|
-
(
|
9103
|
+
(JSCompiler_object_inline_message_2316 = {
|
9085
9104
|
baseLanes:
|
9086
|
-
|
9105
|
+
JSCompiler_object_inline_message_2316.baseLanes | renderLanes,
|
9087
9106
|
cachePool: JSCompiler_temp
|
9088
9107
|
})),
|
9089
|
-
(
|
9090
|
-
|
9091
|
-
(
|
9108
|
+
(JSCompiler_object_inline_componentStack_2319.memoizedState =
|
9109
|
+
JSCompiler_object_inline_message_2316),
|
9110
|
+
(JSCompiler_object_inline_componentStack_2319.childLanes =
|
9092
9111
|
getRemainingWorkInPrimaryTree(
|
9093
9112
|
current,
|
9094
|
-
|
9113
|
+
JSCompiler_object_inline_digest_2317,
|
9095
9114
|
renderLanes
|
9096
9115
|
)),
|
9097
9116
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9098
|
-
|
9117
|
+
JSCompiler_object_inline_stack_2318
|
9099
9118
|
);
|
9100
9119
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
9101
9120
|
renderLanes = current.child;
|
9102
9121
|
current = renderLanes.sibling;
|
9103
9122
|
renderLanes = createWorkInProgress(renderLanes, {
|
9104
9123
|
mode: "visible",
|
9105
|
-
children:
|
9124
|
+
children: JSCompiler_object_inline_stack_2318.children
|
9106
9125
|
});
|
9107
9126
|
renderLanes.return = workInProgress;
|
9108
9127
|
renderLanes.sibling = null;
|
9109
9128
|
null !== current &&
|
9110
|
-
((
|
9111
|
-
null ===
|
9129
|
+
((JSCompiler_object_inline_digest_2317 = workInProgress.deletions),
|
9130
|
+
null === JSCompiler_object_inline_digest_2317
|
9112
9131
|
? ((workInProgress.deletions = [current]),
|
9113
9132
|
(workInProgress.flags |= 16))
|
9114
|
-
:
|
9133
|
+
: JSCompiler_object_inline_digest_2317.push(current));
|
9115
9134
|
workInProgress.child = renderLanes;
|
9116
9135
|
workInProgress.memoizedState = null;
|
9117
9136
|
return renderLanes;
|
@@ -13430,20 +13449,34 @@
|
|
13430
13449
|
(resource.state.loading & Inserted) !== NotLoaded
|
13431
13450
|
)
|
13432
13451
|
workInProgress.flags &= -16777217;
|
13433
|
-
else if (
|
13434
|
-
|
13435
|
-
|
13452
|
+
else if (
|
13453
|
+
((workInProgress.flags |= 16777216), !preloadResource(resource))
|
13454
|
+
) {
|
13455
|
+
resource = suspenseHandlerStackCursor.current;
|
13456
|
+
if (
|
13457
|
+
null !== resource &&
|
13458
|
+
((workInProgressRootRenderLanes & 4194176) ===
|
13459
|
+
workInProgressRootRenderLanes
|
13460
|
+
? null !== shellBoundary
|
13461
|
+
: ((workInProgressRootRenderLanes & 62914560) !==
|
13462
|
+
workInProgressRootRenderLanes &&
|
13463
|
+
0 === (workInProgressRootRenderLanes & 536870912)) ||
|
13464
|
+
resource !== shellBoundary)
|
13465
|
+
)
|
13436
13466
|
throw (
|
13437
13467
|
((suspendedThenable = noopSuspenseyCommitThenable),
|
13438
13468
|
SuspenseyCommitException)
|
13439
13469
|
);
|
13470
|
+
workInProgress.flags |= 8192;
|
13471
|
+
}
|
13440
13472
|
}
|
13441
13473
|
function scheduleRetryEffect(workInProgress, retryQueue) {
|
13442
13474
|
null !== retryQueue && (workInProgress.flags |= 4);
|
13443
13475
|
workInProgress.flags & 16384 &&
|
13444
13476
|
((retryQueue =
|
13445
13477
|
22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
|
13446
|
-
(workInProgress.lanes |= retryQueue)
|
13478
|
+
(workInProgress.lanes |= retryQueue),
|
13479
|
+
(workInProgressSuspendedRetryLanes |= retryQueue));
|
13447
13480
|
}
|
13448
13481
|
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
13449
13482
|
if (!isHydrating)
|
@@ -14240,7 +14273,8 @@
|
|
14240
14273
|
markRootSuspended(
|
14241
14274
|
root,
|
14242
14275
|
workInProgressRootRenderLanes,
|
14243
|
-
workInProgressDeferredLane
|
14276
|
+
workInProgressDeferredLane,
|
14277
|
+
!1
|
14244
14278
|
);
|
14245
14279
|
markRootUpdated$1(root, lane);
|
14246
14280
|
if (
|
@@ -14282,26 +14316,30 @@
|
|
14282
14316
|
markRootSuspended(
|
14283
14317
|
root,
|
14284
14318
|
workInProgressRootRenderLanes,
|
14285
|
-
workInProgressDeferredLane
|
14319
|
+
workInProgressDeferredLane,
|
14320
|
+
!1
|
14286
14321
|
)),
|
14287
14322
|
ensureRootIsScheduled(root);
|
14288
14323
|
}
|
14289
14324
|
function performWorkOnRoot(root, lanes, forceSync) {
|
14290
14325
|
if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
|
14291
14326
|
throw Error("Should not already be working.");
|
14292
|
-
var
|
14327
|
+
var shouldTimeSlice =
|
14293
14328
|
(!forceSync &&
|
14294
14329
|
0 === (lanes & 60) &&
|
14295
14330
|
0 === (lanes & root.expiredLanes)) ||
|
14296
|
-
|
14331
|
+
checkIfRootIsPrerendering(root, lanes),
|
14332
|
+
exitStatus = shouldTimeSlice
|
14297
14333
|
? renderRootConcurrent(root, lanes)
|
14298
14334
|
: renderRootSync(root, lanes, !0),
|
14299
|
-
renderWasConcurrent =
|
14335
|
+
renderWasConcurrent = shouldTimeSlice;
|
14300
14336
|
do {
|
14301
|
-
if (exitStatus === RootInProgress)
|
14302
|
-
|
14303
|
-
|
14304
|
-
|
14337
|
+
if (exitStatus === RootInProgress) {
|
14338
|
+
workInProgressRootIsPrerendering &&
|
14339
|
+
!shouldTimeSlice &&
|
14340
|
+
markRootSuspended(root, lanes, 0, !1);
|
14341
|
+
break;
|
14342
|
+
} else {
|
14305
14343
|
forceSync = root.current.alternate;
|
14306
14344
|
if (
|
14307
14345
|
renderWasConcurrent &&
|
@@ -14365,25 +14403,25 @@
|
|
14365
14403
|
}
|
14366
14404
|
if (exitStatus === RootFatalErrored) {
|
14367
14405
|
prepareFreshStack(root, 0);
|
14368
|
-
markRootSuspended(root, lanes, 0);
|
14406
|
+
markRootSuspended(root, lanes, 0, !0);
|
14369
14407
|
break;
|
14370
14408
|
}
|
14371
14409
|
a: {
|
14372
|
-
|
14410
|
+
shouldTimeSlice = root;
|
14373
14411
|
switch (exitStatus) {
|
14374
14412
|
case RootInProgress:
|
14375
14413
|
case RootFatalErrored:
|
14376
14414
|
throw Error("Root did not complete. This is a bug in React.");
|
14377
14415
|
case RootSuspendedWithDelay:
|
14378
|
-
if ((lanes & 4194176)
|
14379
|
-
|
14380
|
-
|
14381
|
-
|
14382
|
-
|
14383
|
-
|
14384
|
-
|
14385
|
-
|
14386
|
-
break;
|
14416
|
+
if ((lanes & 4194176) !== lanes) break;
|
14417
|
+
case RootSuspendedAtTheShell:
|
14418
|
+
markRootSuspended(
|
14419
|
+
shouldTimeSlice,
|
14420
|
+
lanes,
|
14421
|
+
workInProgressDeferredLane,
|
14422
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14423
|
+
);
|
14424
|
+
break a;
|
14387
14425
|
case RootErrored:
|
14388
14426
|
workInProgressRootRecoverableErrors = null;
|
14389
14427
|
break;
|
@@ -14393,11 +14431,11 @@
|
|
14393
14431
|
default:
|
14394
14432
|
throw Error("Unknown root exit status.");
|
14395
14433
|
}
|
14396
|
-
|
14397
|
-
|
14434
|
+
shouldTimeSlice.finishedWork = forceSync;
|
14435
|
+
shouldTimeSlice.finishedLanes = lanes;
|
14398
14436
|
if (null !== ReactSharedInternals.actQueue)
|
14399
14437
|
commitRoot(
|
14400
|
-
|
14438
|
+
shouldTimeSlice,
|
14401
14439
|
workInProgressRootRecoverableErrors,
|
14402
14440
|
workInProgressTransitions,
|
14403
14441
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
@@ -14418,15 +14456,16 @@
|
|
14418
14456
|
10 < exitStatus)
|
14419
14457
|
) {
|
14420
14458
|
markRootSuspended(
|
14421
|
-
|
14459
|
+
shouldTimeSlice,
|
14422
14460
|
lanes,
|
14423
|
-
workInProgressDeferredLane
|
14461
|
+
workInProgressDeferredLane,
|
14462
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14424
14463
|
);
|
14425
|
-
if (0 !== getNextLanes(
|
14426
|
-
|
14464
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
14465
|
+
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
14427
14466
|
commitRootWhenReady.bind(
|
14428
14467
|
null,
|
14429
|
-
|
14468
|
+
shouldTimeSlice,
|
14430
14469
|
forceSync,
|
14431
14470
|
workInProgressRootRecoverableErrors,
|
14432
14471
|
workInProgressTransitions,
|
@@ -14445,7 +14484,7 @@
|
|
14445
14484
|
break a;
|
14446
14485
|
}
|
14447
14486
|
commitRootWhenReady(
|
14448
|
-
|
14487
|
+
shouldTimeSlice,
|
14449
14488
|
forceSync,
|
14450
14489
|
workInProgressRootRecoverableErrors,
|
14451
14490
|
workInProgressTransitions,
|
@@ -14489,11 +14528,8 @@
|
|
14489
14528
|
completedRenderStartTime,
|
14490
14529
|
completedRenderEndTime
|
14491
14530
|
) {
|
14492
|
-
|
14493
|
-
if (
|
14494
|
-
didSkipSuspendedSiblings & 8192 ||
|
14495
|
-
16785408 === (didSkipSuspendedSiblings & 16785408)
|
14496
|
-
)
|
14531
|
+
var subtreeFlags = finishedWork.subtreeFlags;
|
14532
|
+
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
|
14497
14533
|
if (
|
14498
14534
|
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
|
14499
14535
|
accumulateSuspenseyCommitOnFiber(finishedWork),
|
@@ -14515,7 +14551,12 @@
|
|
14515
14551
|
completedRenderEndTime
|
14516
14552
|
)
|
14517
14553
|
);
|
14518
|
-
markRootSuspended(
|
14554
|
+
markRootSuspended(
|
14555
|
+
root,
|
14556
|
+
lanes,
|
14557
|
+
spawnedLane,
|
14558
|
+
!didSkipSuspendedSiblings
|
14559
|
+
);
|
14519
14560
|
return;
|
14520
14561
|
}
|
14521
14562
|
commitRoot(
|
@@ -14565,19 +14606,22 @@
|
|
14565
14606
|
}
|
14566
14607
|
return !0;
|
14567
14608
|
}
|
14568
|
-
function markRootSuspended(
|
14609
|
+
function markRootSuspended(
|
14610
|
+
root,
|
14611
|
+
suspendedLanes,
|
14612
|
+
spawnedLane,
|
14613
|
+
didAttemptEntireTree
|
14614
|
+
) {
|
14569
14615
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
14570
14616
|
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
14571
14617
|
root.suspendedLanes |= suspendedLanes;
|
14572
14618
|
root.pingedLanes &= ~suspendedLanes;
|
14573
|
-
|
14574
|
-
|
14575
|
-
|
14576
|
-
|
14577
|
-
) {
|
14619
|
+
didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
|
14620
|
+
didAttemptEntireTree = root.expirationTimes;
|
14621
|
+
for (var lanes = suspendedLanes; 0 < lanes; ) {
|
14578
14622
|
var index = 31 - clz32(lanes),
|
14579
14623
|
lane = 1 << index;
|
14580
|
-
|
14624
|
+
didAttemptEntireTree[index] = -1;
|
14581
14625
|
lanes &= ~lane;
|
14582
14626
|
}
|
14583
14627
|
0 !== spawnedLane &&
|
@@ -14621,7 +14665,7 @@
|
|
14621
14665
|
workInProgressSuspendedReason = NotSuspended;
|
14622
14666
|
workInProgressThrownValue = null;
|
14623
14667
|
workInProgressRootDidSkipSuspendedSiblings = !1;
|
14624
|
-
checkIfRootIsPrerendering(root, lanes);
|
14668
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
|
14625
14669
|
workInProgressRootDidAttachPingListener = !1;
|
14626
14670
|
workInProgressRootExitStatus = RootInProgress;
|
14627
14671
|
workInProgressSuspendedRetryLanes =
|
@@ -14659,12 +14703,7 @@
|
|
14659
14703
|
current = null;
|
14660
14704
|
thrownValue === SuspenseException
|
14661
14705
|
? ((thrownValue = getSuspendedThenable()),
|
14662
|
-
(workInProgressSuspendedReason =
|
14663
|
-
shouldRemainOnPreviousScreen() &&
|
14664
|
-
0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14665
|
-
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
|
14666
|
-
? SuspendedOnData
|
14667
|
-
: SuspendedOnImmediate))
|
14706
|
+
(workInProgressSuspendedReason = SuspendedOnImmediate))
|
14668
14707
|
: thrownValue === SuspenseyCommitException
|
14669
14708
|
? ((thrownValue = getSuspendedThenable()),
|
14670
14709
|
(workInProgressSuspendedReason = SuspendedOnInstance))
|
@@ -14715,21 +14754,6 @@
|
|
14715
14754
|
);
|
14716
14755
|
}
|
14717
14756
|
}
|
14718
|
-
function shouldRemainOnPreviousScreen() {
|
14719
|
-
var handler = suspenseHandlerStackCursor.current;
|
14720
|
-
return null === handler
|
14721
|
-
? !0
|
14722
|
-
: (workInProgressRootRenderLanes & 4194176) ===
|
14723
|
-
workInProgressRootRenderLanes
|
14724
|
-
? null === shellBoundary
|
14725
|
-
? !0
|
14726
|
-
: !1
|
14727
|
-
: (workInProgressRootRenderLanes & 62914560) ===
|
14728
|
-
workInProgressRootRenderLanes ||
|
14729
|
-
0 !== (workInProgressRootRenderLanes & 536870912)
|
14730
|
-
? handler === shellBoundary
|
14731
|
-
: !1;
|
14732
|
-
}
|
14733
14757
|
function pushDispatcher() {
|
14734
14758
|
var prevDispatcher = ReactSharedInternals.H;
|
14735
14759
|
ReactSharedInternals.H = ContextOnlyDispatcher;
|
@@ -14742,16 +14766,22 @@
|
|
14742
14766
|
}
|
14743
14767
|
function renderDidSuspendDelayIfPossible() {
|
14744
14768
|
workInProgressRootExitStatus = RootSuspendedWithDelay;
|
14769
|
+
workInProgressRootDidSkipSuspendedSiblings ||
|
14770
|
+
((workInProgressRootRenderLanes & 4194176) !==
|
14771
|
+
workInProgressRootRenderLanes &&
|
14772
|
+
null !== suspenseHandlerStackCursor.current) ||
|
14773
|
+
(workInProgressRootIsPrerendering = !0);
|
14745
14774
|
(0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14746
14775
|
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
|
14747
14776
|
null === workInProgressRoot ||
|
14748
14777
|
markRootSuspended(
|
14749
14778
|
workInProgressRoot,
|
14750
14779
|
workInProgressRootRenderLanes,
|
14751
|
-
workInProgressDeferredLane
|
14780
|
+
workInProgressDeferredLane,
|
14781
|
+
!1
|
14752
14782
|
);
|
14753
14783
|
}
|
14754
|
-
function renderRootSync(root, lanes) {
|
14784
|
+
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
|
14755
14785
|
var prevExecutionContext = executionContext;
|
14756
14786
|
executionContext |= RenderContext;
|
14757
14787
|
var prevDispatcher = pushDispatcher(),
|
@@ -14784,7 +14814,7 @@
|
|
14784
14814
|
switch (workInProgressSuspendedReason) {
|
14785
14815
|
case SuspendedOnHydration:
|
14786
14816
|
resetWorkInProgressStack();
|
14787
|
-
memoizedUpdaters =
|
14817
|
+
memoizedUpdaters = RootSuspendedAtTheShell;
|
14788
14818
|
break a;
|
14789
14819
|
case SuspendedOnImmediate:
|
14790
14820
|
case SuspendedOnData:
|
@@ -14794,6 +14824,13 @@
|
|
14794
14824
|
workInProgressSuspendedReason = NotSuspended;
|
14795
14825
|
workInProgressThrownValue = null;
|
14796
14826
|
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
|
14827
|
+
if (
|
14828
|
+
shouldYieldForPrerendering &&
|
14829
|
+
workInProgressRootIsPrerendering
|
14830
|
+
) {
|
14831
|
+
memoizedUpdaters = RootInProgress;
|
14832
|
+
break a;
|
14833
|
+
}
|
14797
14834
|
break;
|
14798
14835
|
default:
|
14799
14836
|
(reason = workInProgressSuspendedReason),
|
@@ -14843,7 +14880,11 @@
|
|
14843
14880
|
workInProgressTransitions = null;
|
14844
14881
|
workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
|
14845
14882
|
prepareFreshStack(root, lanes);
|
14846
|
-
} else
|
14883
|
+
} else
|
14884
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
|
14885
|
+
root,
|
14886
|
+
lanes
|
14887
|
+
);
|
14847
14888
|
markRenderStarted(lanes);
|
14848
14889
|
a: do
|
14849
14890
|
try {
|
@@ -14952,7 +14993,7 @@
|
|
14952
14993
|
break;
|
14953
14994
|
case SuspendedOnHydration:
|
14954
14995
|
resetWorkInProgressStack();
|
14955
|
-
workInProgressRootExitStatus =
|
14996
|
+
workInProgressRootExitStatus = RootSuspendedAtTheShell;
|
14956
14997
|
break a;
|
14957
14998
|
default:
|
14958
14999
|
throw Error(
|
@@ -15055,7 +15096,12 @@
|
|
15055
15096
|
stopProfilerTimerIfRunningAndRecordDuration(unitOfWork);
|
15056
15097
|
return current;
|
15057
15098
|
}
|
15058
|
-
function throwAndUnwindWorkLoop(
|
15099
|
+
function throwAndUnwindWorkLoop(
|
15100
|
+
root,
|
15101
|
+
unitOfWork,
|
15102
|
+
thrownValue,
|
15103
|
+
suspendedReason
|
15104
|
+
) {
|
15059
15105
|
resetContextDependencies();
|
15060
15106
|
resetHooksOnUnwind(unitOfWork);
|
15061
15107
|
thenableState$1 = null;
|
@@ -15089,9 +15135,25 @@
|
|
15089
15135
|
workInProgress = null;
|
15090
15136
|
return;
|
15091
15137
|
}
|
15092
|
-
unitOfWork.flags & 32768
|
15093
|
-
|
15094
|
-
|
15138
|
+
if (unitOfWork.flags & 32768) {
|
15139
|
+
if (isHydrating || suspendedReason === SuspendedOnError) root = !0;
|
15140
|
+
else if (
|
15141
|
+
workInProgressRootIsPrerendering ||
|
15142
|
+
0 !== (workInProgressRootRenderLanes & 536870912)
|
15143
|
+
)
|
15144
|
+
root = !1;
|
15145
|
+
else if (
|
15146
|
+
((workInProgressRootDidSkipSuspendedSiblings = root = !0),
|
15147
|
+
suspendedReason === SuspendedOnData ||
|
15148
|
+
suspendedReason === SuspendedOnImmediate ||
|
15149
|
+
suspendedReason === SuspendedOnDeprecatedThrowPromise)
|
15150
|
+
)
|
15151
|
+
(suspendedReason = suspenseHandlerStackCursor.current),
|
15152
|
+
null !== suspendedReason &&
|
15153
|
+
13 === suspendedReason.tag &&
|
15154
|
+
(suspendedReason.flags |= 16384);
|
15155
|
+
unwindUnitOfWork(unitOfWork, root);
|
15156
|
+
} else completeUnitOfWork(unitOfWork);
|
15095
15157
|
}
|
15096
15158
|
function completeUnitOfWork(unitOfWork) {
|
15097
15159
|
var completedWork = unitOfWork;
|
@@ -15158,7 +15220,7 @@
|
|
15158
15220
|
}
|
15159
15221
|
workInProgress = unitOfWork = next;
|
15160
15222
|
} while (null !== unitOfWork);
|
15161
|
-
workInProgressRootExitStatus =
|
15223
|
+
workInProgressRootExitStatus = RootSuspendedAtTheShell;
|
15162
15224
|
workInProgress = null;
|
15163
15225
|
}
|
15164
15226
|
function commitRoot(
|
@@ -15202,7 +15264,9 @@
|
|
15202
15264
|
transitions,
|
15203
15265
|
didIncludeRenderPhaseUpdate,
|
15204
15266
|
renderPriorityLevel,
|
15205
|
-
spawnedLane
|
15267
|
+
spawnedLane,
|
15268
|
+
updatedLanes,
|
15269
|
+
suspendedRetryLanes
|
15206
15270
|
) {
|
15207
15271
|
do flushPassiveEffects();
|
15208
15272
|
while (null !== rootWithPendingPassiveEffects);
|
@@ -15235,7 +15299,9 @@
|
|
15235
15299
|
root,
|
15236
15300
|
didIncludeRenderPhaseUpdate,
|
15237
15301
|
remainingLanes,
|
15238
|
-
spawnedLane
|
15302
|
+
spawnedLane,
|
15303
|
+
updatedLanes,
|
15304
|
+
suspendedRetryLanes
|
15239
15305
|
);
|
15240
15306
|
root === workInProgressRoot &&
|
15241
15307
|
((workInProgress = workInProgressRoot = null),
|
@@ -15252,35 +15318,39 @@
|
|
15252
15318
|
}));
|
15253
15319
|
commitStartTime = now();
|
15254
15320
|
transitions = 0 !== (finishedWork.flags & 15990);
|
15255
|
-
|
15256
|
-
transitions = ReactSharedInternals.T
|
15257
|
-
|
15258
|
-
|
15259
|
-
|
15260
|
-
|
15261
|
-
|
15262
|
-
|
15263
|
-
|
15264
|
-
|
15265
|
-
|
15266
|
-
selectionInformation = eventsEnabled = null;
|
15267
|
-
root.current = finishedWork;
|
15268
|
-
null !== injectedProfilingHooks &&
|
15269
|
-
"function" ===
|
15270
|
-
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15271
|
-
injectedProfilingHooks.markLayoutEffectsStarted(
|
15321
|
+
0 !== (finishedWork.subtreeFlags & 15990) || transitions
|
15322
|
+
? ((transitions = ReactSharedInternals.T),
|
15323
|
+
(ReactSharedInternals.T = null),
|
15324
|
+
(spawnedLane = ReactDOMSharedInternals.p),
|
15325
|
+
(ReactDOMSharedInternals.p = DiscreteEventPriority),
|
15326
|
+
(updatedLanes = executionContext),
|
15327
|
+
(executionContext |= CommitContext),
|
15328
|
+
commitBeforeMutationEffects(root, finishedWork),
|
15329
|
+
commitMutationEffects(
|
15330
|
+
root,
|
15331
|
+
finishedWork,
|
15272
15332
|
didIncludeRenderPhaseUpdate
|
15273
|
-
)
|
15274
|
-
|
15275
|
-
|
15276
|
-
|
15277
|
-
|
15278
|
-
injectedProfilingHooks
|
15279
|
-
|
15280
|
-
|
15281
|
-
|
15282
|
-
|
15283
|
-
|
15333
|
+
),
|
15334
|
+
restoreSelection(selectionInformation, root.containerInfo),
|
15335
|
+
(_enabled = !!eventsEnabled),
|
15336
|
+
(selectionInformation = eventsEnabled = null),
|
15337
|
+
(root.current = finishedWork),
|
15338
|
+
null !== injectedProfilingHooks &&
|
15339
|
+
"function" ===
|
15340
|
+
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15341
|
+
injectedProfilingHooks.markLayoutEffectsStarted(
|
15342
|
+
didIncludeRenderPhaseUpdate
|
15343
|
+
),
|
15344
|
+
commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
|
15345
|
+
null !== injectedProfilingHooks &&
|
15346
|
+
"function" ===
|
15347
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15348
|
+
injectedProfilingHooks.markLayoutEffectsStopped(),
|
15349
|
+
requestPaint(),
|
15350
|
+
(executionContext = updatedLanes),
|
15351
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
15352
|
+
(ReactSharedInternals.T = transitions))
|
15353
|
+
: (root.current = finishedWork);
|
15284
15354
|
(transitions = rootDoesHavePassiveEffects)
|
15285
15355
|
? ((rootDoesHavePassiveEffects = !1),
|
15286
15356
|
(rootWithPendingPassiveEffects = root),
|
@@ -15798,43 +15868,45 @@
|
|
15798
15868
|
(root.callbackNode = null),
|
15799
15869
|
(root.callbackPriority = 0)
|
15800
15870
|
);
|
15801
|
-
if (0 !== (suspendedLanes & 3))
|
15802
|
-
return (
|
15803
|
-
null !== pingedLanes && cancelCallback(pingedLanes),
|
15804
|
-
(root.callbackPriority = 2),
|
15805
|
-
(root.callbackNode = null),
|
15806
|
-
2
|
15807
|
-
);
|
15808
|
-
currentTime = suspendedLanes & -suspendedLanes;
|
15809
15871
|
if (
|
15810
|
-
|
15811
|
-
(
|
15812
|
-
|
15813
|
-
|
15814
|
-
|
15815
|
-
|
15816
|
-
|
15817
|
-
|
15818
|
-
|
15819
|
-
|
15820
|
-
|
15821
|
-
|
15822
|
-
|
15823
|
-
|
15824
|
-
|
15825
|
-
|
15826
|
-
|
15827
|
-
|
15828
|
-
|
15829
|
-
|
15830
|
-
|
15831
|
-
|
15832
|
-
|
15833
|
-
|
15834
|
-
|
15835
|
-
|
15836
|
-
|
15837
|
-
|
15872
|
+
0 === (suspendedLanes & 3) ||
|
15873
|
+
checkIfRootIsPrerendering(root, suspendedLanes)
|
15874
|
+
) {
|
15875
|
+
currentTime = suspendedLanes & -suspendedLanes;
|
15876
|
+
if (
|
15877
|
+
currentTime !== root.callbackPriority ||
|
15878
|
+
(null !== ReactSharedInternals.actQueue &&
|
15879
|
+
pingedLanes !== fakeActCallbackNode)
|
15880
|
+
)
|
15881
|
+
cancelCallback(pingedLanes);
|
15882
|
+
else return currentTime;
|
15883
|
+
switch (lanesToEventPriority(suspendedLanes)) {
|
15884
|
+
case DiscreteEventPriority:
|
15885
|
+
case ContinuousEventPriority:
|
15886
|
+
suspendedLanes = UserBlockingPriority;
|
15887
|
+
break;
|
15888
|
+
case DefaultEventPriority:
|
15889
|
+
suspendedLanes = NormalPriority$1;
|
15890
|
+
break;
|
15891
|
+
case IdleEventPriority:
|
15892
|
+
suspendedLanes = IdlePriority;
|
15893
|
+
break;
|
15894
|
+
default:
|
15895
|
+
suspendedLanes = NormalPriority$1;
|
15896
|
+
}
|
15897
|
+
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
|
15898
|
+
null !== ReactSharedInternals.actQueue
|
15899
|
+
? (ReactSharedInternals.actQueue.push(pingedLanes),
|
15900
|
+
(suspendedLanes = fakeActCallbackNode))
|
15901
|
+
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
|
15902
|
+
root.callbackPriority = currentTime;
|
15903
|
+
root.callbackNode = suspendedLanes;
|
15904
|
+
return currentTime;
|
15905
|
+
}
|
15906
|
+
null !== pingedLanes && cancelCallback(pingedLanes);
|
15907
|
+
root.callbackPriority = 2;
|
15908
|
+
root.callbackNode = null;
|
15909
|
+
return 2;
|
15838
15910
|
}
|
15839
15911
|
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
|
15840
15912
|
nestedUpdateScheduled = currentUpdateIsNested = !1;
|
@@ -19748,7 +19820,7 @@
|
|
19748
19820
|
) {
|
19749
19821
|
outsideHostContainerContext &&
|
19750
19822
|
console.error(
|
19751
|
-
'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
|
19823
|
+
'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"`.'
|
19752
19824
|
);
|
19753
19825
|
break;
|
19754
19826
|
}
|
@@ -23842,8 +23914,8 @@
|
|
23842
23914
|
RootErrored = 2,
|
23843
23915
|
RootSuspended = 3,
|
23844
23916
|
RootSuspendedWithDelay = 4,
|
23917
|
+
RootSuspendedAtTheShell = 6,
|
23845
23918
|
RootCompleted = 5,
|
23846
|
-
RootDidNotComplete = 6,
|
23847
23919
|
executionContext = NoContext,
|
23848
23920
|
workInProgressRoot = null,
|
23849
23921
|
workInProgress = null,
|
@@ -23860,6 +23932,7 @@
|
|
23860
23932
|
workInProgressSuspendedReason = NotSuspended,
|
23861
23933
|
workInProgressThrownValue = null,
|
23862
23934
|
workInProgressRootDidSkipSuspendedSiblings = !1,
|
23935
|
+
workInProgressRootIsPrerendering = !1,
|
23863
23936
|
workInProgressRootDidAttachPingListener = !1,
|
23864
23937
|
entangledRenderLanes = 0,
|
23865
23938
|
workInProgressRootExitStatus = RootInProgress,
|
@@ -24438,11 +24511,11 @@
|
|
24438
24511
|
};
|
24439
24512
|
(function () {
|
24440
24513
|
var isomorphicReactPackageVersion = React.version;
|
24441
|
-
if ("19.0.0-rc-
|
24514
|
+
if ("19.0.0-rc-e1ef8c95-20241115" !== isomorphicReactPackageVersion)
|
24442
24515
|
throw Error(
|
24443
24516
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24444
24517
|
(isomorphicReactPackageVersion +
|
24445
|
-
"\n - react-dom: 19.0.0-rc-
|
24518
|
+
"\n - react-dom: 19.0.0-rc-e1ef8c95-20241115\nLearn more: https://react.dev/warnings/version-mismatch")
|
24446
24519
|
);
|
24447
24520
|
})();
|
24448
24521
|
("function" === typeof Map &&
|
@@ -24479,11 +24552,11 @@
|
|
24479
24552
|
!(function () {
|
24480
24553
|
var internals = {
|
24481
24554
|
bundleType: 1,
|
24482
|
-
version: "19.0.0-rc-
|
24555
|
+
version: "19.0.0-rc-e1ef8c95-20241115",
|
24483
24556
|
rendererPackageName: "react-dom",
|
24484
24557
|
currentDispatcherRef: ReactSharedInternals,
|
24485
24558
|
findFiberByHostInstance: getClosestInstanceFromNode,
|
24486
|
-
reconcilerVersion: "19.0.0-rc-
|
24559
|
+
reconcilerVersion: "19.0.0-rc-e1ef8c95-20241115"
|
24487
24560
|
};
|
24488
24561
|
internals.overrideHookState = overrideHookState;
|
24489
24562
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -24627,7 +24700,7 @@
|
|
24627
24700
|
listenToAllSupportedEvents(container);
|
24628
24701
|
return new ReactDOMHydrationRoot(initialChildren);
|
24629
24702
|
};
|
24630
|
-
exports.version = "19.0.0-rc-
|
24703
|
+
exports.version = "19.0.0-rc-e1ef8c95-20241115";
|
24631
24704
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
24632
24705
|
"function" ===
|
24633
24706
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|