react-dom 19.2.0-canary-b6c0aa88-20250609 → 19.2.0-canary-b7e2de63-20250611

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.
@@ -159,7 +159,6 @@ var assign = Object.assign,
159
159
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
160
160
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
161
161
  REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
162
- REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
163
162
  REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
164
163
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
165
164
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
@@ -208,7 +207,7 @@ function getComponentNameFromType(type) {
208
207
  case REACT_PORTAL_TYPE:
209
208
  return "Portal";
210
209
  case REACT_CONTEXT_TYPE:
211
- return (type.displayName || "Context") + ".Provider";
210
+ return type.displayName || "Context";
212
211
  case REACT_CONSUMER_TYPE:
213
212
  return (type._context.displayName || "Context") + ".Consumer";
214
213
  case REACT_FORWARD_REF_TYPE:
@@ -2579,7 +2578,6 @@ function createFiberFromTypeAndProps(
2579
2578
  default:
2580
2579
  if ("object" === typeof type && null !== type)
2581
2580
  switch (type.$$typeof) {
2582
- case REACT_PROVIDER_TYPE:
2583
2581
  case REACT_CONTEXT_TYPE:
2584
2582
  fiberTag = 10;
2585
2583
  break a;
@@ -6970,7 +6968,8 @@ function initSuspenseListRenderState(
6970
6968
  isBackwards,
6971
6969
  tail,
6972
6970
  lastContentRow,
6973
- tailMode
6971
+ tailMode,
6972
+ treeForkCount
6974
6973
  ) {
6975
6974
  var renderState = workInProgress.memoizedState;
6976
6975
  null === renderState
@@ -6980,14 +6979,16 @@ function initSuspenseListRenderState(
6980
6979
  renderingStartTime: 0,
6981
6980
  last: lastContentRow,
6982
6981
  tail: tail,
6983
- tailMode: tailMode
6982
+ tailMode: tailMode,
6983
+ treeForkCount: treeForkCount
6984
6984
  })
6985
6985
  : ((renderState.isBackwards = isBackwards),
6986
6986
  (renderState.rendering = null),
6987
6987
  (renderState.renderingStartTime = 0),
6988
6988
  (renderState.last = lastContentRow),
6989
6989
  (renderState.tail = tail),
6990
- (renderState.tailMode = tailMode));
6990
+ (renderState.tailMode = tailMode),
6991
+ (renderState.treeForkCount = treeForkCount));
6991
6992
  }
6992
6993
  function updateSuspenseListComponent(current, workInProgress, renderLanes) {
6993
6994
  var nextProps = workInProgress.pendingProps,
@@ -7002,6 +7003,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
7002
7003
  : (suspenseContext &= 1);
7003
7004
  push(suspenseStackCursor, suspenseContext);
7004
7005
  reconcileChildren(current, workInProgress, nextProps, renderLanes);
7006
+ nextProps = isHydrating ? treeForkCount : 0;
7005
7007
  if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
7006
7008
  a: for (current = workInProgress.child; null !== current; ) {
7007
7009
  if (13 === current.tag)
@@ -7041,7 +7043,8 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
7041
7043
  !1,
7042
7044
  revealOrder,
7043
7045
  renderLanes,
7044
- tailMode
7046
+ tailMode,
7047
+ nextProps
7045
7048
  );
7046
7049
  break;
7047
7050
  case "backwards":
@@ -7064,11 +7067,19 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
7064
7067
  !0,
7065
7068
  renderLanes,
7066
7069
  null,
7067
- tailMode
7070
+ tailMode,
7071
+ nextProps
7068
7072
  );
7069
7073
  break;
7070
7074
  case "together":
7071
- initSuspenseListRenderState(workInProgress, !1, null, null, void 0);
7075
+ initSuspenseListRenderState(
7076
+ workInProgress,
7077
+ !1,
7078
+ null,
7079
+ null,
7080
+ void 0,
7081
+ nextProps
7082
+ );
7072
7083
  break;
7073
7084
  default:
7074
7085
  workInProgress.memoizedState = null;
@@ -8270,12 +8281,12 @@ function completeWork(current, workInProgress, renderLanes) {
8270
8281
  );
8271
8282
  case 19:
8272
8283
  pop(suspenseStackCursor);
8273
- type = workInProgress.memoizedState;
8274
- if (null === type) return bubbleProperties(workInProgress), null;
8275
- newProps = 0 !== (workInProgress.flags & 128);
8276
- nextResource = type.rendering;
8284
+ newProps = workInProgress.memoizedState;
8285
+ if (null === newProps) return bubbleProperties(workInProgress), null;
8286
+ type = 0 !== (workInProgress.flags & 128);
8287
+ nextResource = newProps.rendering;
8277
8288
  if (null === nextResource)
8278
- if (newProps) cutOffTailIfNeeded(type, !1);
8289
+ if (type) cutOffTailIfNeeded(newProps, !1);
8279
8290
  else {
8280
8291
  if (
8281
8292
  0 !== workInProgressRootExitStatus ||
@@ -8285,7 +8296,7 @@ function completeWork(current, workInProgress, renderLanes) {
8285
8296
  nextResource = findFirstSuspended(current);
8286
8297
  if (null !== nextResource) {
8287
8298
  workInProgress.flags |= 128;
8288
- cutOffTailIfNeeded(type, !1);
8299
+ cutOffTailIfNeeded(newProps, !1);
8289
8300
  current = nextResource.updateQueue;
8290
8301
  workInProgress.updateQueue = current;
8291
8302
  scheduleRetryEffect(workInProgress, current);
@@ -8298,62 +8309,68 @@ function completeWork(current, workInProgress, renderLanes) {
8298
8309
  suspenseStackCursor,
8299
8310
  (suspenseStackCursor.current & 1) | 2
8300
8311
  );
8312
+ isHydrating &&
8313
+ pushTreeFork(workInProgress, newProps.treeForkCount);
8301
8314
  return workInProgress.child;
8302
8315
  }
8303
8316
  current = current.sibling;
8304
8317
  }
8305
- null !== type.tail &&
8318
+ null !== newProps.tail &&
8306
8319
  now() > workInProgressRootRenderTargetTime &&
8307
8320
  ((workInProgress.flags |= 128),
8308
- (newProps = !0),
8309
- cutOffTailIfNeeded(type, !1),
8321
+ (type = !0),
8322
+ cutOffTailIfNeeded(newProps, !1),
8310
8323
  (workInProgress.lanes = 4194304));
8311
8324
  }
8312
8325
  else {
8313
- if (!newProps)
8326
+ if (!type)
8314
8327
  if (
8315
8328
  ((current = findFirstSuspended(nextResource)), null !== current)
8316
8329
  ) {
8317
8330
  if (
8318
8331
  ((workInProgress.flags |= 128),
8319
- (newProps = !0),
8332
+ (type = !0),
8320
8333
  (current = current.updateQueue),
8321
8334
  (workInProgress.updateQueue = current),
8322
8335
  scheduleRetryEffect(workInProgress, current),
8323
- cutOffTailIfNeeded(type, !0),
8324
- null === type.tail &&
8325
- "hidden" === type.tailMode &&
8336
+ cutOffTailIfNeeded(newProps, !0),
8337
+ null === newProps.tail &&
8338
+ "hidden" === newProps.tailMode &&
8326
8339
  !nextResource.alternate &&
8327
8340
  !isHydrating)
8328
8341
  )
8329
8342
  return bubbleProperties(workInProgress), null;
8330
8343
  } else
8331
- 2 * now() - type.renderingStartTime >
8344
+ 2 * now() - newProps.renderingStartTime >
8332
8345
  workInProgressRootRenderTargetTime &&
8333
8346
  536870912 !== renderLanes &&
8334
8347
  ((workInProgress.flags |= 128),
8335
- (newProps = !0),
8336
- cutOffTailIfNeeded(type, !1),
8348
+ (type = !0),
8349
+ cutOffTailIfNeeded(newProps, !1),
8337
8350
  (workInProgress.lanes = 4194304));
8338
- type.isBackwards
8351
+ newProps.isBackwards
8339
8352
  ? ((nextResource.sibling = workInProgress.child),
8340
8353
  (workInProgress.child = nextResource))
8341
- : ((current = type.last),
8354
+ : ((current = newProps.last),
8342
8355
  null !== current
8343
8356
  ? (current.sibling = nextResource)
8344
8357
  : (workInProgress.child = nextResource),
8345
- (type.last = nextResource));
8358
+ (newProps.last = nextResource));
8346
8359
  }
8347
- if (null !== type.tail)
8360
+ if (null !== newProps.tail)
8348
8361
  return (
8349
- (workInProgress = type.tail),
8350
- (type.rendering = workInProgress),
8351
- (type.tail = workInProgress.sibling),
8352
- (type.renderingStartTime = now()),
8353
- (workInProgress.sibling = null),
8354
- (current = suspenseStackCursor.current),
8355
- push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
8356
- workInProgress
8362
+ (current = newProps.tail),
8363
+ (newProps.rendering = current),
8364
+ (newProps.tail = current.sibling),
8365
+ (newProps.renderingStartTime = now()),
8366
+ (current.sibling = null),
8367
+ (renderLanes = suspenseStackCursor.current),
8368
+ push(
8369
+ suspenseStackCursor,
8370
+ type ? (renderLanes & 1) | 2 : renderLanes & 1
8371
+ ),
8372
+ isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount),
8373
+ current
8357
8374
  );
8358
8375
  bubbleProperties(workInProgress);
8359
8376
  return null;
@@ -15693,14 +15710,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15693
15710
  };
