react-dom 19.2.0-canary-280ff6fe-20250606 → 19.2.0-canary-56408a5b-20250610
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 +167 -153
- package/cjs/react-dom-client.production.js +59 -40
- package/cjs/react-dom-profiling.development.js +167 -153
- package/cjs/react-dom-profiling.profiling.js +59 -40
- 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 +194 -5
- package/cjs/react-dom-server.node.production.js +194 -5
- 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
- package/server.node.js +4 -0
- package/static.node.js +2 -0
@@ -6970,7 +6970,8 @@ function initSuspenseListRenderState(
|
|
6970
6970
|
isBackwards,
|
6971
6971
|
tail,
|
6972
6972
|
lastContentRow,
|
6973
|
-
tailMode
|
6973
|
+
tailMode,
|
6974
|
+
treeForkCount
|
6974
6975
|
) {
|
6975
6976
|
var renderState = workInProgress.memoizedState;
|
6976
6977
|
null === renderState
|
@@ -6980,14 +6981,16 @@ function initSuspenseListRenderState(
|
|
6980
6981
|
renderingStartTime: 0,
|
6981
6982
|
last: lastContentRow,
|
6982
6983
|
tail: tail,
|
6983
|
-
tailMode: tailMode
|
6984
|
+
tailMode: tailMode,
|
6985
|
+
treeForkCount: treeForkCount
|
6984
6986
|
})
|
6985
6987
|
: ((renderState.isBackwards = isBackwards),
|
6986
6988
|
(renderState.rendering = null),
|
6987
6989
|
(renderState.renderingStartTime = 0),
|
6988
6990
|
(renderState.last = lastContentRow),
|
6989
6991
|
(renderState.tail = tail),
|
6990
|
-
(renderState.tailMode = tailMode)
|
6992
|
+
(renderState.tailMode = tailMode),
|
6993
|
+
(renderState.treeForkCount = treeForkCount));
|
6991
6994
|
}
|
6992
6995
|
function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
6993
6996
|
var nextProps = workInProgress.pendingProps,
|
@@ -7002,6 +7005,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
7002
7005
|
: (suspenseContext &= 1);
|
7003
7006
|
push(suspenseStackCursor, suspenseContext);
|
7004
7007
|
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
7008
|
+
nextProps = isHydrating ? treeForkCount : 0;
|
7005
7009
|
if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
|
7006
7010
|
a: for (current = workInProgress.child; null !== current; ) {
|
7007
7011
|
if (13 === current.tag)
|
@@ -7041,7 +7045,8 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
7041
7045
|
!1,
|
7042
7046
|
revealOrder,
|
7043
7047
|
renderLanes,
|
7044
|
-
tailMode
|
7048
|
+
tailMode,
|
7049
|
+
nextProps
|
7045
7050
|
);
|
7046
7051
|
break;
|
7047
7052
|
case "backwards":
|
@@ -7064,11 +7069,19 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
7064
7069
|
!0,
|
7065
7070
|
renderLanes,
|
7066
7071
|
null,
|
7067
|
-
tailMode
|
7072
|
+
tailMode,
|
7073
|
+
nextProps
|
7068
7074
|
);
|
7069
7075
|
break;
|
7070
7076
|
case "together":
|
7071
|
-
initSuspenseListRenderState(
|
7077
|
+
initSuspenseListRenderState(
|
7078
|
+
workInProgress,
|
7079
|
+
!1,
|
7080
|
+
null,
|
7081
|
+
null,
|
7082
|
+
void 0,
|
7083
|
+
nextProps
|
7084
|
+
);
|
7072
7085
|
break;
|
7073
7086
|
default:
|
7074
7087
|
workInProgress.memoizedState = null;
|
@@ -8270,12 +8283,12 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
8270
8283
|
);
|
8271
8284
|
case 19:
|
8272
8285
|
pop(suspenseStackCursor);
|
8273
|
-
|
8274
|
-
if (null ===
|
8275
|
-
|
8276
|
-
nextResource =
|
8286
|
+
newProps = workInProgress.memoizedState;
|
8287
|
+
if (null === newProps) return bubbleProperties(workInProgress), null;
|
8288
|
+
type = 0 !== (workInProgress.flags & 128);
|
8289
|
+
nextResource = newProps.rendering;
|
8277
8290
|
if (null === nextResource)
|
8278
|
-
if (
|
8291
|
+
if (type) cutOffTailIfNeeded(newProps, !1);
|
8279
8292
|
else {
|
8280
8293
|
if (
|
8281
8294
|
0 !== workInProgressRootExitStatus ||
|
@@ -8285,7 +8298,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
8285
8298
|
nextResource = findFirstSuspended(current);
|
8286
8299
|
if (null !== nextResource) {
|
8287
8300
|
workInProgress.flags |= 128;
|
8288
|
-
cutOffTailIfNeeded(
|
8301
|
+
cutOffTailIfNeeded(newProps, !1);
|
8289
8302
|
current = nextResource.updateQueue;
|
8290
8303
|
workInProgress.updateQueue = current;
|
8291
8304
|
scheduleRetryEffect(workInProgress, current);
|
@@ -8298,62 +8311,68 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
8298
8311
|
suspenseStackCursor,
|
8299
8312
|
(suspenseStackCursor.current & 1) | 2
|
8300
8313
|
);
|
8314
|
+
isHydrating &&
|
8315
|
+
pushTreeFork(workInProgress, newProps.treeForkCount);
|
8301
8316
|
return workInProgress.child;
|
8302
8317
|
}
|
8303
8318
|
current = current.sibling;
|
8304
8319
|
}
|
8305
|
-
null !==
|
8320
|
+
null !== newProps.tail &&
|
8306
8321
|
now() > workInProgressRootRenderTargetTime &&
|
8307
8322
|
((workInProgress.flags |= 128),
|
8308
|
-
(
|
8309
|
-
cutOffTailIfNeeded(
|
8323
|
+
(type = !0),
|
8324
|
+
cutOffTailIfNeeded(newProps, !1),
|
8310
8325
|
(workInProgress.lanes = 4194304));
|
8311
8326
|
}
|
8312
8327
|
else {
|
8313
|
-
if (!
|
8328
|
+
if (!type)
|
8314
8329
|
if (
|
8315
8330
|
((current = findFirstSuspended(nextResource)), null !== current)
|
8316
8331
|
) {
|
8317
8332
|
if (
|
8318
8333
|
((workInProgress.flags |= 128),
|
8319
|
-
(
|
8334
|
+
(type = !0),
|
8320
8335
|
(current = current.updateQueue),
|
8321
8336
|
(workInProgress.updateQueue = current),
|
8322
8337
|
scheduleRetryEffect(workInProgress, current),
|
8323
|
-
cutOffTailIfNeeded(
|
8324
|
-
null ===
|
8325
|
-
"hidden" ===
|
8338
|
+
cutOffTailIfNeeded(newProps, !0),
|
8339
|
+
null === newProps.tail &&
|
8340
|
+
"hidden" === newProps.tailMode &&
|
8326
8341
|
!nextResource.alternate &&
|
8327
8342
|
!isHydrating)
|
8328
8343
|
)
|
8329
8344
|
return bubbleProperties(workInProgress), null;
|
8330
8345
|
} else
|
8331
|
-
2 * now() -
|
8346
|
+
2 * now() - newProps.renderingStartTime >
|
8332
8347
|
workInProgressRootRenderTargetTime &&
|
8333
8348
|
536870912 !== renderLanes &&
|
8334
8349
|
((workInProgress.flags |= 128),
|
8335
|
-
(
|
8336
|
-
cutOffTailIfNeeded(
|
8350
|
+
(type = !0),
|
8351
|
+
cutOffTailIfNeeded(newProps, !1),
|
8337
8352
|
(workInProgress.lanes = 4194304));
|
8338
|
-
|
8353
|
+
newProps.isBackwards
|
8339
8354
|
? ((nextResource.sibling = workInProgress.child),
|
8340
8355
|
(workInProgress.child = nextResource))
|
8341
|
-
: ((current =
|
8356
|
+
: ((current = newProps.last),
|
8342
8357
|
null !== current
|
8343
8358
|
? (current.sibling = nextResource)
|
8344
8359
|
: (workInProgress.child = nextResource),
|
8345
|
-
(
|
8360
|
+
(newProps.last = nextResource));
|
8346
8361
|
}
|
8347
|
-
if (null !==
|
8362
|
+
if (null !== newProps.tail)
|
8348
8363
|
return (
|
8349
|
-
(
|
8350
|
-
(
|
8351
|
-
(
|
8352
|
-
(
|
8353
|
-
(
|
8354
|
-
(
|
8355
|
-
push(
|
8356
|
-
|
8364
|
+
(current = newProps.tail),
|
8365
|
+
(newProps.rendering = current),
|
8366
|
+
(newProps.tail = current.sibling),
|
8367
|
+
(newProps.renderingStartTime = now()),
|
8368
|
+
(current.sibling = null),
|
8369
|
+
(renderLanes = suspenseStackCursor.current),
|
8370
|
+
push(
|
8371
|
+
suspenseStackCursor,
|
8372
|
+
type ? (renderLanes & 1) | 2 : renderLanes & 1
|
8373
|
+
),
|
8374
|
+
isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount),
|
8375
|
+
current
|
8357
8376
|
);
|
8358
8377
|
bubbleProperties(workInProgress);
|
8359
8378
|
return null;
|
@@ -15693,14 +15712,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
15693
15712
|
};
|
15694
15713
|
var isomorphicReactPackageVersion$jscomp$inline_1851 = React.version;
|
15695
15714
|
if (
|
15696
|
-
"19.2.0-canary-
|
15715
|
+
"19.2.0-canary-56408a5b-20250610" !==
|
15697
15716
|
isomorphicReactPackageVersion$jscomp$inline_1851
|
15698
15717
|
)
|
15699
15718
|
throw Error(
|
15700
15719
|
formatProdErrorMessage(
|
15701
15720
|
527,
|
15702
15721
|
isomorphicReactPackageVersion$jscomp$inline_1851,
|
15703
|
-
"19.2.0-canary-
|
15722
|
+
"19.2.0-canary-56408a5b-20250610"
|
15704
15723
|
)
|
15705
15724
|
);
|
15706
15725
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -15722,10 +15741,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
15722
15741
|
};
|
15723
15742
|
var internals$jscomp$inline_2344 = {
|
15724
15743
|
bundleType: 0,
|
15725
|
-
version: "19.2.0-canary-
|
15744
|
+
version: "19.2.0-canary-56408a5b-20250610",
|
15726
15745
|
rendererPackageName: "react-dom",
|
15727
15746
|
currentDispatcherRef: ReactSharedInternals,
|
15728
|
-
reconcilerVersion: "19.2.0-canary-
|
15747
|
+
reconcilerVersion: "19.2.0-canary-56408a5b-20250610"
|
15729
15748
|
};
|
15730
15749
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
15731
15750
|
var hook$jscomp$inline_2345 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
@@ -15823,4 +15842,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
|
15823
15842
|
listenToAllSupportedEvents(container);
|
15824
15843
|
return new ReactDOMHydrationRoot(initialChildren);
|
15825
15844
|
};
|
15826
|
-
exports.version = "19.2.0-canary-
|
15845
|
+
exports.version = "19.2.0-canary-56408a5b-20250610";
|