@@ -3146,7 +3146,6 @@ function prepareToHydrateHostInstance(fiber) {
3146
3146
props = fiber.memoizedProps;
3147
3147
instance[internalInstanceKey] = fiber;
3148
3148
instance[internalPropsKey] = props;
3149
- var isConcurrentMode = 0 !== (fiber.mode & 1);
3150
3149
switch (type) {
3151
3150
case "dialog":
3152
3151
listenToNonDelegatedEvent("cancel", instance);
@@ -3188,19 +3187,15 @@ function prepareToHydrateHostInstance(fiber) {
3188
3187
}
3189
3188
props.hasOwnProperty("onScroll") &&
3190
3189
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]));
3204
3199
switch (type) {
3205
3200
case "input":
3206
3201
track(instance);
@@ -3216,7 +3211,7 @@ function prepareToHydrateHostInstance(fiber) {
3216
3211
default:
3217
3212
"function" === typeof props.onClick && (instance.onclick = noop$1);
3218
3213
}
3219
- instance = i ;
3214
+ instance = updatePayload ;
3220
3215
fiber.updateQueue = instance;
3221
3216
return null !== instance ? !0 : !1;
3222
3217
}
@@ -8109,43 +8104,25 @@ function completeWork(current, workInProgress, renderLanes) {
8109
8104
throw Error(formatProdErrorMessage(166));
8110
8105
current = rootInstanceStackCursor.current;
8111
8106
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);
8149
8126
} else
8150
8127
(current =
8151
8128
getOwnerDocumentFromRootContainer(current).createTextNode(
@@ -8201,18 +8178,19 @@ function completeWork(current, workInProgress, renderLanes) {
8201
8178
return (workInProgress.lanes = renderLanes), workInProgress;
8202
8179
renderLanes = null !== newProps;
8203
8180
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;
8207
8184
null !== newProps.alternate &&
8208
8185
null !== newProps.alternate.memoizedState &&
8209
8186
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;
8212
8189
null !== newProps.memoizedState &&
8213
8190
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
+ }
8216
8194
renderLanes !== current &&
8217
8195
(enableTransitionTracing && (workInProgress.child.flags |= 2048),
8218
8196
renderLanes && (workInProgress.child.flags |= 8192));
@@ -8247,20 +8225,20 @@ function completeWork(current, workInProgress, renderLanes) {
8247
8225
type = workInProgress.memoizedState;
8248
8226
if (null === type) return bubbleProperties(workInProgress), null;
8249
8227
newProps = 0 !== (workInProgress.flags & 128);
8250
- returnFiber = type.rendering;
8251
- if (null === returnFiber )
8228
+ cache$142 = type.rendering;
8229
+ if (null === cache$142 )
8252
8230
if (newProps) cutOffTailIfNeeded(type, !1);
8253
8231
else {
8254
8232
if (
8255
8233
0 !== workInProgressRootExitStatus ||
8256
8234
(null !== current && 0 !== (current.flags & 128))
8257
8235
)
8258
8236
for (current = workInProgress.child; null !== current; ) {
8259
- returnFiber = findFirstSuspended(current);
8260
- if (null !== returnFiber ) {
8237
+ cache$142 = findFirstSuspended(current);
8238
+ if (null !== cache$142 ) {
8261
8239
workInProgress.flags |= 128;
8262
8240
cutOffTailIfNeeded(type, !1);
8263
- current = returnFiber .updateQueue;
8241
+ current = cache$142 .updateQueue;
8264
8242
workInProgress.updateQueue = current;
8265
8243
scheduleRetryEffect(workInProgress, current);
8266
8244
workInProgress.subtreeFlags = 0;
@@ -8285,7 +8263,7 @@ function completeWork(current, workInProgress, renderLanes) {
8285
8263
}
8286
8264
else {
8287
8265
if (!newProps)
8288
- if (((current = findFirstSuspended(returnFiber )), null !== current)) {
8266
+ if (((current = findFirstSuspended(cache$142 )), null !== current)) {
8289
8267
if (
8290
8268
((workInProgress.flags |= 128),
8291
8269
(newProps = !0),
@@ -8295,7 +8273,7 @@ function completeWork(current, workInProgress, renderLanes) {
8295
8273
cutOffTailIfNeeded(type, !0),
8296
8274
null === type.tail &&
8297
8275
"hidden" === type.tailMode &&
8298
- !returnFiber .alternate &&
8276
+ !cache$142 .alternate &&
8299
8277
!isHydrating)
8300
8278
)
8301
8279
return bubbleProperties(workInProgress), null;
@@ -8308,13 +8286,13 @@ function completeWork(current, workInProgress, renderLanes) {
8308
8286
cutOffTailIfNeeded(type, !1),
8309
8287
(workInProgress.lanes = 8388608));
8310
8288
type.isBackwards
8311
- ? ((returnFiber .sibling = workInProgress.child),
8312
- (workInProgress.child = returnFiber ))
8289
+ ? ((cache$142 .sibling = workInProgress.child),
8290
+ (workInProgress.child = cache$142 ))
8313
8291
: ((current = type.last),
8314
8292
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 ));
8318
8296
}
8319
8297
if (null !== type.tail)
8320
8298
return (
@@ -15830,7 +15808,7 @@ Internals.Events = [
15830
15808
var devToolsConfig$jscomp$inline_1775 = {
15831
15809
findFiberByHostInstance: getClosestInstanceFromNode,
15832
15810
bundleType: 0,
15833
- version: "18.3.0-www-classic-0ef6286c ",
15811
+ version: "18.3.0-www-classic-1f5575cc ",
15834
15812
rendererPackageName: "react-dom"
15835
15813
};
15836
15814
var internals$jscomp$inline_2155 = {
@@ -15860,7 +15838,7 @@ var internals$jscomp$inline_2155 = {
15860
15838
scheduleRoot: null,
15861
15839
setRefreshHandler: null,
15862
15840
getCurrentFiber: null,
15863
- reconcilerVersion: "18.3.0-www-classic-0ef6286c "
15841
+ reconcilerVersion: "18.3.0-www-classic-1f5575cc "
15864
15842
};
15865
15843
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15866
15844
var hook$jscomp$inline_2156 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16100,4 +16078,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
16100
16078
);
16101
16079
};
16102
16080
exports.unstable_runWithPriority = runWithPriority;
16103
- exports.version = "18.3.0-www-classic-0ef6286c ";
16081
+ exports.version = "18.3.0-www-classic-1f5575cc ";
0 commit comments