15694
15711
  var isomorphicReactPackageVersion$jscomp$inline_1851 = React.version;
15695
15712
  if (
15696
- "19.2.0-canary-b6c0aa88-20250609" !==
15713
+ "19.2.0-canary-b7e2de63-20250611" !==
15697
15714
  isomorphicReactPackageVersion$jscomp$inline_1851
15698
15715
  )
15699
15716
  throw Error(
15700
15717
  formatProdErrorMessage(
15701
15718
  527,
15702
15719
  isomorphicReactPackageVersion$jscomp$inline_1851,
15703
- "19.2.0-canary-b6c0aa88-20250609"
15720
+ "19.2.0-canary-b7e2de63-20250611"
15704
15721
  )
15705
15722
  );
15706
15723
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15722,10 +15739,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15722
15739
  };
15723
15740
  var internals$jscomp$inline_2344 = {
15724
15741
  bundleType: 0,
15725
- version: "19.2.0-canary-b6c0aa88-20250609",
15742
+ version: "19.2.0-canary-b7e2de63-20250611",
15726
15743
  rendererPackageName: "react-dom",
15727
15744
  currentDispatcherRef: ReactSharedInternals,
15728
- reconcilerVersion: "19.2.0-canary-b6c0aa88-20250609"
15745
+ reconcilerVersion: "19.2.0-canary-b7e2de63-20250611"
15729
15746
  };
15730
15747
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15731
15748
  var hook$jscomp$inline_2345 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15823,4 +15840,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15823
15840
  listenToAllSupportedEvents(container);
15824
15841
  return new ReactDOMHydrationRoot(initialChildren);
15825
15842
  };
15826
- exports.version = "19.2.0-canary-b6c0aa88-20250609";
15843
+ exports.version = "19.2.0-canary-b7e2de63-20250611";