react-dom 19.0.0-rc-1b1283ad-20241203 → 19.0.0-rc-de68d2f4-20241204

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.
@@ -5051,7 +5051,9 @@ function findFirstSuspended(row) {
5051
5051
  if (
5052
5052
  null !== state &&
5053
5053
  ((state = state.dehydrated),
5054
- null === state || "$?" === state.data || "$!" === state.data)
5054
+ null === state ||
5055
+ "$?" === state.data ||
5056
+ isSuspenseInstanceFallback(state))
5055
5057
  )
5056
5058
  return node;
5057
5059
  } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
@@ -6065,7 +6067,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6065
6067
  ((nextInstance = nextInstance.dehydrated), null !== nextInstance)
6066
6068
  )
6067
6069
  return (
6068
- "$!" === nextInstance.data
6070
+ isSuspenseInstanceFallback(nextInstance)
6069
6071
  ? (workInProgress.lanes = 16)
6070
6072
  : (workInProgress.lanes = 536870912),
6071
6073
  null
@@ -6161,7 +6163,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6161
6163
  (workInProgress = showFallback));
6162
6164
  else if (
6163
6165
  (pushPrimaryTreeSuspenseHandler(workInProgress),
6164
- "$!" === nextInstance.data)
6166
+ isSuspenseInstanceFallback(nextInstance))
6165
6167
  ) {
6166
6168
  JSCompiler_temp =
6167
6169
  nextInstance.nextSibling && nextInstance.nextSibling.dataset;
@@ -6244,13 +6246,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6244
6246
  );
6245
6247
  } else
6246
6248
  "$?" === nextInstance.data
6247
- ? ((workInProgress.flags |= 128),
6249
+ ? ((workInProgress.flags |= 192),
6248
6250
  (workInProgress.child = current.child),
6249
- (workInProgress = retryDehydratedSuspenseBoundary.bind(
6250
- null,
6251
- current
6252
- )),
6253
- (nextInstance._reactRetry = workInProgress),
6254
6251
  (workInProgress = null))
6255
6252
  : ((current = JSCompiler_temp$jscomp$0.treeContext),
6256
6253
  (nextHydratableInstance = getNextHydratable(
@@ -7964,6 +7961,16 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
7964
7961
  case 13:
7965
7962
  recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
7966
7963
  flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
7964
+ flags & 64 &&
7965
+ ((flags = finishedWork.memoizedState),
7966
+ null !== flags &&
7967
+ ((flags = flags.dehydrated),
7968
+ null !== flags &&
7969
+ ((finishedWork = retryDehydratedSuspenseBoundary.bind(
7970
+ null,
7971
+ finishedWork
7972
+ )),
7973
+ registerSuspenseInstanceRetry(flags, finishedWork))));
7967
7974
  break;
7968
7975
  case 22:
7969
7976
  prevProps =
@@ -11620,20 +11627,20 @@ function extractEvents$1(
11620
11627
  }
11621
11628
  }
11622
11629
  for (
11623
- var i$jscomp$inline_1440 = 0;
11624
- i$jscomp$inline_1440 < simpleEventPluginEvents.length;
11625
- i$jscomp$inline_1440++
11630
+ var i$jscomp$inline_1436 = 0;
11631
+ i$jscomp$inline_1436 < simpleEventPluginEvents.length;
11632
+ i$jscomp$inline_1436++
11626
11633
  ) {
11627
- var eventName$jscomp$inline_1441 =
11628
- simpleEventPluginEvents[i$jscomp$inline_1440],
11629
- domEventName$jscomp$inline_1442 =
11630
- eventName$jscomp$inline_1441.toLowerCase(),
11631
- capitalizedEvent$jscomp$inline_1443 =
11632
- eventName$jscomp$inline_1441[0].toUpperCase() +
11633
- eventName$jscomp$inline_1441.slice(1);
11634
+ var eventName$jscomp$inline_1437 =
11635
+ simpleEventPluginEvents[i$jscomp$inline_1436],
11636
+ domEventName$jscomp$inline_1438 =
11637
+ eventName$jscomp$inline_1437.toLowerCase(),
11638
+ capitalizedEvent$jscomp$inline_1439 =
11639
+ eventName$jscomp$inline_1437[0].toUpperCase() +
11640
+ eventName$jscomp$inline_1437.slice(1);
11634
11641
  registerSimpleEvent(
11635
- domEventName$jscomp$inline_1442,
11636
- "on" + capitalizedEvent$jscomp$inline_1443
11642
+ domEventName$jscomp$inline_1438,
11643
+ "on" + capitalizedEvent$jscomp$inline_1439
11637
11644
  );
11638
11645
  }
11639
11646
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -13522,6 +13529,25 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) {
13522
13529
  }
13523
13530
  return instance;
13524
13531
  }
13532
+ function isSuspenseInstanceFallback(instance) {
13533
+ return (
13534
+ "$!" === instance.data ||
13535
+ ("$?" === instance.data && "complete" === instance.ownerDocument.readyState)
13536
+ );
13537
+ }
13538
+ function registerSuspenseInstanceRetry(instance, callback) {
13539
+ var ownerDocument = instance.ownerDocument;
13540
+ if ("$?" !== instance.data || "complete" === ownerDocument.readyState)
13541
+ callback();
13542
+ else {
13543
+ var listener = function () {
13544
+ callback();
13545
+ ownerDocument.removeEventListener("DOMContentLoaded", listener);
13546
+ };
13547
+ ownerDocument.addEventListener("DOMContentLoaded", listener);
13548
+ instance._reactRetry = listener;
13549
+ }
13550
+ }
13525
13551
  function getNextHydratable(node) {
13526
13552
  for (; null != node; node = node.nextSibling) {
13527
13553
  var nodeType = node.nodeType;
@@ -15074,16 +15100,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15074
15100
  0 === i && attemptExplicitHydrationTarget(target);
15075
15101
  }
15076
15102
  };
15077
- var isomorphicReactPackageVersion$jscomp$inline_1687 = React.version;
15103
+ var isomorphicReactPackageVersion$jscomp$inline_1683 = React.version;
15078
15104
  if (
15079
- "19.0.0-rc-1b1283ad-20241203" !==
15080
- isomorphicReactPackageVersion$jscomp$inline_1687
15105
+ "19.0.0-rc-de68d2f4-20241204" !==
15106
+ isomorphicReactPackageVersion$jscomp$inline_1683
15081
15107
  )
15082
15108
  throw Error(
15083
15109
  formatProdErrorMessage(
15084
15110
  527,
15085
- isomorphicReactPackageVersion$jscomp$inline_1687,
15086
- "19.0.0-rc-1b1283ad-20241203"
15111
+ isomorphicReactPackageVersion$jscomp$inline_1683,
15112
+ "19.0.0-rc-de68d2f4-20241204"
15087
15113
  )
15088
15114
  );
15089
15115
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15103,25 +15129,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15103
15129
  null === componentOrElement ? null : componentOrElement.stateNode;
15104
15130
  return componentOrElement;
15105
15131
  };
