react-dom 19.0.0-rc-7ac8e612-20241113 → 19.0.0-rc-b01722d5-20241114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-client.development.js +394 -313
- package/cjs/react-dom-client.production.js +454 -383
- package/cjs/react-dom-profiling.development.js +394 -313
- package/cjs/react-dom-profiling.profiling.js +495 -426
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +3 -3
- package/cjs/react-dom-server.node.production.js +3 -3
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -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,25 +14316,36 @@
|
|
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
|
-
|
14337
|
+
if (exitStatus === RootInProgress) {
|
14338
|
+
workInProgressRootIsPrerendering &&
|
14339
|
+
!shouldTimeSlice &&
|
14340
|
+
markRootSuspended(root, lanes, 0, !1);
|
14341
|
+
break;
|
14342
|
+
} else if (exitStatus === RootDidNotComplete)
|
14343
|
+
markRootSuspended(
|
14344
|
+
root,
|
14345
|
+
lanes,
|
14346
|
+
0,
|
14347
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14348
|
+
);
|
14304
14349
|
else {
|
14305
14350
|
forceSync = root.current.alternate;
|
14306
14351
|
if (
|
@@ -14365,11 +14410,11 @@
|
|
14365
14410
|
}
|
14366
14411
|
if (exitStatus === RootFatalErrored) {
|
14367
14412
|
prepareFreshStack(root, 0);
|
14368
|
-
markRootSuspended(root, lanes, 0);
|
14413
|
+
markRootSuspended(root, lanes, 0, !0);
|
14369
14414
|
break;
|
14370
14415
|
}
|
14371
14416
|
a: {
|
14372
|
-
|
14417
|
+
shouldTimeSlice = root;
|
14373
14418
|
switch (exitStatus) {
|
14374
14419
|
case RootInProgress:
|
14375
14420
|
case RootFatalErrored:
|
@@ -14377,9 +14422,10 @@
|
|
14377
14422
|
case RootSuspendedWithDelay:
|
14378
14423
|
if ((lanes & 4194176) === lanes) {
|
14379
14424
|
markRootSuspended(
|
14380
|
-
|
14425
|
+
shouldTimeSlice,
|
14381
14426
|
lanes,
|
14382
|
-
workInProgressDeferredLane
|
14427
|
+
workInProgressDeferredLane,
|
14428
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14383
14429
|
);
|
14384
14430
|
break a;
|
14385
14431
|
}
|
@@ -14393,11 +14439,11 @@
|
|
14393
14439
|
default:
|
14394
14440
|
throw Error("Unknown root exit status.");
|
14395
14441
|
}
|
14396
|
-
|
14397
|
-
|
14442
|
+
shouldTimeSlice.finishedWork = forceSync;
|
14443
|
+
shouldTimeSlice.finishedLanes = lanes;
|
14398
14444
|
if (null !== ReactSharedInternals.actQueue)
|
14399
14445
|
commitRoot(
|
14400
|
-
|
14446
|
+
shouldTimeSlice,
|
14401
14447
|
workInProgressRootRecoverableErrors,
|
14402
14448
|
workInProgressTransitions,
|
14403
14449
|
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
@@ -14418,15 +14464,16 @@
|
|
14418
14464
|
10 < exitStatus)
|
14419
14465
|
) {
|
14420
14466
|
markRootSuspended(
|
14421
|
-
|
14467
|
+
shouldTimeSlice,
|
14422
14468
|
lanes,
|
14423
|
-
workInProgressDeferredLane
|
14469
|
+
workInProgressDeferredLane,
|
14470
|
+
!workInProgressRootDidSkipSuspendedSiblings
|
14424
14471
|
);
|
14425
|
-
if (0 !== getNextLanes(
|
14426
|
-
|
14472
|
+
if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
|
14473
|
+
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
14427
14474
|
commitRootWhenReady.bind(
|
14428
14475
|
null,
|
14429
|
-
|
14476
|
+
shouldTimeSlice,
|
14430
14477
|
forceSync,
|
14431
14478
|
workInProgressRootRecoverableErrors,
|
14432
14479
|
workInProgressTransitions,
|
@@ -14445,7 +14492,7 @@
|
|
14445
14492
|
break a;
|
14446
14493
|
}
|
14447
14494
|
commitRootWhenReady(
|
14448
|
-
|
14495
|
+
shouldTimeSlice,
|
14449
14496
|
forceSync,
|
14450
14497
|
workInProgressRootRecoverableErrors,
|
14451
14498
|
workInProgressTransitions,
|
@@ -14489,11 +14536,8 @@
|
|
14489
14536
|
completedRenderStartTime,
|
14490
14537
|
completedRenderEndTime
|
14491
14538
|
) {
|
14492
|
-
|
14493
|
-
if (
|
14494
|
-
didSkipSuspendedSiblings & 8192 ||
|
14495
|
-
16785408 === (didSkipSuspendedSiblings & 16785408)
|
14496
|
-
)
|
14539
|
+
var subtreeFlags = finishedWork.subtreeFlags;
|
14540
|
+
if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
|
14497
14541
|
if (
|
14498
14542
|
((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
|
14499
14543
|
accumulateSuspenseyCommitOnFiber(finishedWork),
|
@@ -14515,7 +14559,12 @@
|
|
14515
14559
|
completedRenderEndTime
|
14516
14560
|
)
|
14517
14561
|
);
|
14518
|
-
markRootSuspended(
|
14562
|
+
markRootSuspended(
|
14563
|
+
root,
|
14564
|
+
lanes,
|
14565
|
+
spawnedLane,
|
14566
|
+
!didSkipSuspendedSiblings
|
14567
|
+
);
|
14519
14568
|
return;
|
14520
14569
|
}
|
14521
14570
|
commitRoot(
|
@@ -14565,19 +14614,22 @@
|
|
14565
14614
|
}
|
14566
14615
|
return !0;
|
14567
14616
|
}
|
14568
|
-
function markRootSuspended(
|
14617
|
+
function markRootSuspended(
|
14618
|
+
root,
|
14619
|
+
suspendedLanes,
|
14620
|
+
spawnedLane,
|
14621
|
+
didAttemptEntireTree
|
14622
|
+
) {
|
14569
14623
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
14570
14624
|
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
14571
14625
|
root.suspendedLanes |= suspendedLanes;
|
14572
14626
|
root.pingedLanes &= ~suspendedLanes;
|
14573
|
-
|
14574
|
-
|
14575
|
-
|
14576
|
-
|
14577
|
-
) {
|
14627
|
+
didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
|
14628
|
+
didAttemptEntireTree = root.expirationTimes;
|
14629
|
+
for (var lanes = suspendedLanes; 0 < lanes; ) {
|
14578
14630
|
var index = 31 - clz32(lanes),
|
14579
14631
|
lane = 1 << index;
|
14580
|
-
|
14632
|
+
didAttemptEntireTree[index] = -1;
|
14581
14633
|
lanes &= ~lane;
|
14582
14634
|
}
|
14583
14635
|
0 !== spawnedLane &&
|
@@ -14621,7 +14673,7 @@
|
|
14621
14673
|
workInProgressSuspendedReason = NotSuspended;
|
14622
14674
|
workInProgressThrownValue = null;
|
14623
14675
|
workInProgressRootDidSkipSuspendedSiblings = !1;
|
14624
|
-
checkIfRootIsPrerendering(root, lanes);
|
14676
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
|
14625
14677
|
workInProgressRootDidAttachPingListener = !1;
|
14626
14678
|
workInProgressRootExitStatus = RootInProgress;
|
14627
14679
|
workInProgressSuspendedRetryLanes =
|
@@ -14659,12 +14711,7 @@
|
|
14659
14711
|
current = null;
|
14660
14712
|
thrownValue === SuspenseException
|
14661
14713
|
? ((thrownValue = getSuspendedThenable()),
|
14662
|
-
(workInProgressSuspendedReason =
|
14663
|
-
shouldRemainOnPreviousScreen() &&
|
14664
|
-
0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14665
|
-
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
|
14666
|
-
? SuspendedOnData
|
14667
|
-
: SuspendedOnImmediate))
|
14714
|
+
(workInProgressSuspendedReason = SuspendedOnImmediate))
|
14668
14715
|
: thrownValue === SuspenseyCommitException
|
14669
14716
|
? ((thrownValue = getSuspendedThenable()),
|
14670
14717
|
(workInProgressSuspendedReason = SuspendedOnInstance))
|
@@ -14715,21 +14762,6 @@
|
|
14715
14762
|
);
|
14716
14763
|
}
|
14717
14764
|
}
|
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
14765
|
function pushDispatcher() {
|
14734
14766
|
var prevDispatcher = ReactSharedInternals.H;
|
14735
14767
|
ReactSharedInternals.H = ContextOnlyDispatcher;
|
@@ -14742,16 +14774,22 @@
|
|
14742
14774
|
}
|
14743
14775
|
function renderDidSuspendDelayIfPossible() {
|
14744
14776
|
workInProgressRootExitStatus = RootSuspendedWithDelay;
|
14777
|
+
workInProgressRootDidSkipSuspendedSiblings ||
|
14778
|
+
((workInProgressRootRenderLanes & 4194176) !==
|
14779
|
+
workInProgressRootRenderLanes &&
|
14780
|
+
null !== suspenseHandlerStackCursor.current) ||
|
14781
|
+
(workInProgressRootIsPrerendering = !0);
|
14745
14782
|
(0 === (workInProgressRootSkippedLanes & 134217727) &&
|
14746
14783
|
0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
|
14747
14784
|
null === workInProgressRoot ||
|
14748
14785
|
markRootSuspended(
|
14749
14786
|
workInProgressRoot,
|
14750
14787
|
workInProgressRootRenderLanes,
|
14751
|
-
workInProgressDeferredLane
|
14788
|
+
workInProgressDeferredLane,
|
14789
|
+
!1
|
14752
14790
|
);
|
14753
14791
|
}
|
14754
|
-
function renderRootSync(root, lanes) {
|
14792
|
+
function renderRootSync(root, lanes, shouldYieldForPrerendering) {
|
14755
14793
|
var prevExecutionContext = executionContext;
|
14756
14794
|
executionContext |= RenderContext;
|
14757
14795
|
var prevDispatcher = pushDispatcher(),
|
@@ -14794,6 +14832,13 @@
|
|
14794
14832
|
workInProgressSuspendedReason = NotSuspended;
|
14795
14833
|
workInProgressThrownValue = null;
|
14796
14834
|
throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
|
14835
|
+
if (
|
14836
|
+
shouldYieldForPrerendering &&
|
14837
|
+
workInProgressRootIsPrerendering
|
14838
|
+
) {
|
14839
|
+
memoizedUpdaters = RootInProgress;
|
14840
|
+
break a;
|
14841
|
+
}
|
14797
14842
|
break;
|
14798
14843
|
default:
|
14799
14844
|
(reason = workInProgressSuspendedReason),
|
@@ -14843,7 +14888,11 @@
|
|
14843
14888
|
workInProgressTransitions = null;
|
14844
14889
|
workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
|
14845
14890
|
prepareFreshStack(root, lanes);
|
14846
|
-
} else
|
14891
|
+
} else
|
14892
|
+
workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
|
14893
|
+
root,
|
14894
|
+
lanes
|
14895
|
+
);
|
14847
14896
|
markRenderStarted(lanes);
|
14848
14897
|
a: do
|
14849
14898
|
try {
|
@@ -15055,7 +15104,12 @@
|
|
15055
15104
|
stopProfilerTimerIfRunningAndRecordDuration(unitOfWork);
|
15056
15105
|
return current;
|
15057
15106
|
}
|
15058
|
-
function throwAndUnwindWorkLoop(
|
15107
|
+
function throwAndUnwindWorkLoop(
|
15108
|
+
root,
|
15109
|
+
unitOfWork,
|
15110
|
+
thrownValue,
|
15111
|
+
suspendedReason
|
15112
|
+
) {
|
15059
15113
|
resetContextDependencies();
|
15060
15114
|
resetHooksOnUnwind(unitOfWork);
|
15061
15115
|
thenableState$1 = null;
|
@@ -15089,9 +15143,25 @@
|
|
15089
15143
|
workInProgress = null;
|
15090
15144
|
return;
|
15091
15145
|
}
|
15092
|
-
unitOfWork.flags & 32768
|
15093
|
-
|
15094
|
-
|
15146
|
+
if (unitOfWork.flags & 32768) {
|
15147
|
+
if (isHydrating || suspendedReason === SuspendedOnError) root = !0;
|
15148
|
+
else if (
|
15149
|
+
workInProgressRootIsPrerendering ||
|
15150
|
+
0 !== (workInProgressRootRenderLanes & 536870912)
|
15151
|
+
)
|
15152
|
+
root = !1;
|
15153
|
+
else if (
|
15154
|
+
((workInProgressRootDidSkipSuspendedSiblings = root = !0),
|
15155
|
+
suspendedReason === SuspendedOnData ||
|
15156
|
+
suspendedReason === SuspendedOnImmediate ||
|
15157
|
+
suspendedReason === SuspendedOnDeprecatedThrowPromise)
|
15158
|
+
)
|
15159
|
+
(suspendedReason = suspenseHandlerStackCursor.current),
|
15160
|
+
null !== suspendedReason &&
|
15161
|
+
13 === suspendedReason.tag &&
|
15162
|
+
(suspendedReason.flags |= 16384);
|
15163
|
+
unwindUnitOfWork(unitOfWork, root);
|
15164
|
+
} else completeUnitOfWork(unitOfWork);
|
15095
15165
|
}
|
15096
15166
|
function completeUnitOfWork(unitOfWork) {
|
15097
15167
|
var completedWork = unitOfWork;
|
@@ -15202,7 +15272,9 @@
|
|
15202
15272
|
transitions,
|
15203
15273
|
didIncludeRenderPhaseUpdate,
|
15204
15274
|
renderPriorityLevel,
|
15205
|
-
spawnedLane
|
15275
|
+
spawnedLane,
|
15276
|
+
updatedLanes,
|
15277
|
+
suspendedRetryLanes
|
15206
15278
|
) {
|
15207
15279
|
do flushPassiveEffects();
|
15208
15280
|
while (null !== rootWithPendingPassiveEffects);
|
@@ -15235,7 +15307,9 @@
|
|
15235
15307
|
root,
|
15236
15308
|
didIncludeRenderPhaseUpdate,
|
15237
15309
|
remainingLanes,
|
15238
|
-
spawnedLane
|
15310
|
+
spawnedLane,
|
15311
|
+
updatedLanes,
|
15312
|
+
suspendedRetryLanes
|
15239
15313
|
);
|
15240
15314
|
root === workInProgressRoot &&
|
15241
15315
|
((workInProgress = workInProgressRoot = null),
|
@@ -15252,35 +15326,39 @@
|
|
15252
15326
|
}));
|
15253
15327
|
commitStartTime = now();
|
15254
15328
|
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(
|
15329
|
+
0 !== (finishedWork.subtreeFlags & 15990) || transitions
|
15330
|
+
? ((transitions = ReactSharedInternals.T),
|
15331
|
+
(ReactSharedInternals.T = null),
|
15332
|
+
(spawnedLane = ReactDOMSharedInternals.p),
|
15333
|
+
(ReactDOMSharedInternals.p = DiscreteEventPriority),
|
15334
|
+
(updatedLanes = executionContext),
|
15335
|
+
(executionContext |= CommitContext),
|
15336
|
+
commitBeforeMutationEffects(root, finishedWork),
|
15337
|
+
commitMutationEffects(
|
15338
|
+
root,
|
15339
|
+
finishedWork,
|
15272
15340
|
didIncludeRenderPhaseUpdate
|
15273
|
-
)
|
15274
|
-
|
15275
|
-
|
15276
|
-
|
15277
|
-
|
15278
|
-
injectedProfilingHooks
|
15279
|
-
|
15280
|
-
|
15281
|
-
|
15282
|
-
|
15283
|
-
|
15341
|
+
),
|
15342
|
+
restoreSelection(selectionInformation, root.containerInfo),
|
15343
|
+
(_enabled = !!eventsEnabled),
|
15344
|
+
(selectionInformation = eventsEnabled = null),
|
15345
|
+
(root.current = finishedWork),
|
15346
|
+
null !== injectedProfilingHooks &&
|
15347
|
+
"function" ===
|
15348
|
+
typeof injectedProfilingHooks.markLayoutEffectsStarted &&
|
15349
|
+
injectedProfilingHooks.markLayoutEffectsStarted(
|
15350
|
+
didIncludeRenderPhaseUpdate
|
15351
|
+
),
|
15352
|
+
commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
|
15353
|
+
null !== injectedProfilingHooks &&
|
15354
|
+
"function" ===
|
15355
|
+
typeof injectedProfilingHooks.markLayoutEffectsStopped &&
|
15356
|
+
injectedProfilingHooks.markLayoutEffectsStopped(),
|
15357
|
+
requestPaint(),
|
15358
|
+
(executionContext = updatedLanes),
|
15359
|
+
(ReactDOMSharedInternals.p = spawnedLane),
|
15360
|
+
(ReactSharedInternals.T = transitions))
|
15361
|
+
: (root.current = finishedWork);
|
15284
15362
|
(transitions = rootDoesHavePassiveEffects)
|
15285
15363
|
? ((rootDoesHavePassiveEffects = !1),
|
15286
15364
|
(rootWithPendingPassiveEffects = root),
|
@@ -15798,43 +15876,45 @@
|
|
15798
15876
|
(root.callbackNode = null),
|
15799
15877
|
(root.callbackPriority = 0)
|
15800
15878
|
);
|
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
15879
|
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
|
-
|
15880
|
+
0 === (suspendedLanes & 3) ||
|
15881
|
+
checkIfRootIsPrerendering(root, suspendedLanes)
|
15882
|
+
) {
|
15883
|
+
currentTime = suspendedLanes & -suspendedLanes;
|
15884
|
+
if (
|
15885
|
+
currentTime !== root.callbackPriority ||
|
15886
|
+
(null !== ReactSharedInternals.actQueue &&
|
15887
|
+
pingedLanes !== fakeActCallbackNode)
|
15888
|
+
)
|
15889
|
+
cancelCallback(pingedLanes);
|
15890
|
+
else return currentTime;
|
15891
|
+
switch (lanesToEventPriority(suspendedLanes)) {
|
15892
|
+
case DiscreteEventPriority:
|
15893
|
+
case ContinuousEventPriority:
|
15894
|
+
suspendedLanes = UserBlockingPriority;
|
15895
|
+
break;
|
15896
|
+
case DefaultEventPriority:
|
15897
|
+
suspendedLanes = NormalPriority$1;
|
15898
|
+
break;
|
15899
|
+
case IdleEventPriority:
|
15900
|
+
suspendedLanes = IdlePriority;
|
15901
|
+
break;
|
15902
|
+
default:
|
15903
|
+
suspendedLanes = NormalPriority$1;
|
15904
|
+
}
|
15905
|
+
pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
|
15906
|
+
null !== ReactSharedInternals.actQueue
|
15907
|
+
? (ReactSharedInternals.actQueue.push(pingedLanes),
|
15908
|
+
(suspendedLanes = fakeActCallbackNode))
|
15909
|
+
: (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
|
15910
|
+
root.callbackPriority = currentTime;
|
15911
|
+
root.callbackNode = suspendedLanes;
|
15912
|
+
return currentTime;
|
15913
|
+
}
|
15914
|
+
null !== pingedLanes && cancelCallback(pingedLanes);
|
15915
|
+
root.callbackPriority = 2;
|
15916
|
+
root.callbackNode = null;
|
15917
|
+
return 2;
|
15838
15918
|
}
|
15839
15919
|
function performWorkOnRootViaSchedulerTask(root, didTimeout) {
|
15840
15920
|
nestedUpdateScheduled = currentUpdateIsNested = !1;
|
@@ -23860,6 +23940,7 @@
|
|
23860
23940
|
workInProgressSuspendedReason = NotSuspended,
|
23861
23941
|
workInProgressThrownValue = null,
|
23862
23942
|
workInProgressRootDidSkipSuspendedSiblings = !1,
|
23943
|
+
workInProgressRootIsPrerendering = !1,
|
23863
23944
|
workInProgressRootDidAttachPingListener = !1,
|
23864
23945
|
entangledRenderLanes = 0,
|
23865
23946
|
workInProgressRootExitStatus = RootInProgress,
|
@@ -24438,11 +24519,11 @@
|
|
24438
24519
|
};
|
24439
24520
|
(function () {
|
24440
24521
|
var isomorphicReactPackageVersion = React.version;
|
24441
|
-
if ("19.0.0-rc-
|
24522
|
+
if ("19.0.0-rc-b01722d5-20241114" !== isomorphicReactPackageVersion)
|
24442
24523
|
throw Error(
|
24443
24524
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
24444
24525
|
(isomorphicReactPackageVersion +
|
24445
|
-
"\n - react-dom: 19.0.0-rc-
|
24526
|
+
"\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch")
|
24446
24527
|
);
|
24447
24528
|
})();
|
24448
24529
|
("function" === typeof Map &&
|
@@ -24479,11 +24560,11 @@
|
|
24479
24560
|
!(function () {
|
24480
24561
|
var internals = {
|
24481
24562
|
bundleType: 1,
|
24482
|
-
version: "19.0.0-rc-
|
24563
|
+
version: "19.0.0-rc-b01722d5-20241114",
|
24483
24564
|
rendererPackageName: "react-dom",
|
24484
24565
|
currentDispatcherRef: ReactSharedInternals,
|
24485
24566
|
findFiberByHostInstance: getClosestInstanceFromNode,
|
24486
|
-
reconcilerVersion: "19.0.0-rc-
|
24567
|
+
reconcilerVersion: "19.0.0-rc-b01722d5-20241114"
|
24487
24568
|
};
|
24488
24569
|
internals.overrideHookState = overrideHookState;
|
24489
24570
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -24627,7 +24708,7 @@
|
|
24627
24708
|
listenToAllSupportedEvents(container);
|
24628
24709
|
return new ReactDOMHydrationRoot(initialChildren);
|
24629
24710
|
};
|
24630
|
-
exports.version = "19.0.0-rc-
|
24711
|
+
exports.version = "19.0.0-rc-b01722d5-20241114";
|
24631
24712
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
24632
24713
|
"function" ===
|
24633
24714
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|