react-dom 19.2.0-canary-0038c501-20250429 → 19.2.0-canary-e9db3cc2-20250501

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.
@@ -2473,11 +2473,11 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
2473
2473
  stringToPrecomputedChunk('<template data-rsi="" data-sid="');
2474
2474
  stringToPrecomputedChunk('" data-pid="');
2475
2475
  var completeBoundaryScript1Full = stringToPrecomputedChunk(
2476
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
2476
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RC("'
2477
2477
  ),
2478
2478
  completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
2479
2479
  completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
2480
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
2480
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
2481
2481
  ),
2482
2482
  completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
2483
2483
  '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
@@ -4720,8 +4720,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4720
4720
  queueCompletedSegment(newBoundary, contentRootSegment),
4721
4721
  0 === newBoundary.pendingTasks &&
4722
4722
  0 === newBoundary.status &&
4723
- ((newBoundary.status = 1),
4724
- !(newBoundary.byteSize > request.progressiveChunkSize)))
4723
+ ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
4725
4724
  ) {
4726
4725
  0 === request.pendingRootTasks &&
4727
4726
  task.blockedPreamble &&
@@ -5606,7 +5605,7 @@ function finishedTask(request, boundary, segment) {
5606
5605
  boundary.parentFlushed &&
5607
5606
  request.completedBoundaries.push(boundary),
5608
5607
  1 === boundary.status &&
5609
- (boundary.byteSize > request.progressiveChunkSize ||
5608
+ (500 < boundary.byteSize ||
5610
5609
  (boundary.fallbackAbortableTasks.forEach(
5611
5610
  abortTaskSoft,
5612
5611
  request
@@ -5918,6 +5917,7 @@ function flushSubtree(request, destination, segment, hoistableState) {
5918
5917
  );
5919
5918
  }
5920
5919
  }
5920
+ var flushedByteSize = 0;
5921
5921
  function flushSegment(request, destination, segment, hoistableState) {
5922
5922
  var boundary = segment.boundary;
5923
5923
  if (null === boundary)
@@ -5953,7 +5953,10 @@ function flushSegment(request, destination, segment, hoistableState) {
5953
5953
  hoistableState
5954
5954
  )),
5955
5955
  flushSubtree(request, destination, segment, hoistableState);
5956
- else if (boundary.byteSize > request.progressiveChunkSize)
5956
+ else if (
5957
+ 500 < boundary.byteSize &&
5958
+ flushedByteSize + boundary.byteSize > request.progressiveChunkSize
5959
+ )
5957
5960
  (boundary.rootSegmentID = request.nextSegmentId++),
5958
5961
  request.completedBoundaries.push(boundary),
5959
5962
  writeStartPendingSuspenseBoundary(
@@ -5963,6 +5966,7 @@ function flushSegment(request, destination, segment, hoistableState) {
5963
5966
  ),
5964
5967
  flushSubtree(request, destination, segment, hoistableState);
5965
5968
  else {
5969
+ flushedByteSize += boundary.byteSize;
5966
5970
  hoistableState &&
5967
5971
  ((segment = boundary.contentState),
5968
5972
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
@@ -5988,6 +5992,7 @@ function flushSegmentContainer(request, destination, segment, hoistableState) {
5988
5992
  return writeEndSegment(destination, segment.parentFormatContext);
5989
5993
  }
5990
5994
  function flushCompletedBoundary(request, destination, boundary) {
5995
+ flushedByteSize = boundary.byteSize;
5991
5996
  for (
5992
5997
  var completedSegments = boundary.completedSegments, i = 0;
5993
5998
  i < completedSegments.length;
@@ -6085,6 +6090,7 @@ function flushCompletedQueues(request, destination) {
6085
6090
  if (5 === completedRootSegment.status) return;
6086
6091
  var completedPreambleSegments = request.completedPreambleSegments;
6087
6092
  if (null === completedPreambleSegments) return;
6093
+ flushedByteSize = request.byteSize;
6088
6094
  var resumableState = request.resumableState,
6089
6095
  renderState = request.renderState,
6090
6096
  preamble = renderState.preamble,
@@ -6271,6 +6277,7 @@ function flushCompletedQueues(request, destination) {
6271
6277
  a: {
6272
6278
  clientRenderedBoundaries = request;
6273
6279
  boundary = destination;
6280
+ flushedByteSize = boundary$53.byteSize;
6274
6281
  var completedSegments = boundary$53.completedSegments;
6275
6282
  for (
6276
6283
  JSCompiler_inline_result = 0;
@@ -6406,11 +6413,11 @@ function abort(request, reason) {
6406
6413
  }
6407
6414
  function ensureCorrectIsomorphicReactVersion() {
6408
6415
  var isomorphicReactPackageVersion = React.version;
6409
- if ("19.2.0-canary-0038c501-20250429" !== isomorphicReactPackageVersion)
6416
+ if ("19.2.0-canary-e9db3cc2-20250501" !== isomorphicReactPackageVersion)
6410
6417
  throw Error(
6411
6418
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
6412
6419
  (isomorphicReactPackageVersion +
6413
- "\n - react-dom: 19.2.0-canary-0038c501-20250429\nLearn more: https://react.dev/warnings/version-mismatch")
6420
+ "\n - react-dom: 19.2.0-canary-e9db3cc2-20250501\nLearn more: https://react.dev/warnings/version-mismatch")
6414
6421
  );
6415
6422
  }
6416
6423
  ensureCorrectIsomorphicReactVersion();
@@ -6556,4 +6563,4 @@ exports.renderToReadableStream = function (children, options) {
6556
6563
  startWork(request);
6557
6564
  });
6558
6565
  };
6559
- exports.version = "19.2.0-canary-0038c501-20250429";
6566
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
@@ -5608,7 +5608,7 @@
5608
5608
  0 === newBoundary.pendingTasks &&
5609
5609
  newBoundary.status === PENDING &&
5610
5610
  ((newBoundary.status = COMPLETED),
5611
- !(newBoundary.byteSize > request.progressiveChunkSize)))
5611
+ !(500 < newBoundary.byteSize)))
5612
5612
  ) {
5613
5613
  0 === request.pendingRootTasks &&
5614
5614
  task.blockedPreamble &&
@@ -6754,7 +6754,7 @@
6754
6754
  boundary.parentFlushed &&
6755
6755
  request.completedBoundaries.push(boundary),
6756
6756
  boundary.status === COMPLETED &&
6757
- (boundary.byteSize > request.progressiveChunkSize ||
6757
+ (500 < boundary.byteSize ||
6758
6758
  (boundary.fallbackAbortableTasks.forEach(
6759
6759
  abortTaskSoft,
6760
6760
  request
@@ -7174,7 +7174,10 @@
7174
7174
  hoistableState
7175
7175
  )),
7176
7176
  flushSubtree(request, destination, segment, hoistableState);
7177
- else if (boundary.byteSize > request.progressiveChunkSize)
7177
+ else if (
7178
+ 500 < boundary.byteSize &&
7179
+ flushedByteSize + boundary.byteSize > request.progressiveChunkSize
7180
+ )
7178
7181
  (boundary.rootSegmentID = request.nextSegmentId++),
7179
7182
  request.completedBoundaries.push(boundary),
7180
7183
  writeStartPendingSuspenseBoundary(
@@ -7184,6 +7187,7 @@
7184
7187
  ),
7185
7188
  flushSubtree(request, destination, segment, hoistableState);
7186
7189
  else {
7190
+ flushedByteSize += boundary.byteSize;
7187
7191
  hoistableState &&
7188
7192
  ((segment = boundary.contentState),
7189
7193
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
@@ -7217,6 +7221,7 @@
7217
7221
  return writeEndSegment(destination, segment.parentFormatContext);
7218
7222
  }
7219
7223
  function flushCompletedBoundary(request, destination, boundary) {
7224
+ flushedByteSize = boundary.byteSize;
7220
7225
  for (
7221
7226
  var completedSegments = boundary.completedSegments, i = 0;
7222
7227
  i < completedSegments.length;
@@ -7334,6 +7339,7 @@
7334
7339
  if (completedRootSegment.status === POSTPONED) return;
7335
7340
  var completedPreambleSegments = request.completedPreambleSegments;
7336
7341
  if (null === completedPreambleSegments) return;
7342
+ flushedByteSize = request.byteSize;
7337
7343
  var resumableState = request.resumableState,
7338
7344
  renderState = request.renderState,
7339
7345
  preamble = renderState.preamble,
@@ -7594,8 +7600,9 @@
7594
7600
  a: {
7595
7601
  clientRenderedBoundaries = request;
7596
7602
  boundary = destination;
7597
- var boundary$jscomp$0 = partialBoundaries[i],
7598
- completedSegments = boundary$jscomp$0.completedSegments;
7603
+ var boundary$jscomp$0 = partialBoundaries[i];
7604
+ flushedByteSize = boundary$jscomp$0.byteSize;
7605
+ var completedSegments = boundary$jscomp$0.completedSegments;
7599
7606
  for (
7600
7607
  JSCompiler_inline_result = 0;
7601
7608
  JSCompiler_inline_result < completedSegments.length;
@@ -7735,11 +7742,11 @@
7735
7742
  }
7736
7743
  function ensureCorrectIsomorphicReactVersion() {
7737
7744
  var isomorphicReactPackageVersion = React.version;
7738
- if ("19.2.0-canary-0038c501-20250429" !== isomorphicReactPackageVersion)
7745
+ if ("19.2.0-canary-e9db3cc2-20250501" !== isomorphicReactPackageVersion)
7739
7746
  throw Error(
7740
7747
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
7741
7748
  (isomorphicReactPackageVersion +
7742
- "\n - react-dom: 19.2.0-canary-0038c501-20250429\nLearn more: https://react.dev/warnings/version-mismatch")
7749
+ "\n - react-dom: 19.2.0-canary-e9db3cc2-20250501\nLearn more: https://react.dev/warnings/version-mismatch")
7743
7750
  );
7744
7751
  }
7745
7752
  function createDrainHandler(destination, request) {
@@ -9013,11 +9020,11 @@
9013
9020
  stringToPrecomputedChunk('<template data-rsi="" data-sid="');
9014
9021
  stringToPrecomputedChunk('" data-pid="');
9015
9022
  var completeBoundaryScript1Full = stringToPrecomputedChunk(
9016
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
9023
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RC("'
9017
9024
  ),
9018
9025
  completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
9019
9026
  completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
9020
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
9027
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
9021
9028
  ),
9022
9029
  completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
9023
9030
  '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
@@ -9323,7 +9330,8 @@
9323
9330
  didWarnAboutGetDerivedStateOnFunctionComponent = {},
9324
9331
  didWarnAboutReassigningProps = !1,
9325
9332
  didWarnAboutGenerators = !1,
9326
- didWarnAboutMaps = !1;
9333
+ didWarnAboutMaps = !1,
9334
+ flushedByteSize = 0;
9327
9335
  ensureCorrectIsomorphicReactVersion();
9328
9336
  ensureCorrectIsomorphicReactVersion();
9329
9337
  exports.prerenderToNodeStream = function (children, options) {
@@ -9416,5 +9424,5 @@
9416
9424
  }
9417
9425
  };
9418
9426
  };
9419
- exports.version = "19.2.0-canary-0038c501-20250429";
9427
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
9420
9428
  })();
@@ -2393,11 +2393,11 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
2393
2393
  stringToPrecomputedChunk('<template data-rsi="" data-sid="');
2394
2394
  stringToPrecomputedChunk('" data-pid="');
2395
2395
  var completeBoundaryScript1Full = stringToPrecomputedChunk(
2396
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
2396
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RC("'
2397
2397
  ),
2398
2398
  completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
2399
2399
  completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
2400
- '$RC=function(b,d,e){d=document.getElementById(d);d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
2400
+ '$RC=function(b,d,e){if(d=document.getElementById(d)){d.parentNode.removeChild(d);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var c=a.data;if("/$"===c||"/&"===c)if(0===f)break;else f--;else"$"!==c&&"$?"!==c&&"$!"!==c&&"&"!==c||f++}c=a.nextSibling;e.removeChild(a);a=c}while(a);for(;d.firstChild;)e.insertBefore(d.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
2401
2401
  ),
2402
2402
  completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
2403
2403
  '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
@@ -4623,8 +4623,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4623
4623
  queueCompletedSegment(newBoundary, contentRootSegment),
4624
4624
  0 === newBoundary.pendingTasks &&
4625
4625
  0 === newBoundary.status &&
4626
- ((newBoundary.status = 1),
4627
- !(newBoundary.byteSize > request.progressiveChunkSize)))
4626
+ ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
4628
4627
  ) {
4629
4628
  0 === request.pendingRootTasks &&
4630
4629
  task.blockedPreamble &&
@@ -5509,7 +5508,7 @@ function finishedTask(request, boundary, segment) {
5509
5508
  boundary.parentFlushed &&
5510
5509
  request.completedBoundaries.push(boundary),
5511
5510
  1 === boundary.status &&
5512
- (boundary.byteSize > request.progressiveChunkSize ||
5511
+ (500 < boundary.byteSize ||
5513
5512
  (boundary.fallbackAbortableTasks.forEach(
5514
5513
  abortTaskSoft,
5515
5514
  request
@@ -5821,6 +5820,7 @@ function flushSubtree(request, destination, segment, hoistableState) {
5821
5820
  );
5822
5821
  }
5823
5822
  }
5823
+ var flushedByteSize = 0;
5824
5824
  function flushSegment(request, destination, segment, hoistableState) {
5825
5825
  var boundary = segment.boundary;
5826
5826
  if (null === boundary)
@@ -5856,7 +5856,10 @@ function flushSegment(request, destination, segment, hoistableState) {
5856
5856
  hoistableState
5857
5857
  )),
5858
5858
  flushSubtree(request, destination, segment, hoistableState);
5859
- else if (boundary.byteSize > request.progressiveChunkSize)
5859
+ else if (
5860
+ 500 < boundary.byteSize &&
5861
+ flushedByteSize + boundary.byteSize > request.progressiveChunkSize
5862
+ )
5860
5863
  (boundary.rootSegmentID = request.nextSegmentId++),
5861
5864
  request.completedBoundaries.push(boundary),
5862
5865
  writeStartPendingSuspenseBoundary(
@@ -5866,6 +5869,7 @@ function flushSegment(request, destination, segment, hoistableState) {
5866
5869
  ),
5867
5870
  flushSubtree(request, destination, segment, hoistableState);
5868
5871
  else {
5872
+ flushedByteSize += boundary.byteSize;
5869
5873
  hoistableState &&
5870
5874
  ((segment = boundary.contentState),
5871
5875
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
@@ -5891,6 +5895,7 @@ function flushSegmentContainer(request, destination, segment, hoistableState) {
5891
5895
  return writeEndSegment(destination, segment.parentFormatContext);
5892
5896
  }
5893
5897
  function flushCompletedBoundary(request, destination, boundary) {
5898
+ flushedByteSize = boundary.byteSize;
5894
5899
  for (
5895
5900
  var completedSegments = boundary.completedSegments, i = 0;
5896
5901
  i < completedSegments.length;
@@ -5989,6 +5994,7 @@ function flushCompletedQueues(request, destination) {
5989
5994
  if (5 === completedRootSegment.status) return;
5990
5995
  var completedPreambleSegments = request.completedPreambleSegments;
5991
5996
  if (null === completedPreambleSegments) return;
5997
+ flushedByteSize = request.byteSize;
5992
5998
  var resumableState = request.resumableState,
5993
5999
  renderState = request.renderState,
5994
6000
  preamble = renderState.preamble,
@@ -6174,6 +6180,7 @@ function flushCompletedQueues(request, destination) {
6174
6180
  a: {
6175
6181
  clientRenderedBoundaries = request;
6176
6182
  boundary = destination;
6183
+ flushedByteSize = boundary$53.byteSize;
6177
6184
  var completedSegments = boundary$53.completedSegments;
6178
6185
  for (
6179
6186
  JSCompiler_inline_result = 0;
@@ -6304,11 +6311,11 @@ function abort(request, reason) {
6304
6311
  }
6305
6312
  function ensureCorrectIsomorphicReactVersion() {
6306
6313
  var isomorphicReactPackageVersion = React.version;
6307
- if ("19.2.0-canary-0038c501-20250429" !== isomorphicReactPackageVersion)
6314
+ if ("19.2.0-canary-e9db3cc2-20250501" !== isomorphicReactPackageVersion)
6308
6315
  throw Error(
6309
6316
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
6310
6317
  (isomorphicReactPackageVersion +
6311
- "\n - react-dom: 19.2.0-canary-0038c501-20250429\nLearn more: https://react.dev/warnings/version-mismatch")
6318
+ "\n - react-dom: 19.2.0-canary-e9db3cc2-20250501\nLearn more: https://react.dev/warnings/version-mismatch")
6312
6319
  );
6313
6320
  }
6314
6321
  ensureCorrectIsomorphicReactVersion();
@@ -6457,4 +6464,4 @@ exports.renderToPipeableStream = function (children, options) {
6457
6464
  }
6458
6465
  };
6459
6466
  };
6460
- exports.version = "19.2.0-canary-0038c501-20250429";
6467
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
@@ -416,7 +416,7 @@
416
416
  exports.useFormStatus = function () {
417
417
  return resolveDispatcher().useHostTransitionStatus();
418
418
  };
419
- exports.version = "19.2.0-canary-0038c501-20250429";
419
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
420
420
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
421
421
  "function" ===
422
422
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
207
207
  exports.useFormStatus = function () {
208
208
  return ReactSharedInternals.H.useHostTransitionStatus();
209
209
  };
210
- exports.version = "19.2.0-canary-0038c501-20250429";
210
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
@@ -336,5 +336,5 @@
336
336
  }))
337
337
  : Internals.d.m(href));
338
338
  };
339
- exports.version = "19.2.0-canary-0038c501-20250429";
339
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
340
340
  })();
@@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) {
149
149
  });
150
150
  } else Internals.d.m(href);
151
151
  };
152
- exports.version = "19.2.0-canary-0038c501-20250429";
152
+ exports.version = "19.2.0-canary-e9db3cc2-20250501";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dom",
3
- "version": "19.2.0-canary-0038c501-20250429",
3
+ "version": "19.2.0-canary-e9db3cc2-20250501",
4
4
  "description": "React package for working with the DOM.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "homepage": "https://react.dev/",
19
19
  "dependencies": {
20
- "scheduler": "0.27.0-canary-0038c501-20250429"
20
+ "scheduler": "0.27.0-canary-e9db3cc2-20250501"
21
21
  },
22
22
  "peerDependencies": {
23
- "react": "19.2.0-canary-0038c501-20250429"
23
+ "react": "19.2.0-canary-e9db3cc2-20250501"
24
24
  },
25
25
  "files": [
26
26
  "LICENSE",