react-dom 19.1.0-canary-0a82580b-20250203 → 19.1.0-canary-ff628334-20250205
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 +377 -361
- package/cjs/react-dom-client.production.js +214 -191
- package/cjs/react-dom-profiling.development.js +377 -361
- package/cjs/react-dom-profiling.profiling.js +214 -191
- package/cjs/react-dom-server-legacy.browser.development.js +73 -28
- package/cjs/react-dom-server-legacy.browser.production.js +97 -52
- package/cjs/react-dom-server-legacy.node.development.js +73 -28
- package/cjs/react-dom-server-legacy.node.production.js +97 -52
- package/cjs/react-dom-server.browser.development.js +90 -38
- package/cjs/react-dom-server.browser.production.js +94 -39
- package/cjs/react-dom-server.bun.development.js +91 -37
- package/cjs/react-dom-server.bun.production.js +94 -42
- package/cjs/react-dom-server.edge.development.js +90 -38
- package/cjs/react-dom-server.edge.production.js +97 -42
- package/cjs/react-dom-server.node.development.js +90 -38
- package/cjs/react-dom-server.node.production.js +97 -42
- 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
@@ -1017,7 +1017,12 @@
|
|
1017
1017
|
};
|
1018
1018
|
}
|
1019
1019
|
function createPreambleState() {
|
1020
|
-
return {
|
1020
|
+
return {
|
1021
|
+
htmlChunks: null,
|
1022
|
+
headChunks: null,
|
1023
|
+
bodyChunks: null,
|
1024
|
+
contribution: NoContribution
|
1025
|
+
};
|
1021
1026
|
}
|
1022
1027
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
1023
1028
|
return {
|
@@ -1759,6 +1764,29 @@
|
|
1759
1764
|
target.push(endChunkForTag("script"));
|
1760
1765
|
return null;
|
1761
1766
|
}
|
1767
|
+
function pushStartSingletonElement(target, props, tag) {
|
1768
|
+
target.push(startChunkForTag(tag));
|
1769
|
+
var innerHTML = (tag = null),
|
1770
|
+
propKey;
|
1771
|
+
for (propKey in props)
|
1772
|
+
if (hasOwnProperty.call(props, propKey)) {
|
1773
|
+
var propValue = props[propKey];
|
1774
|
+
if (null != propValue)
|
1775
|
+
switch (propKey) {
|
1776
|
+
case "children":
|
1777
|
+
tag = propValue;
|
1778
|
+
break;
|
1779
|
+
case "dangerouslySetInnerHTML":
|
1780
|
+
innerHTML = propValue;
|
1781
|
+
break;
|
1782
|
+
default:
|
1783
|
+
pushAttribute(target, propKey, propValue);
|
1784
|
+
}
|
1785
|
+
}
|
1786
|
+
target.push(endOfStartTag);
|
1787
|
+
pushInnerHTML(target, innerHTML, tag);
|
1788
|
+
return tag;
|
1789
|
+
}
|
1762
1790
|
function pushStartGenericElement(target, props, tag) {
|
1763
1791
|
target.push(startChunkForTag(tag));
|
1764
1792
|
var innerHTML = (tag = null),
|
@@ -2973,7 +3001,7 @@
|
|
2973
3001
|
if (preamble.headChunks)
|
2974
3002
|
throw Error("The `<head>` tag may only be rendered once.");
|
2975
3003
|
preamble.headChunks = [];
|
2976
|
-
var JSCompiler_inline_result$jscomp$9 =
|
3004
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
2977
3005
|
preamble.headChunks,
|
2978
3006
|
props,
|
2979
3007
|
"head"
|
@@ -2991,7 +3019,7 @@
|
|
2991
3019
|
if (preamble$jscomp$0.bodyChunks)
|
2992
3020
|
throw Error("The `<body>` tag may only be rendered once.");
|
2993
3021
|
preamble$jscomp$0.bodyChunks = [];
|
2994
|
-
var JSCompiler_inline_result$jscomp$10 =
|
3022
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
2995
3023
|
preamble$jscomp$0.bodyChunks,
|
2996
3024
|
props,
|
2997
3025
|
"body"
|
@@ -3009,7 +3037,7 @@
|
|
3009
3037
|
if (preamble$jscomp$1.htmlChunks)
|
3010
3038
|
throw Error("The `<html>` tag may only be rendered once.");
|
3011
3039
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
3012
|
-
var JSCompiler_inline_result$jscomp$11 =
|
3040
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
3013
3041
|
preamble$jscomp$1.htmlChunks,
|
3014
3042
|
props,
|
3015
3043
|
"html"
|
@@ -3093,11 +3121,17 @@
|
|
3093
3121
|
function hoistPreambleState(renderState, preambleState) {
|
3094
3122
|
renderState = renderState.preamble;
|
3095
3123
|
null === renderState.htmlChunks &&
|
3096
|
-
|
3124
|
+
preambleState.htmlChunks &&
|
3125
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
3126
|
+
(preambleState.contribution |= 1));
|
3097
3127
|
null === renderState.headChunks &&
|
3098
|
-
|
3128
|
+
preambleState.headChunks &&
|
3129
|
+
((renderState.headChunks = preambleState.headChunks),
|
3130
|
+
(preambleState.contribution |= 4));
|
3099
3131
|
null === renderState.bodyChunks &&
|
3100
|
-
|
3132
|
+
preambleState.bodyChunks &&
|
3133
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
3134
|
+
(preambleState.contribution |= 2));
|
3101
3135
|
}
|
3102
3136
|
function writeBootstrap(destination, renderState) {
|
3103
3137
|
renderState = renderState.bootstrapChunks;
|
@@ -3119,6 +3153,13 @@
|
|
3119
3153
|
writeChunk(destination, stringToChunk(id.toString(16)));
|
3120
3154
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
3121
3155
|
}
|
3156
|
+
function writePreambleContribution(destination, preambleState) {
|
3157
|
+
preambleState = preambleState.contribution;
|
3158
|
+
preambleState !== NoContribution &&
|
3159
|
+
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
3160
|
+
writeChunk(destination, stringToChunk("" + preambleState)),
|
3161
|
+
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
3162
|
+
}
|
3122
3163
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
3123
3164
|
switch (formatContext.insertionMode) {
|
3124
3165
|
case ROOT_HTML_MODE:
|
@@ -6956,8 +6997,8 @@
|
|
6956
6997
|
if (boundary.status === CLIENT_RENDERED) {
|
6957
6998
|
var errorDigest = boundary.errorDigest,
|
6958
6999
|
errorMessage = boundary.errorMessage,
|
6959
|
-
errorStack = boundary.errorStack
|
6960
|
-
|
7000
|
+
errorStack = boundary.errorStack,
|
7001
|
+
errorComponentStack = boundary.errorComponentStack;
|
6961
7002
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
6962
7003
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
6963
7004
|
errorDigest &&
|
@@ -6990,11 +7031,11 @@
|
|
6990
7031
|
destination,
|
6991
7032
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
6992
7033
|
));
|
6993
|
-
|
7034
|
+
errorComponentStack &&
|
6994
7035
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1D),
|
6995
7036
|
writeChunk(
|
6996
7037
|
destination,
|
6997
|
-
stringToChunk(escapeTextForBrowser(
|
7038
|
+
stringToChunk(escapeTextForBrowser(errorComponentStack))
|
6998
7039
|
),
|
6999
7040
|
writeChunk(
|
7000
7041
|
destination,
|
@@ -7002,9 +7043,14 @@
|
|
7002
7043
|
));
|
7003
7044
|
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
7004
7045
|
flushSubtree(request, destination, segment, hoistableState);
|
7005
|
-
|
7006
|
-
|
7007
|
-
|
7046
|
+
(request = boundary.fallbackPreamble) &&
|
7047
|
+
writePreambleContribution(destination, request);
|
7048
|
+
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
7049
|
+
}
|
7050
|
+
if (boundary.status !== COMPLETED)
|
7051
|
+
return (
|
7052
|
+
boundary.status === PENDING &&
|
7053
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
7008
7054
|
0 < boundary.completedSegments.length &&
|
7009
7055
|
request.partialBoundaries.push(boundary),
|
7010
7056
|
writeStartPendingSuspenseBoundary(
|
@@ -7019,32 +7065,34 @@
|
|
7019
7065
|
hoistStylesheetDependency,
|
7020
7066
|
hoistableState
|
7021
7067
|
)),
|
7022
|
-
flushSubtree(request, destination, segment, hoistableState)
|
7023
|
-
|
7024
|
-
|
7068
|
+
flushSubtree(request, destination, segment, hoistableState),
|
7069
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
7070
|
+
);
|
7071
|
+
if (boundary.byteSize > request.progressiveChunkSize)
|
7072
|
+
return (
|
7073
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
7025
7074
|
request.completedBoundaries.push(boundary),
|
7026
7075
|
writeStartPendingSuspenseBoundary(
|
7027
7076
|
destination,
|
7028
7077
|
request.renderState,
|
7029
7078
|
boundary.rootSegmentID
|
7030
7079
|
),
|
7031
|
-
flushSubtree(request, destination, segment, hoistableState)
|
7032
|
-
|
7033
|
-
|
7034
|
-
|
7035
|
-
|
7036
|
-
|
7037
|
-
|
7038
|
-
|
7039
|
-
|
7040
|
-
|
7041
|
-
|
7042
|
-
|
7043
|
-
|
7044
|
-
|
7045
|
-
|
7046
|
-
|
7047
|
-
}
|
7080
|
+
flushSubtree(request, destination, segment, hoistableState),
|
7081
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
7082
|
+
);
|
7083
|
+
hoistableState &&
|
7084
|
+
((segment = boundary.contentState),
|
7085
|
+
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
7086
|
+
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
7087
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
7088
|
+
segment = boundary.completedSegments;
|
7089
|
+
if (1 !== segment.length)
|
7090
|
+
throw Error(
|
7091
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
7092
|
+
);
|
7093
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
7094
|
+
(request = boundary.contentPreamble) &&
|
7095
|
+
writePreambleContribution(destination, request);
|
7048
7096
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
7049
7097
|
}
|
7050
7098
|
function flushSegmentContainer(
|
@@ -7557,11 +7605,11 @@
|
|
7557
7605
|
}
|
7558
7606
|
function ensureCorrectIsomorphicReactVersion() {
|
7559
7607
|
var isomorphicReactPackageVersion = React.version;
|
7560
|
-
if ("19.1.0-canary-
|
7608
|
+
if ("19.1.0-canary-ff628334-20250205" !== isomorphicReactPackageVersion)
|
7561
7609
|
throw Error(
|
7562
7610
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7563
7611
|
(isomorphicReactPackageVersion +
|
7564
|
-
"\n - react-dom: 19.1.0-canary-
|
7612
|
+
"\n - react-dom: 19.1.0-canary-ff628334-20250205\nLearn more: https://react.dev/warnings/version-mismatch")
|
7565
7613
|
);
|
7566
7614
|
}
|
7567
7615
|
var React = require("react"),
|
@@ -8661,7 +8709,8 @@
|
|
8661
8709
|
),
|
8662
8710
|
importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
|
8663
8711
|
var didWarnForNewBooleanPropsWithEmptyValue = {};
|
8664
|
-
var
|
8712
|
+
var NoContribution = 0,
|
8713
|
+
ROOT_HTML_MODE = 0,
|
8665
8714
|
HTML_HTML_MODE = 1,
|
8666
8715
|
HTML_MODE = 2,
|
8667
8716
|
HTML_HEAD_MODE = 3,
|
@@ -8736,6 +8785,9 @@
|
|
8736
8785
|
stringToPrecomputedChunk(' data-cstck="'),
|
8737
8786
|
clientRenderedSuspenseBoundaryError2 =
|
8738
8787
|
stringToPrecomputedChunk("></template>"),
|
8788
|
+
boundaryPreambleContributionChunkStart =
|
8789
|
+
stringToPrecomputedChunk("\x3c!--"),
|
8790
|
+
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e"),
|
8739
8791
|
startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
8740
8792
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
8741
8793
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
@@ -9207,5 +9259,5 @@
|
|
9207
9259
|
startWork(request);
|
9208
9260
|
});
|
9209
9261
|
};
|
9210
|
-
exports.version = "19.1.0-canary-
|
9262
|
+
exports.version = "19.1.0-canary-ff628334-20250205";
|
9211
9263
|
})();
|
@@ -581,7 +581,12 @@ function createResumableState(
|
|
581
581
|
};
|
582
582
|
}
|
583
583
|
function createPreambleState() {
|
584
|
-
return {
|
584
|
+
return {
|
585
|
+
htmlChunks: null,
|
586
|
+
headChunks: null,
|
587
|
+
bodyChunks: null,
|
588
|
+
contribution: 0
|
589
|
+
};
|
585
590
|
}
|
586
591
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
587
592
|
return {
|
@@ -1165,6 +1170,29 @@ function pushScriptImpl(target, props) {
|
|
1165
1170
|
target.push(endChunkForTag("script"));
|
1166
1171
|
return null;
|
1167
1172
|
}
|
1173
|
+
function pushStartSingletonElement(target, props, tag) {
|
1174
|
+
target.push(startChunkForTag(tag));
|
1175
|
+
var innerHTML = (tag = null),
|
1176
|
+
propKey;
|
1177
|
+
for (propKey in props)
|
1178
|
+
if (hasOwnProperty.call(props, propKey)) {
|
1179
|
+
var propValue = props[propKey];
|
1180
|
+
if (null != propValue)
|
1181
|
+
switch (propKey) {
|
1182
|
+
case "children":
|
1183
|
+
tag = propValue;
|
1184
|
+
break;
|
1185
|
+
case "dangerouslySetInnerHTML":
|
1186
|
+
innerHTML = propValue;
|
1187
|
+
break;
|
1188
|
+
default:
|
1189
|
+
pushAttribute(target, propKey, propValue);
|
1190
|
+
}
|
1191
|
+
}
|
1192
|
+
target.push(endOfStartTag);
|
1193
|
+
pushInnerHTML(target, innerHTML, tag);
|
1194
|
+
return tag;
|
1195
|
+
}
|
1168
1196
|
function pushStartGenericElement(target, props, tag) {
|
1169
1197
|
target.push(startChunkForTag(tag));
|
1170
1198
|
var innerHTML = (tag = null),
|
@@ -2131,7 +2159,7 @@ function pushStartInstance(
|
|
2131
2159
|
if (preamble.headChunks)
|
2132
2160
|
throw Error("The `<head>` tag may only be rendered once.");
|
2133
2161
|
preamble.headChunks = [];
|
2134
|
-
var JSCompiler_inline_result$jscomp$9 =
|
2162
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
2135
2163
|
preamble.headChunks,
|
2136
2164
|
props,
|
2137
2165
|
"head"
|
@@ -2149,7 +2177,7 @@ function pushStartInstance(
|
|
2149
2177
|
if (preamble$jscomp$0.bodyChunks)
|
2150
2178
|
throw Error("The `<body>` tag may only be rendered once.");
|
2151
2179
|
preamble$jscomp$0.bodyChunks = [];
|
2152
|
-
var JSCompiler_inline_result$jscomp$10 =
|
2180
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
2153
2181
|
preamble$jscomp$0.bodyChunks,
|
2154
2182
|
props,
|
2155
2183
|
"body"
|
@@ -2167,7 +2195,7 @@ function pushStartInstance(
|
|
2167
2195
|
if (preamble$jscomp$1.htmlChunks)
|
2168
2196
|
throw Error("The `<html>` tag may only be rendered once.");
|
2169
2197
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
2170
|
-
var JSCompiler_inline_result$jscomp$11 =
|
2198
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
2171
2199
|
preamble$jscomp$1.htmlChunks,
|
2172
2200
|
props,
|
2173
2201
|
"html"
|
@@ -2244,11 +2272,17 @@ function endChunkForTag(tag) {
|
|
2244
2272
|
function hoistPreambleState(renderState, preambleState) {
|
2245
2273
|
renderState = renderState.preamble;
|
2246
2274
|
null === renderState.htmlChunks &&
|
2247
|
-
|
2275
|
+
preambleState.htmlChunks &&
|
2276
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
2277
|
+
(preambleState.contribution |= 1));
|
2248
2278
|
null === renderState.headChunks &&
|
2249
|
-
|
2279
|
+
preambleState.headChunks &&
|
2280
|
+
((renderState.headChunks = preambleState.headChunks),
|
2281
|
+
(preambleState.contribution |= 4));
|
2250
2282
|
null === renderState.bodyChunks &&
|
2251
|
-
|
2283
|
+
preambleState.bodyChunks &&
|
2284
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
2285
|
+
(preambleState.contribution |= 2));
|
2252
2286
|
}
|
2253
2287
|
function writeBootstrap(destination, renderState) {
|
2254
2288
|
renderState = renderState.bootstrapChunks;
|
@@ -2290,6 +2324,16 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
2290
2324
|
writeChunk(destination, stringToChunk(id.toString(16)));
|
2291
2325
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
2292
2326
|
}
|
2327
|
+
var boundaryPreambleContributionChunkStart =
|
2328
|
+
stringToPrecomputedChunk("\x3c!--"),
|
2329
|
+
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e");
|
2330
|
+
function writePreambleContribution(destination, preambleState) {
|
2331
|
+
preambleState = preambleState.contribution;
|
2332
|
+
0 !== preambleState &&
|
2333
|
+
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
2334
|
+
writeChunk(destination, stringToChunk("" + preambleState)),
|
2335
|
+
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
2336
|
+
}
|
2293
2337
|
var startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
2294
2338
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
2295
2339
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
@@ -5807,21 +5851,27 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5807
5851
|
if (null === boundary)
|
5808
5852
|
return flushSubtree(request, destination, segment, hoistableState);
|
5809
5853
|
boundary.parentFlushed = !0;
|
5810
|
-
if (4 === boundary.status)
|
5811
|
-
|
5812
|
-
|
5813
|
-
|
5814
|
-
|
5815
|
-
|
5816
|
-
|
5817
|
-
|
5818
|
-
|
5819
|
-
|
5820
|
-
|
5821
|
-
|
5822
|
-
|
5823
|
-
|
5824
|
-
|
5854
|
+
if (4 === boundary.status) {
|
5855
|
+
var errorDigest = boundary.errorDigest;
|
5856
|
+
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
5857
|
+
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
5858
|
+
errorDigest &&
|
5859
|
+
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
5860
|
+
writeChunk(destination, stringToChunk(escapeTextForBrowser(errorDigest))),
|
5861
|
+
writeChunk(
|
5862
|
+
destination,
|
5863
|
+
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
5864
|
+
));
|
5865
|
+
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
5866
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5867
|
+
(request = boundary.fallbackPreamble) &&
|
5868
|
+
writePreambleContribution(destination, request);
|
5869
|
+
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
5870
|
+
}
|
5871
|
+
if (1 !== boundary.status)
|
5872
|
+
return (
|
5873
|
+
0 === boundary.status &&
|
5874
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
5825
5875
|
0 < boundary.completedSegments.length &&
|
5826
5876
|
request.partialBoundaries.push(boundary),
|
5827
5877
|
writeStartPendingSuspenseBoundary(
|
@@ -5836,29 +5886,34 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5836
5886
|
hoistStylesheetDependency,
|
5837
5887
|
hoistableState
|
5838
5888
|
)),
|
5839
|
-
flushSubtree(request, destination, segment, hoistableState)
|
5840
|
-
|
5841
|
-
|
5889
|
+
flushSubtree(request, destination, segment, hoistableState),
|
5890
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
5891
|
+
);
|
5892
|
+
if (boundary.byteSize > request.progressiveChunkSize)
|
5893
|
+
return (
|
5894
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
5842
5895
|
request.completedBoundaries.push(boundary),
|
5843
5896
|
writeStartPendingSuspenseBoundary(
|
5844
5897
|
destination,
|
5845
5898
|
request.renderState,
|
5846
5899
|
boundary.rootSegmentID
|
5847
5900
|
),
|
5848
|
-
flushSubtree(request, destination, segment, hoistableState)
|
5849
|
-
|
5850
|
-
|
5851
|
-
|
5852
|
-
|
5853
|
-
|
5854
|
-
|
5855
|
-
|
5856
|
-
|
5857
|
-
|
5858
|
-
|
5859
|
-
|
5860
|
-
|
5861
|
-
|
5901
|
+
flushSubtree(request, destination, segment, hoistableState),
|
5902
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
5903
|
+
);
|
5904
|
+
hoistableState &&
|
5905
|
+
((segment = boundary.contentState),
|
5906
|
+
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
5907
|
+
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
5908
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
5909
|
+
segment = boundary.completedSegments;
|
5910
|
+
if (1 !== segment.length)
|
5911
|
+
throw Error(
|
5912
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
5913
|
+
);
|
5914
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
5915
|
+
(request = boundary.contentPreamble) &&
|
5916
|
+
writePreambleContribution(destination, request);
|
5862
5917
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
5863
5918
|
}
|
5864
5919
|
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
@@ -6265,11 +6320,11 @@ function abort(request, reason) {
|
|
6265
6320
|
}
|
6266
6321
|
function ensureCorrectIsomorphicReactVersion() {
|
6267
6322
|
var isomorphicReactPackageVersion = React.version;
|
6268
|
-
if ("19.1.0-canary-
|
6323
|
+
if ("19.1.0-canary-ff628334-20250205" !== isomorphicReactPackageVersion)
|
6269
6324
|
throw Error(
|
6270
6325
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6271
6326
|
(isomorphicReactPackageVersion +
|
6272
|
-
"\n - react-dom: 19.1.0-canary-
|
6327
|
+
"\n - react-dom: 19.1.0-canary-ff628334-20250205\nLearn more: https://react.dev/warnings/version-mismatch")
|
6273
6328
|
);
|
6274
6329
|
}
|
6275
6330
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6415,4 +6470,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6415
6470
|
startWork(request);
|
6416
6471
|
});
|
6417
6472
|
};
|
6418
|
-
exports.version = "19.1.0-canary-
|
6473
|
+
exports.version = "19.1.0-canary-ff628334-20250205";
|