@@ -3146,7 +3146,6 @@ function prepareToHydrateHostInstance(fiber) {
31463146 props = fiber.memoizedProps;
31473147 instance[internalInstanceKey] = fiber;
31483148 instance[internalPropsKey] = props;
3149- var isConcurrentMode = 0 !== (fiber.mode & 1);
31503149 switch (type) {
31513150 case "dialog":
31523151 listenToNonDelegatedEvent("cancel", instance);
@@ -3188,19 +3187,15 @@ function prepareToHydrateHostInstance(fiber) {
31883187 }
31893188 props.hasOwnProperty("onScroll") &&
31903189 listenToNonDelegatedEvent("scroll", instance);
3191- i = null;
3192- var children = props.children;
3193- if (
3194- ("string" === typeof children || "number" === typeof children) &&
3195- instance.textContent !== "" + children
3196- ) {
3197- if (!0 !== props.suppressHydrationWarning) {
3198- var serverText = instance.textContent;
3199- normalizeMarkupForTextOrAttribute(children);
3200- normalizeMarkupForTextOrAttribute(serverText);
3201- }
3202- isConcurrentMode || (i = ["children", children]);
3203- }
3190+ var updatePayload = null;
3191+ i = props.children;
3192+ ("string" !== typeof i && "number" !== typeof i) ||
3193+ instance.textContent === "" + i ||
3194+ (!0 !== props.suppressHydrationWarning &&
3195+ ((updatePayload = instance.textContent),
3196+ normalizeMarkupForTextOrAttribute(i),
3197+ normalizeMarkupForTextOrAttribute(updatePayload)),
3198+ (updatePayload = ["children", i]));
32043199 switch (type) {
32053200 case "input":
32063201 track(instance);
@@ -3216,7 +3211,7 @@ function prepareToHydrateHostInstance(fiber) {
32163211 default:
32173212 "function" === typeof props.onClick && (instance.onclick = noop$1);
32183213 }
3219- instance = i ;
3214+ instance = updatePayload ;
32203215 fiber.updateQueue = instance;
32213216 return null !== instance ? !0 : !1;
32223217}
@@ -8109,43 +8104,25 @@ function completeWork(current, workInProgress, renderLanes) {
81098104 throw Error(formatProdErrorMessage(166));
81108105 current = rootInstanceStackCursor.current;
81118106 if (popHydrationState(workInProgress)) {
8112- a: {
8113- newProps = workInProgress.stateNode;
8114- current = workInProgress.memoizedProps;
8115- newProps[internalInstanceKey] = workInProgress;
8116- if ((renderLanes = newProps.nodeValue !== current)) {
8117- var returnFiber = hydrationParentFiber;
8118- if (null !== returnFiber)
8119- switch (returnFiber.tag) {
8120- case 3:
8121- type = 0 !== (returnFiber.mode & 1);
8122- newProps = newProps.nodeValue;
8123- normalizeMarkupForTextOrAttribute(current);
8124- normalizeMarkupForTextOrAttribute(newProps);
8125- if (type) {
8126- current = !1;
8127- break a;
8128- }
8129- break;
8130- case 27:
8131- case 5:
8132- if (
8133- ((type = 0 !== (returnFiber.mode & 1)),
8134- !0 !==
8135- returnFiber.memoizedProps.suppressHydrationWarning &&
8136- ((newProps = newProps.nodeValue),
8137- normalizeMarkupForTextOrAttribute(current),
8138- normalizeMarkupForTextOrAttribute(newProps)),
8139- type)
8140- ) {
8141- current = !1;
8142- break a;
8143- }
8144- }
8145- }
8146- current = renderLanes;
8147- }
8148- current && markUpdate(workInProgress);
8107+ newProps = workInProgress.stateNode;
8108+ current = workInProgress.memoizedProps;
8109+ newProps[internalInstanceKey] = workInProgress;
8110+ if ((renderLanes = newProps.nodeValue !== current))
8111+ if (((type = hydrationParentFiber), null !== type))
8112+ switch (type.tag) {
8113+ case 3:
8114+ newProps = newProps.nodeValue;
8115+ normalizeMarkupForTextOrAttribute(current);
8116+ normalizeMarkupForTextOrAttribute(newProps);
8117+ break;
8118+ case 27:
8119+ case 5:
8120+ !0 !== type.memoizedProps.suppressHydrationWarning &&
8121+ ((newProps = newProps.nodeValue),
8122+ normalizeMarkupForTextOrAttribute(current),
8123+ normalizeMarkupForTextOrAttribute(newProps));
8124+ }
8125+ renderLanes && markUpdate(workInProgress);
81498126 } else
81508127 (current =
81518128 getOwnerDocumentFromRootContainer(current).createTextNode(
@@ -8201,18 +8178,19 @@ function completeWork(current, workInProgress, renderLanes) {
82018178 return (workInProgress.lanes = renderLanes), workInProgress;
82028179 renderLanes = null !== newProps;
82038180 current = null !== current && null !== current.memoizedState;
8204- renderLanes &&
8205- (( newProps = workInProgress.child),
8206- ( type = null),
8181+ if ( renderLanes) {
8182+ newProps = workInProgress.child;
8183+ type = null;
82078184 null !== newProps.alternate &&
82088185 null !== newProps.alternate.memoizedState &&
82098186 null !== newProps.alternate.memoizedState.cachePool &&
8210- (type = newProps.alternate.memoizedState.cachePool.pool),
8211- (returnFiber = null),
8187+ (type = newProps.alternate.memoizedState.cachePool.pool);
8188+ var cache$142 = null;
82128189 null !== newProps.memoizedState &&
82138190 null !== newProps.memoizedState.cachePool &&
8214- (returnFiber = newProps.memoizedState.cachePool.pool),
8215- returnFiber !== type && (newProps.flags |= 2048));
8191+ (cache$142 = newProps.memoizedState.cachePool.pool);
8192+ cache$142 !== type && (newProps.flags |= 2048);
8193+ }
82168194 renderLanes !== current &&
82178195 (enableTransitionTracing && (workInProgress.child.flags |= 2048),
82188196 renderLanes && (workInProgress.child.flags |= 8192));
@@ -8247,20 +8225,20 @@ function completeWork(current, workInProgress, renderLanes) {
82478225 type = workInProgress.memoizedState;
82488226 if (null === type) return bubbleProperties(workInProgress), null;
82498227 newProps = 0 !== (workInProgress.flags & 128);
8250- returnFiber = type.rendering;
8251- if (null === returnFiber )
8228+ cache$142 = type.rendering;
8229+ if (null === cache$142 )
82528230 if (newProps) cutOffTailIfNeeded(type, !1);
82538231 else {
82548232 if (
82558233 0 !== workInProgressRootExitStatus ||
82568234 (null !== current && 0 !== (current.flags & 128))
82578235 )
82588236 for (current = workInProgress.child; null !== current; ) {
8259- returnFiber = findFirstSuspended(current);
8260- if (null !== returnFiber ) {
8237+ cache$142 = findFirstSuspended(current);
8238+ if (null !== cache$142 ) {
82618239 workInProgress.flags |= 128;
82628240 cutOffTailIfNeeded(type, !1);
8263- current = returnFiber .updateQueue;
8241+ current = cache$142 .updateQueue;
82648242 workInProgress.updateQueue = current;
82658243 scheduleRetryEffect(workInProgress, current);
82668244 workInProgress.subtreeFlags = 0;
@@ -8285,7 +8263,7 @@ function completeWork(current, workInProgress, renderLanes) {
82858263 }
82868264 else {
82878265 if (!newProps)
8288- if (((current = findFirstSuspended(returnFiber )), null !== current)) {
8266+ if (((current = findFirstSuspended(cache$142 )), null !== current)) {
82898267 if (
82908268 ((workInProgress.flags |= 128),
82918269 (newProps = !0),
@@ -8295,7 +8273,7 @@ function completeWork(current, workInProgress, renderLanes) {
82958273 cutOffTailIfNeeded(type, !0),
82968274 null === type.tail &&
82978275 "hidden" === type.tailMode &&
8298- !returnFiber .alternate &&
8276+ !cache$142 .alternate &&
82998277 !isHydrating)
83008278 )
83018279 return bubbleProperties(workInProgress), null;
@@ -8308,13 +8286,13 @@ function completeWork(current, workInProgress, renderLanes) {
83088286 cutOffTailIfNeeded(type, !1),
83098287 (workInProgress.lanes = 8388608));
83108288 type.isBackwards
8311- ? ((returnFiber .sibling = workInProgress.child),
8312- (workInProgress.child = returnFiber ))
8289+ ? ((cache$142 .sibling = workInProgress.child),
8290+ (workInProgress.child = cache$142 ))
83138291 : ((current = type.last),
83148292 null !== current
8315- ? (current.sibling = returnFiber )
8316- : (workInProgress.child = returnFiber ),
8317- (type.last = returnFiber ));
8293+ ? (current.sibling = cache$142 )
8294+ : (workInProgress.child = cache$142 ),
8295+ (type.last = cache$142 ));
83188296 }
83198297 if (null !== type.tail)
83208298 return (
@@ -15830,7 +15808,7 @@ Internals.Events = [
1583015808var devToolsConfig$jscomp$inline_1775 = {
1583115809 findFiberByHostInstance: getClosestInstanceFromNode,
1583215810 bundleType: 0,
15833- version: "18.3.0-www-classic-0ef6286c ",
15811+ version: "18.3.0-www-classic-1f5575cc ",
1583415812 rendererPackageName: "react-dom"
1583515813};
1583615814var internals$jscomp$inline_2155 = {
@@ -15860,7 +15838,7 @@ var internals$jscomp$inline_2155 = {
1586015838 scheduleRoot: null,
1586115839 setRefreshHandler: null,
1586215840 getCurrentFiber: null,
15863- reconcilerVersion: "18.3.0-www-classic-0ef6286c "
15841+ reconcilerVersion: "18.3.0-www-classic-1f5575cc "
1586415842};
1586515843if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1586615844 var hook$jscomp$inline_2156 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16100,4 +16078,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
1610016078 );
1610116079};
1610216080exports.unstable_runWithPriority = runWithPriority;
16103- exports.version = "18.3.0-www-classic-0ef6286c ";
16081+ exports.version = "18.3.0-www-classic-1f5575cc ";
0 commit comments