15106
- var internals$jscomp$inline_2166 = {
15132
+ var internals$jscomp$inline_2159 = {
15107
15133
  bundleType: 0,
15108
- version: "19.0.0-rc-1b1283ad-20241203",
15134
+ version: "19.0.0-rc-de68d2f4-20241204",
15109
15135
  rendererPackageName: "react-dom",
15110
15136
  currentDispatcherRef: ReactSharedInternals,
15111
15137
  findFiberByHostInstance: getClosestInstanceFromNode,
15112
- reconcilerVersion: "19.0.0-rc-1b1283ad-20241203"
15138
+ reconcilerVersion: "19.0.0-rc-de68d2f4-20241204"
15113
15139
  };
15114
15140
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15115
- var hook$jscomp$inline_2167 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15141
+ var hook$jscomp$inline_2160 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15116
15142
  if (
15117
- !hook$jscomp$inline_2167.isDisabled &&
15118
- hook$jscomp$inline_2167.supportsFiber
15143
+ !hook$jscomp$inline_2160.isDisabled &&
15144
+ hook$jscomp$inline_2160.supportsFiber
15119
15145
  )
15120
15146
  try {
15121
- (rendererID = hook$jscomp$inline_2167.inject(
15122
- internals$jscomp$inline_2166
15147
+ (rendererID = hook$jscomp$inline_2160.inject(
15148
+ internals$jscomp$inline_2159
15123
15149
  )),
15124
- (injectedHook = hook$jscomp$inline_2167);
15150
+ (injectedHook = hook$jscomp$inline_2160);
15125
15151
  } catch (err) {}
15126
15152
  }
15127
15153
  exports.createRoot = function (container, options) {
@@ -15213,4 +15239,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15213
15239
  listenToAllSupportedEvents(container);
15214
15240
  return new ReactDOMHydrationRoot(initialChildren);
15215
15241
  };
15216
- exports.version = "19.0.0-rc-1b1283ad-20241203";
15242
+ exports.version = "19.0.0-rc-de68d2f4-20241204";