react-native 0.88.0-rc.0 → 0.88.0-rc.1
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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +3056 -1531
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +2239 -1011
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2451 -1124
- package/React/Base/RCTVersion.m +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +8 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +11 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +12 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Canary_Android.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +15 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +4 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +5 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +6 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +74 -56
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +4 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +5 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +10 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSCanary.h +5 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +2 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +6 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +3 -1
- package/package.json +10 -10
- package/scripts/codegen/generate-artifacts-executor/generateRCTThirdPartyComponents.js +18 -4
- package/scripts/setup-apple-spm.js +82 -4
- package/scripts/spm/autolinking-plugins.js +8 -5
- package/scripts/spm/expand-spm-dependencies.js +217 -156
- package/scripts/spm/generate-spm-autolinking.js +114 -88
- package/scripts/spm/generate-spm-xcodeproj.js +67 -22
- package/scripts/spm/ios-deployment-target.js +378 -0
- package/scripts/spm/read-podspec.js +156 -8
- package/scripts/spm/scaffold-package-swift.js +272 -105
- package/scripts/spm/spm-pbxproj.js +36 -21
- package/scripts/spm/spm-types.js +25 -8
- package/scripts/spm/spm-utils.js +26 -0
- package/scripts/spm/swiftpm-config.js +245 -0
- package/scripts/spm/sync-spm-autolinking.js +11 -2
- package/sdks/hermes-engine/version.properties +1 -1
- package/src/private/featureflags/ReactNativeFeatureFlags.js +10 -5
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -1
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +6 -4
- package/src/private/webapis/dom/nodes/ReadOnlyText.js +6 -4
- package/src/react-private-interface.js +4 -0
- package/src/react-private-interface.js.flow +2 -0
- package/types_generated/Libraries/ReactNative/FabricUIManager.d.ts +47 -0
- package/types_generated/src/react-private-interface.d.ts +4 -1
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<3c59d85aa170213f7f757b2501b0b2f6>>
|
|
11
11
|
*
|
|
12
12
|
* This file was sync'd from the facebook/react repository.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
"use strict";
|
|
16
|
-
require("react-native/
|
|
17
|
-
var
|
|
16
|
+
require("react-native/setup-env");
|
|
17
|
+
var reactPrivateInterface = require("react-native/react-private-interface"),
|
|
18
18
|
React = require("react"),
|
|
19
19
|
Scheduler = require("scheduler"),
|
|
20
20
|
isArrayImpl = Array.isArray,
|
|
@@ -71,7 +71,26 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
71
71
|
} catch (x$1) {
|
|
72
72
|
control = x$1;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
Fake = !1;
|
|
75
|
+
try {
|
|
76
|
+
var prevProps = Object.getOwnPropertyDescriptor(
|
|
77
|
+
fn.prototype,
|
|
78
|
+
"props"
|
|
79
|
+
);
|
|
80
|
+
Object.defineProperty(fn.prototype, "props", {
|
|
81
|
+
configurable: !0,
|
|
82
|
+
set: function () {
|
|
83
|
+
throw Error();
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
Fake = !0;
|
|
87
|
+
new fn();
|
|
88
|
+
} finally {
|
|
89
|
+
Fake &&
|
|
90
|
+
(void 0 !== prevProps
|
|
91
|
+
? Object.defineProperty(fn.prototype, "props", prevProps)
|
|
92
|
+
: delete fn.prototype.props);
|
|
93
|
+
}
|
|
75
94
|
}
|
|
76
95
|
} else {
|
|
77
96
|
try {
|
|
@@ -196,6 +215,8 @@ function describeFiber(fiber, childFiber) {
|
|
|
196
215
|
return describeNativeComponentFrame(fiber.type, !0);
|
|
197
216
|
case 31:
|
|
198
217
|
return describeBuiltInComponentFrame("Activity");
|
|
218
|
+
case 30:
|
|
219
|
+
return describeBuiltInComponentFrame("ViewTransition");
|
|
199
220
|
default:
|
|
200
221
|
return "";
|
|
201
222
|
}
|
|
@@ -228,12 +249,13 @@ var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
|
|
|
228
249
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
229
250
|
REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
230
251
|
Symbol.for("react.scope");
|
|
231
|
-
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity")
|
|
232
|
-
Symbol.for("react.legacy_hidden");
|
|
252
|
+
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
253
|
+
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden");
|
|
233
254
|
Symbol.for("react.tracing_marker");
|
|
234
|
-
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel")
|
|
235
|
-
Symbol.for("react.view_transition")
|
|
236
|
-
|
|
255
|
+
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
256
|
+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
|
257
|
+
REACT_RECOVERABLE_TYPE = Symbol.for("react.recoverable"),
|
|
258
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
237
259
|
function getIteratorFn(maybeIterable) {
|
|
238
260
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
239
261
|
maybeIterable =
|
|
@@ -241,7 +263,8 @@ function getIteratorFn(maybeIterable) {
|
|
|
241
263
|
maybeIterable["@@iterator"];
|
|
242
264
|
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
243
265
|
}
|
|
244
|
-
var
|
|
266
|
+
var REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
|
|
267
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
245
268
|
function getComponentNameFromType(type) {
|
|
246
269
|
if (null == type) return null;
|
|
247
270
|
if ("function" === typeof type)
|
|
@@ -262,6 +285,8 @@ function getComponentNameFromType(type) {
|
|
|
262
285
|
return "SuspenseList";
|
|
263
286
|
case REACT_ACTIVITY_TYPE:
|
|
264
287
|
return "Activity";
|
|
288
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
289
|
+
return "ViewTransition";
|
|
265
290
|
}
|
|
266
291
|
if ("object" === typeof type)
|
|
267
292
|
switch (type.$$typeof) {
|
|
@@ -301,11 +326,14 @@ var hasError = !1,
|
|
|
301
326
|
getNodeFromInstance$1 = null;
|
|
302
327
|
function executeDispatch(event, listener, inst) {
|
|
303
328
|
event.currentTarget = getNodeFromInstance$1(inst);
|
|
329
|
+
inst = global.event;
|
|
330
|
+
global.event = event;
|
|
304
331
|
try {
|
|
305
332
|
listener(event);
|
|
306
333
|
} catch (error) {
|
|
307
334
|
hasError || ((hasError = !0), (caughtError = error));
|
|
308
335
|
}
|
|
336
|
+
global.event = inst;
|
|
309
337
|
event.currentTarget = null;
|
|
310
338
|
}
|
|
311
339
|
function executeDirectDispatch(event) {
|
|
@@ -321,6 +349,19 @@ function executeDirectDispatch(event) {
|
|
|
321
349
|
event._dispatchInstances = null;
|
|
322
350
|
return dispatchListener;
|
|
323
351
|
}
|
|
352
|
+
function currentTimeStamp() {
|
|
353
|
+
currentTimeStamp =
|
|
354
|
+
"object" === typeof performance &&
|
|
355
|
+
null !== performance &&
|
|
356
|
+
"function" === typeof performance.now
|
|
357
|
+
? function () {
|
|
358
|
+
return performance.now();
|
|
359
|
+
}
|
|
360
|
+
: function () {
|
|
361
|
+
return Date.now();
|
|
362
|
+
};
|
|
363
|
+
return currentTimeStamp();
|
|
364
|
+
}
|
|
324
365
|
function functionThatReturnsTrue() {
|
|
325
366
|
return !0;
|
|
326
367
|
}
|
|
@@ -397,7 +438,7 @@ SyntheticEvent.Interface = {
|
|
|
397
438
|
bubbles: null,
|
|
398
439
|
cancelable: null,
|
|
399
440
|
timeStamp: function (event) {
|
|
400
|
-
return event.timeStamp ||
|
|
441
|
+
return event.timeStamp || event.timestamp || currentTimeStamp();
|
|
401
442
|
},
|
|
402
443
|
defaultPrevented: null,
|
|
403
444
|
isTrusted: null
|
|
@@ -1100,11 +1141,10 @@ function getListener(inst, registrationName) {
|
|
|
1100
1141
|
return inst;
|
|
1101
1142
|
}
|
|
1102
1143
|
var customBubblingEventTypes =
|
|
1103
|
-
|
|
1144
|
+
reactPrivateInterface.ReactNativeViewConfigRegistry
|
|
1104
1145
|
.customBubblingEventTypes,
|
|
1105
1146
|
customDirectEventTypes =
|
|
1106
|
-
|
|
1107
|
-
.customDirectEventTypes;
|
|
1147
|
+
reactPrivateInterface.ReactNativeViewConfigRegistry.customDirectEventTypes;
|
|
1108
1148
|
function accumulateDirectionalDispatches(inst, phase, event) {
|
|
1109
1149
|
if (
|
|
1110
1150
|
(phase = getListener(
|
|
@@ -1169,7 +1209,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
1169
1209
|
"ReactNativeBridgeEventPlugin"
|
|
1170
1210
|
]);
|
|
1171
1211
|
recomputePluginOrdering();
|
|
1172
|
-
var injectedNamesToPlugins$jscomp$
|
|
1212
|
+
var injectedNamesToPlugins$jscomp$inline_294 = {
|
|
1173
1213
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
1174
1214
|
ReactNativeBridgeEventPlugin: {
|
|
1175
1215
|
eventTypes: {},
|
|
@@ -1215,32 +1255,32 @@ var injectedNamesToPlugins$jscomp$inline_277 = {
|
|
|
1215
1255
|
}
|
|
1216
1256
|
}
|
|
1217
1257
|
},
|
|
1218
|
-
isOrderingDirty$jscomp$
|
|
1219
|
-
pluginName$jscomp$
|
|
1220
|
-
for (pluginName$jscomp$
|
|
1258
|
+
isOrderingDirty$jscomp$inline_295 = !1,
|
|
1259
|
+
pluginName$jscomp$inline_296;
|
|
1260
|
+
for (pluginName$jscomp$inline_296 in injectedNamesToPlugins$jscomp$inline_294)
|
|
1221
1261
|
if (
|
|
1222
|
-
injectedNamesToPlugins$jscomp$
|
|
1223
|
-
pluginName$jscomp$
|
|
1262
|
+
injectedNamesToPlugins$jscomp$inline_294.hasOwnProperty(
|
|
1263
|
+
pluginName$jscomp$inline_296
|
|
1224
1264
|
)
|
|
1225
1265
|
) {
|
|
1226
|
-
var pluginModule$jscomp$
|
|
1227
|
-
injectedNamesToPlugins$jscomp$
|
|
1266
|
+
var pluginModule$jscomp$inline_297 =
|
|
1267
|
+
injectedNamesToPlugins$jscomp$inline_294[pluginName$jscomp$inline_296];
|
|
1228
1268
|
if (
|
|
1229
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
1230
|
-
namesToPlugins[pluginName$jscomp$
|
|
1231
|
-
pluginModule$jscomp$
|
|
1269
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_296) ||
|
|
1270
|
+
namesToPlugins[pluginName$jscomp$inline_296] !==
|
|
1271
|
+
pluginModule$jscomp$inline_297
|
|
1232
1272
|
) {
|
|
1233
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
1273
|
+
if (namesToPlugins[pluginName$jscomp$inline_296])
|
|
1234
1274
|
throw Error(
|
|
1235
1275
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
1236
|
-
(pluginName$jscomp$
|
|
1276
|
+
(pluginName$jscomp$inline_296 + "`.")
|
|
1237
1277
|
);
|
|
1238
|
-
namesToPlugins[pluginName$jscomp$
|
|
1239
|
-
pluginModule$jscomp$
|
|
1240
|
-
isOrderingDirty$jscomp$
|
|
1278
|
+
namesToPlugins[pluginName$jscomp$inline_296] =
|
|
1279
|
+
pluginModule$jscomp$inline_297;
|
|
1280
|
+
isOrderingDirty$jscomp$inline_295 = !0;
|
|
1241
1281
|
}
|
|
1242
1282
|
}
|
|
1243
|
-
isOrderingDirty$jscomp$
|
|
1283
|
+
isOrderingDirty$jscomp$inline_295 && recomputePluginOrdering();
|
|
1244
1284
|
function batchedUpdatesImpl(fn, bookkeeping) {
|
|
1245
1285
|
return fn(bookkeeping);
|
|
1246
1286
|
}
|
|
@@ -1274,46 +1314,71 @@ function executeDispatchesAndReleaseTopLevel(e) {
|
|
|
1274
1314
|
e.isPersistent() || e.constructor.release(e);
|
|
1275
1315
|
}
|
|
1276
1316
|
}
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1317
|
+
var _enableNativeEventTargetEventDispatching = null;
|
|
1318
|
+
function dispatchEvent(target, topLevelType, nativeEventParam) {
|
|
1319
|
+
var nativeEvent =
|
|
1320
|
+
null != nativeEventParam && "object" === typeof nativeEventParam
|
|
1321
|
+
? nativeEventParam
|
|
1322
|
+
: {},
|
|
1323
|
+
eventTarget = null;
|
|
1324
|
+
null != target &&
|
|
1325
|
+
((nativeEventParam = target.stateNode),
|
|
1326
|
+
null != nativeEventParam &&
|
|
1327
|
+
(eventTarget = getPublicInstance(nativeEventParam)));
|
|
1283
1328
|
batchedUpdates$1(function () {
|
|
1284
1329
|
var event = { eventName: topLevelType, nativeEvent: nativeEvent };
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1330
|
+
reactPrivateInterface.RawEventEmitter.emit(topLevelType, event);
|
|
1331
|
+
reactPrivateInterface.RawEventEmitter.emit("*", event);
|
|
1332
|
+
null == _enableNativeEventTargetEventDispatching &&
|
|
1333
|
+
((event =
|
|
1334
|
+
null != reactPrivateInterface.ReactNativeFeatureFlags
|
|
1335
|
+
? reactPrivateInterface.ReactNativeFeatureFlags
|
|
1336
|
+
.enableNativeEventTargetEventDispatching
|
|
1337
|
+
: null),
|
|
1338
|
+
(_enableNativeEventTargetEventDispatching =
|
|
1339
|
+
"function" === typeof event && event()));
|
|
1340
|
+
if (_enableNativeEventTargetEventDispatching)
|
|
1341
|
+
null != eventTarget &&
|
|
1342
|
+
reactPrivateInterface.dispatchNativeEvent(
|
|
1343
|
+
eventTarget,
|
|
1296
1344
|
topLevelType,
|
|
1297
|
-
|
|
1298
|
-
nativeEvent,
|
|
1299
|
-
event
|
|
1300
|
-
)) &&
|
|
1301
|
-
(events = accumulateInto(events, possiblePlugin));
|
|
1302
|
-
}
|
|
1303
|
-
event = events;
|
|
1304
|
-
null !== event && (eventQueue = accumulateInto(eventQueue, event));
|
|
1305
|
-
event = eventQueue;
|
|
1306
|
-
eventQueue = null;
|
|
1307
|
-
if (event) {
|
|
1308
|
-
forEachAccumulated(event, executeDispatchesAndReleaseTopLevel);
|
|
1309
|
-
if (eventQueue)
|
|
1310
|
-
throw Error(
|
|
1311
|
-
"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."
|
|
1312
|
-
);
|
|
1313
|
-
if (hasError)
|
|
1314
|
-
throw (
|
|
1315
|
-
((event = caughtError), (hasError = !1), (caughtError = null), event)
|
|
1345
|
+
nativeEvent
|
|
1316
1346
|
);
|
|
1347
|
+
else {
|
|
1348
|
+
event = eventTarget;
|
|
1349
|
+
for (
|
|
1350
|
+
var events = null, legacyPlugins = plugins, i = 0;
|
|
1351
|
+
i < legacyPlugins.length;
|
|
1352
|
+
i++
|
|
1353
|
+
) {
|
|
1354
|
+
var possiblePlugin = legacyPlugins[i];
|
|
1355
|
+
possiblePlugin &&
|
|
1356
|
+
(possiblePlugin = possiblePlugin.extractEvents(
|
|
1357
|
+
topLevelType,
|
|
1358
|
+
target,
|
|
1359
|
+
nativeEvent,
|
|
1360
|
+
event
|
|
1361
|
+
)) &&
|
|
1362
|
+
(events = accumulateInto(events, possiblePlugin));
|
|
1363
|
+
}
|
|
1364
|
+
event = events;
|
|
1365
|
+
null !== event && (eventQueue = accumulateInto(eventQueue, event));
|
|
1366
|
+
event = eventQueue;
|
|
1367
|
+
eventQueue = null;
|
|
1368
|
+
if (event) {
|
|
1369
|
+
forEachAccumulated(event, executeDispatchesAndReleaseTopLevel);
|
|
1370
|
+
if (eventQueue)
|
|
1371
|
+
throw Error(
|
|
1372
|
+
"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."
|
|
1373
|
+
);
|
|
1374
|
+
if (hasError)
|
|
1375
|
+
throw (
|
|
1376
|
+
((event = caughtError),
|
|
1377
|
+
(hasError = !1),
|
|
1378
|
+
(caughtError = null),
|
|
1379
|
+
event)
|
|
1380
|
+
);
|
|
1381
|
+
}
|
|
1317
1382
|
}
|
|
1318
1383
|
});
|
|
1319
1384
|
}
|
|
@@ -1377,7 +1442,7 @@ function getHighestPriorityLanes(lanes) {
|
|
|
1377
1442
|
case 32768:
|
|
1378
1443
|
case 65536:
|
|
1379
1444
|
case 131072:
|
|
1380
|
-
return lanes &
|
|
1445
|
+
return lanes & -lanes;
|
|
1381
1446
|
case 262144:
|
|
1382
1447
|
case 524288:
|
|
1383
1448
|
case 1048576:
|
|
@@ -1450,6 +1515,22 @@ function checkIfRootIsPrerendering(root, renderLanes) {
|
|
|
1450
1515
|
renderLanes)
|
|
1451
1516
|
);
|
|
1452
1517
|
}
|
|
1518
|
+
function getEntangledLanes(root, renderLanes) {
|
|
1519
|
+
0 !== (renderLanes & 8) && (renderLanes |= renderLanes & 32);
|
|
1520
|
+
var allEntangledLanes = root.entangledLanes;
|
|
1521
|
+
if (0 !== allEntangledLanes)
|
|
1522
|
+
for (
|
|
1523
|
+
root = root.entanglements, allEntangledLanes &= renderLanes;
|
|
1524
|
+
0 < allEntangledLanes;
|
|
1525
|
+
|
|
1526
|
+
) {
|
|
1527
|
+
var index$6 = 31 - clz32(allEntangledLanes),
|
|
1528
|
+
lane = 1 << index$6;
|
|
1529
|
+
renderLanes |= root[index$6];
|
|
1530
|
+
allEntangledLanes &= ~lane;
|
|
1531
|
+
}
|
|
1532
|
+
return renderLanes;
|
|
1533
|
+
}
|
|
1453
1534
|
function computeExpirationTime(lane, currentTime) {
|
|
1454
1535
|
switch (lane) {
|
|
1455
1536
|
case 1:
|
|
@@ -1628,18 +1709,12 @@ function lanesToEventPriority(lanes) {
|
|
|
1628
1709
|
: 2;
|
|
1629
1710
|
}
|
|
1630
1711
|
function getNearestMountedFiber(fiber) {
|
|
1631
|
-
var node = fiber,
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
(node = fiber),
|
|
1638
|
-
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
|
1639
|
-
(fiber = node.return);
|
|
1640
|
-
while (fiber);
|
|
1641
|
-
}
|
|
1642
|
-
return 3 === node.tag ? nearestMounted : null;
|
|
1712
|
+
for (var node = fiber, nextNode = node; nextNode && !nextNode.alternate; )
|
|
1713
|
+
(node = nextNode),
|
|
1714
|
+
0 !== (node.flags & 4098) && (fiber = node.return),
|
|
1715
|
+
(nextNode = node.return);
|
|
1716
|
+
for (; node.return; ) node = node.return;
|
|
1717
|
+
return 3 === node.tag ? fiber : null;
|
|
1643
1718
|
}
|
|
1644
1719
|
function assertIsMounted(fiber) {
|
|
1645
1720
|
if (getNearestMountedFiber(fiber) !== fiber)
|
|
@@ -1731,6 +1806,66 @@ function findCurrentHostFiberImpl(node) {
|
|
|
1731
1806
|
}
|
|
1732
1807
|
return null;
|
|
1733
1808
|
}
|
|
1809
|
+
function traverseVisibleInstancesAndTextInstances(
|
|
1810
|
+
child,
|
|
1811
|
+
searchWithinHosts,
|
|
1812
|
+
fn,
|
|
1813
|
+
a,
|
|
1814
|
+
b,
|
|
1815
|
+
c
|
|
1816
|
+
) {
|
|
1817
|
+
for (; null !== child; ) {
|
|
1818
|
+
if (
|
|
1819
|
+
((5 === child.tag || 27 === child.tag || 6 === child.tag) &&
|
|
1820
|
+
fn(child, a, b, c)) ||
|
|
1821
|
+
((22 !== child.tag || null === child.memoizedState) &&
|
|
1822
|
+
(searchWithinHosts || (5 !== child.tag && 27 !== child.tag)) &&
|
|
1823
|
+
traverseVisibleInstancesAndTextInstances(
|
|
1824
|
+
child.child,
|
|
1825
|
+
searchWithinHosts,
|
|
1826
|
+
fn,
|
|
1827
|
+
a,
|
|
1828
|
+
b,
|
|
1829
|
+
c
|
|
1830
|
+
))
|
|
1831
|
+
)
|
|
1832
|
+
return !0;
|
|
1833
|
+
child = child.sibling;
|
|
1834
|
+
}
|
|
1835
|
+
return !1;
|
|
1836
|
+
}
|
|
1837
|
+
function getFragmentParentInstanceOrContainerFiber(fiber) {
|
|
1838
|
+
for (fiber = fiber.return; null !== fiber; ) {
|
|
1839
|
+
if (3 === fiber.tag || 5 === fiber.tag || 27 === fiber.tag) return fiber;
|
|
1840
|
+
fiber = fiber.return;
|
|
1841
|
+
}
|
|
1842
|
+
return null;
|
|
1843
|
+
}
|
|
1844
|
+
function findFragmentInstanceOrTextInstanceSiblings(
|
|
1845
|
+
result,
|
|
1846
|
+
self,
|
|
1847
|
+
child,
|
|
1848
|
+
state
|
|
1849
|
+
) {
|
|
1850
|
+
for (; null !== child; ) {
|
|
1851
|
+
if (child === self) state.foundSelf = !0;
|
|
1852
|
+
else if (5 === child.tag || 27 === child.tag || 6 === child.tag) {
|
|
1853
|
+
if (state.foundSelf) return (result[1] = child), !0;
|
|
1854
|
+
result[0] = child;
|
|
1855
|
+
} else if (
|
|
1856
|
+
(22 !== child.tag || null === child.memoizedState) &&
|
|
1857
|
+
findFragmentInstanceOrTextInstanceSiblings(
|
|
1858
|
+
result,
|
|
1859
|
+
self,
|
|
1860
|
+
child.child,
|
|
1861
|
+
state
|
|
1862
|
+
)
|
|
1863
|
+
)
|
|
1864
|
+
return !0;
|
|
1865
|
+
child = child.sibling;
|
|
1866
|
+
}
|
|
1867
|
+
return !1;
|
|
1868
|
+
}
|
|
1734
1869
|
var valueStack = [],
|
|
1735
1870
|
index = -1;
|
|
1736
1871
|
function createCursor(defaultValue) {
|
|
@@ -1745,7 +1880,42 @@ function push(cursor, value) {
|
|
|
1745
1880
|
valueStack[index] = cursor.current;
|
|
1746
1881
|
cursor.current = value;
|
|
1747
1882
|
}
|
|
1748
|
-
var emptyContextObject = {}
|
|
1883
|
+
var emptyContextObject = {},
|
|
1884
|
+
globalClientIdCounter$1 = 0;
|
|
1885
|
+
function getViewTransitionName(props, instance) {
|
|
1886
|
+
if (null != props.name && "auto" !== props.name) return props.name;
|
|
1887
|
+
if (null !== instance.autoName) return instance.autoName;
|
|
1888
|
+
props = pendingEffectsRoot.identifierPrefix;
|
|
1889
|
+
var globalClientId = globalClientIdCounter$1++;
|
|
1890
|
+
props = "_" + props + "t_" + globalClientId.toString(32) + "_";
|
|
1891
|
+
return (instance.autoName = props);
|
|
1892
|
+
}
|
|
1893
|
+
function getClassNameByType(classByType) {
|
|
1894
|
+
if (null == classByType || "string" === typeof classByType)
|
|
1895
|
+
return classByType;
|
|
1896
|
+
var className = null,
|
|
1897
|
+
activeTypes = pendingTransitionTypes;
|
|
1898
|
+
if (null !== activeTypes)
|
|
1899
|
+
for (var i = 0; i < activeTypes.length; i++) {
|
|
1900
|
+
var match = classByType[activeTypes[i]];
|
|
1901
|
+
if (null != match) {
|
|
1902
|
+
if ("none" === match) return "none";
|
|
1903
|
+
className = null == className ? match : className + (" " + match);
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
return null == className ? classByType.default : className;
|
|
1907
|
+
}
|
|
1908
|
+
function getViewTransitionClassName(defaultClass, eventClass) {
|
|
1909
|
+
defaultClass = getClassNameByType(defaultClass);
|
|
1910
|
+
eventClass = getClassNameByType(eventClass);
|
|
1911
|
+
return null == eventClass
|
|
1912
|
+
? "auto" === defaultClass
|
|
1913
|
+
? null
|
|
1914
|
+
: defaultClass
|
|
1915
|
+
: "auto" === eventClass
|
|
1916
|
+
? null
|
|
1917
|
+
: eventClass;
|
|
1918
|
+
}
|
|
1749
1919
|
function is(x, y) {
|
|
1750
1920
|
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
1751
1921
|
}
|
|
@@ -1817,10 +1987,13 @@ function popHostContainer() {
|
|
|
1817
1987
|
pop(rootInstanceStackCursor);
|
|
1818
1988
|
}
|
|
1819
1989
|
function pushHostContext(fiber) {
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1990
|
+
var stateHook = fiber.memoizedState;
|
|
1991
|
+
null !== stateHook &&
|
|
1992
|
+
((HostTransitionContext._currentValue2 = stateHook.memoizedState),
|
|
1993
|
+
push(hostTransitionProviderCursor, fiber));
|
|
1994
|
+
stateHook = contextStackCursor.current;
|
|
1995
|
+
stateHook !== stateHook &&
|
|
1996
|
+
(push(contextFiberStackCursor, fiber), push(contextStackCursor, stateHook));
|
|
1824
1997
|
}
|
|
1825
1998
|
function popHostContext(fiber) {
|
|
1826
1999
|
contextFiberStackCursor.current === fiber &&
|
|
@@ -1908,7 +2081,21 @@ function propagateContextChanges(
|
|
|
1908
2081
|
null !== list && (list.lanes |= renderLanes);
|
|
1909
2082
|
scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress);
|
|
1910
2083
|
nextFiber = null;
|
|
1911
|
-
} else
|
|
2084
|
+
} else
|
|
2085
|
+
13 === fiber.tag &&
|
|
2086
|
+
null !== fiber.memoizedState &&
|
|
2087
|
+
null === fiber.memoizedState.dehydrated
|
|
2088
|
+
? ((fiber.lanes |= renderLanes),
|
|
2089
|
+
(nextFiber = fiber.alternate),
|
|
2090
|
+
null !== nextFiber && (nextFiber.lanes |= renderLanes),
|
|
2091
|
+
scheduleContextWorkOnParentPath(
|
|
2092
|
+
fiber.return,
|
|
2093
|
+
renderLanes,
|
|
2094
|
+
workInProgress
|
|
2095
|
+
),
|
|
2096
|
+
(nextFiber = fiber.child),
|
|
2097
|
+
(nextFiber = null !== nextFiber ? nextFiber.sibling : null))
|
|
2098
|
+
: (nextFiber = fiber.child);
|
|
1912
2099
|
if (null !== nextFiber) nextFiber.return = fiber;
|
|
1913
2100
|
else
|
|
1914
2101
|
for (nextFiber = fiber; null !== nextFiber; ) {
|
|
@@ -1972,6 +2159,7 @@ function propagateParentContextChanges(
|
|
|
1972
2159
|
forcePropagateEntireTree
|
|
1973
2160
|
);
|
|
1974
2161
|
workInProgress.flags |= 262144;
|
|
2162
|
+
return null !== current;
|
|
1975
2163
|
}
|
|
1976
2164
|
function checkIfContextChanged(currentDependencies) {
|
|
1977
2165
|
for (
|
|
@@ -2059,6 +2247,22 @@ function releaseCache(cache) {
|
|
|
2059
2247
|
cache.controller.abort();
|
|
2060
2248
|
});
|
|
2061
2249
|
}
|
|
2250
|
+
function queueTransitionTypes(root, transitionTypes) {
|
|
2251
|
+
if (0 !== (root.pendingLanes & 4194048)) {
|
|
2252
|
+
var queued = root.transitionTypes;
|
|
2253
|
+
null === queued && (queued = root.transitionTypes = []);
|
|
2254
|
+
for (root = 0; root < transitionTypes.length; root++) {
|
|
2255
|
+
var transitionType = transitionTypes[root];
|
|
2256
|
+
-1 === queued.indexOf(transitionType) && queued.push(transitionType);
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
var entangledTransitionTypes = null;
|
|
2261
|
+
function claimQueuedTransitionTypes(root) {
|
|
2262
|
+
var claimed = root.transitionTypes;
|
|
2263
|
+
root.transitionTypes = null;
|
|
2264
|
+
return claimed;
|
|
2265
|
+
}
|
|
2062
2266
|
function noop() {}
|
|
2063
2267
|
var firstScheduledRoot = null,
|
|
2064
2268
|
lastScheduledRoot = null,
|
|
@@ -2240,16 +2444,14 @@ function performSyncWorkOnRoot(root, lanes) {
|
|
|
2240
2444
|
performWorkOnRoot(root, lanes, !0);
|
|
2241
2445
|
}
|
|
2242
2446
|
function scheduleImmediateRootScheduleTask() {
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
})
|
|
2252
|
-
: scheduleCallback$3(ImmediatePriority, processRootScheduleInImmediateTask);
|
|
2447
|
+
scheduleMicrotask(function () {
|
|
2448
|
+
0 !== (executionContext & 6)
|
|
2449
|
+
? scheduleCallback$3(
|
|
2450
|
+
ImmediatePriority,
|
|
2451
|
+
processRootScheduleInImmediateTask
|
|
2452
|
+
)
|
|
2453
|
+
: processRootScheduleInMicrotask();
|
|
2454
|
+
});
|
|
2253
2455
|
}
|
|
2254
2456
|
function requestTransitionLane() {
|
|
2255
2457
|
if (0 === currentEventTransitionLane) {
|
|
@@ -2287,7 +2489,7 @@ function entangleAsyncAction(transition, thenable) {
|
|
|
2287
2489
|
function pingEngtangledActionScope() {
|
|
2288
2490
|
if (
|
|
2289
2491
|
0 === --currentEntangledPendingCount &&
|
|
2290
|
-
null !== currentEntangledListeners
|
|
2492
|
+
((entangledTransitionTypes = null), null !== currentEntangledListeners)
|
|
2291
2493
|
) {
|
|
2292
2494
|
null !== currentEntangledActionThenable &&
|
|
2293
2495
|
(currentEntangledActionThenable.status = "fulfilled");
|
|
@@ -2330,6 +2532,22 @@ ReactSharedInternals.S = function (transition, returnValue) {
|
|
|
2330
2532
|
null !== returnValue &&
|
|
2331
2533
|
"function" === typeof returnValue.then &&
|
|
2332
2534
|
entangleAsyncAction(transition, returnValue);
|
|
2535
|
+
if (null !== entangledTransitionTypes)
|
|
2536
|
+
for (var root = firstScheduledRoot; null !== root; )
|
|
2537
|
+
queueTransitionTypes(root, entangledTransitionTypes), (root = root.next);
|
|
2538
|
+
root = transition.types;
|
|
2539
|
+
if (null !== root) {
|
|
2540
|
+
for (var root$18 = firstScheduledRoot; null !== root$18; )
|
|
2541
|
+
queueTransitionTypes(root$18, root), (root$18 = root$18.next);
|
|
2542
|
+
if (0 !== currentEntangledLane) {
|
|
2543
|
+
root$18 = entangledTransitionTypes;
|
|
2544
|
+
null === root$18 && (root$18 = entangledTransitionTypes = []);
|
|
2545
|
+
for (var i = 0; i < root.length; i++) {
|
|
2546
|
+
var transitionType = root[i];
|
|
2547
|
+
-1 === root$18.indexOf(transitionType) && root$18.push(transitionType);
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2333
2551
|
null !== prevOnStartTransitionFinish &&
|
|
2334
2552
|
prevOnStartTransitionFinish(transition, returnValue);
|
|
2335
2553
|
};
|
|
@@ -2396,11 +2614,13 @@ function trackUsedThenable(thenableState, thenable, index) {
|
|
|
2396
2614
|
case "fulfilled":
|
|
2397
2615
|
return thenable.value;
|
|
2398
2616
|
case "rejected":
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2617
|
+
thenableState = thenable.reason;
|
|
2618
|
+
checkIfUseWrappedInAsyncCatch(thenableState);
|
|
2619
|
+
if (void 0 === thenableState && !("reason" in thenable))
|
|
2620
|
+
throw Error(
|
|
2621
|
+
"A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`."
|
|
2622
|
+
);
|
|
2623
|
+
throw thenableState;
|
|
2404
2624
|
default:
|
|
2405
2625
|
if ("string" === typeof thenable.status) thenable.then(noop, noop);
|
|
2406
2626
|
else {
|
|
@@ -2515,9 +2735,9 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
2515
2735
|
}
|
|
2516
2736
|
function mapRemainingChildren(currentFirstChild) {
|
|
2517
2737
|
for (var existingChildren = new Map(); null !== currentFirstChild; )
|
|
2518
|
-
null
|
|
2519
|
-
? existingChildren.set(currentFirstChild.
|
|
2520
|
-
: existingChildren.set(currentFirstChild.
|
|
2738
|
+
null === currentFirstChild.key
|
|
2739
|
+
? existingChildren.set(currentFirstChild.index, currentFirstChild)
|
|
2740
|
+
: existingChildren.set(currentFirstChild.key, currentFirstChild),
|
|
2521
2741
|
(currentFirstChild = currentFirstChild.sibling);
|
|
2522
2742
|
return existingChildren;
|
|
2523
2743
|
}
|
|
@@ -2536,16 +2756,16 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
2536
2756
|
return (
|
|
2537
2757
|
(newIndex = newIndex.index),
|
|
2538
2758
|
newIndex < lastPlacedIndex
|
|
2539
|
-
? ((newFiber.flags |=
|
|
2759
|
+
? ((newFiber.flags |= 2), lastPlacedIndex)
|
|
2540
2760
|
: newIndex
|
|
2541
2761
|
);
|
|
2542
|
-
newFiber.flags |=
|
|
2762
|
+
newFiber.flags |= 134217730;
|
|
2543
2763
|
return lastPlacedIndex;
|
|
2544
2764
|
}
|
|
2545
2765
|
function placeSingleChild(newFiber) {
|
|
2546
2766
|
shouldTrackSideEffects &&
|
|
2547
2767
|
null === newFiber.alternate &&
|
|
2548
|
-
(newFiber.flags |=
|
|
2768
|
+
(newFiber.flags |= 134217730);
|
|
2549
2769
|
return newFiber;
|
|
2550
2770
|
}
|
|
2551
2771
|
function updateTextNode(returnFiber, current, textContent, lanes) {
|
|
@@ -2562,12 +2782,16 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
2562
2782
|
function updateElement(returnFiber, current, element, lanes) {
|
|
2563
2783
|
var elementType = element.type;
|
|
2564
2784
|
if (elementType === REACT_FRAGMENT_TYPE)
|
|
2565
|
-
return
|
|
2566
|
-
returnFiber
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2785
|
+
return (
|
|
2786
|
+
(returnFiber = updateFragment(
|
|
2787
|
+
returnFiber,
|
|
2788
|
+
current,
|
|
2789
|
+
element.props.children,
|
|
2790
|
+
lanes,
|
|
2791
|
+
element.key
|
|
2792
|
+
)),
|
|
2793
|
+
coerceRef(returnFiber, element),
|
|
2794
|
+
returnFiber
|
|
2571
2795
|
);
|
|
2572
2796
|
if (
|
|
2573
2797
|
null !== current &&
|
|
@@ -2888,10 +3112,9 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
2888
3112
|
)),
|
|
2889
3113
|
null !== nextOldFiber &&
|
|
2890
3114
|
(shouldTrackSideEffects &&
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
null ===
|
|
2894
|
-
),
|
|
3115
|
+
((newFiber = nextOldFiber.alternate),
|
|
3116
|
+
null !== newFiber &&
|
|
3117
|
+
oldFiber.delete(null === newFiber.key ? newIdx : newFiber.key)),
|
|
2895
3118
|
(currentFirstChild = placeChild(
|
|
2896
3119
|
nextOldFiber,
|
|
2897
3120
|
currentFirstChild,
|
|
@@ -2967,8 +3190,11 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
2967
3190
|
(step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)),
|
|
2968
3191
|
null !== step &&
|
|
2969
3192
|
(shouldTrackSideEffects &&
|
|
2970
|
-
|
|
2971
|
-
|
|
3193
|
+
((nextOldFiber = step.alternate),
|
|
3194
|
+
null !== nextOldFiber &&
|
|
3195
|
+
oldFiber.delete(
|
|
3196
|
+
null === nextOldFiber.key ? newIdx : nextOldFiber.key
|
|
3197
|
+
)),
|
|
2972
3198
|
(currentFirstChild = placeChild(step, currentFirstChild, newIdx)),
|
|
2973
3199
|
null === previousNewFiber
|
|
2974
3200
|
? (resultingFirstChild = step)
|
|
@@ -2990,6 +3216,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
2990
3216
|
null !== newChild &&
|
|
2991
3217
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
2992
3218
|
null === newChild.key &&
|
|
3219
|
+
void 0 === newChild.props.ref &&
|
|
2993
3220
|
(newChild = newChild.props.children);
|
|
2994
3221
|
if ("object" === typeof newChild && null !== newChild) {
|
|
2995
3222
|
switch (newChild.$$typeof) {
|
|
@@ -3008,6 +3235,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
3008
3235
|
currentFirstChild,
|
|
3009
3236
|
newChild.props.children
|
|
3010
3237
|
);
|
|
3238
|
+
coerceRef(lanes, newChild);
|
|
3011
3239
|
lanes.return = returnFiber;
|
|
3012
3240
|
returnFiber = lanes;
|
|
3013
3241
|
break a;
|
|
@@ -3041,6 +3269,7 @@ function createChildReconciler(shouldTrackSideEffects) {
|
|
|
3041
3269
|
lanes,
|
|
3042
3270
|
newChild.key
|
|
3043
3271
|
)),
|
|
3272
|
+
coerceRef(lanes, newChild),
|
|
3044
3273
|
(lanes.return = returnFiber),
|
|
3045
3274
|
(returnFiber = lanes))
|
|
3046
3275
|
: ((lanes = createFiberFromTypeAndProps(
|
|
@@ -3553,7 +3782,7 @@ function pushOffscreenSuspenseHandler(fiber) {
|
|
|
3553
3782
|
? (push(suspenseStackCursor, suspenseStackCursor.current),
|
|
3554
3783
|
push(suspenseHandlerStackCursor, fiber),
|
|
3555
3784
|
null === shellBoundary && (shellBoundary = fiber))
|
|
3556
|
-
: reuseSuspenseHandlerOnStack(
|
|
3785
|
+
: reuseSuspenseHandlerOnStack();
|
|
3557
3786
|
}
|
|
3558
3787
|
function reuseSuspenseHandlerOnStack() {
|
|
3559
3788
|
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
@@ -3565,6 +3794,15 @@ function popSuspenseHandler(fiber) {
|
|
|
3565
3794
|
pop(suspenseStackCursor);
|
|
3566
3795
|
}
|
|
3567
3796
|
var suspenseStackCursor = createCursor(0);
|
|
3797
|
+
function pushSuspenseListContext(fiber, newContext) {
|
|
3798
|
+
push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);
|
|
3799
|
+
push(suspenseStackCursor, newContext);
|
|
3800
|
+
}
|
|
3801
|
+
function popSuspenseListContext(fiber) {
|
|
3802
|
+
pop(suspenseStackCursor);
|
|
3803
|
+
pop(suspenseHandlerStackCursor);
|
|
3804
|
+
shellBoundary === fiber && (shellBoundary = null);
|
|
3805
|
+
}
|
|
3568
3806
|
function findFirstSuspended(row) {
|
|
3569
3807
|
for (var node = row; null !== node; ) {
|
|
3570
3808
|
if (13 === node.tag) {
|
|
@@ -3573,10 +3811,7 @@ function findFirstSuspended(row) {
|
|
|
3573
3811
|
return node;
|
|
3574
3812
|
} else if (
|
|
3575
3813
|
19 === node.tag &&
|
|
3576
|
-
|
|
3577
|
-
"backwards" === node.memoizedProps.revealOrder ||
|
|
3578
|
-
"unstable_legacy-backwards" === node.memoizedProps.revealOrder ||
|
|
3579
|
-
"together" === node.memoizedProps.revealOrder)
|
|
3814
|
+
"independent" !== node.memoizedProps.revealOrder
|
|
3580
3815
|
) {
|
|
3581
3816
|
if (0 !== (node.flags & 128)) return node;
|
|
3582
3817
|
} else if (null !== node.child) {
|
|
@@ -3797,6 +4032,7 @@ function useThenable(thenable) {
|
|
|
3797
4032
|
function use(usable) {
|
|
3798
4033
|
if (null !== usable && "object" === typeof usable) {
|
|
3799
4034
|
if ("function" === typeof usable.then) return useThenable(usable);
|
|
4035
|
+
if (usable.$$typeof === REACT_RECOVERABLE_TYPE) return;
|
|
3800
4036
|
if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
|
|
3801
4037
|
}
|
|
3802
4038
|
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
@@ -3867,7 +4103,7 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
3867
4103
|
var newBaseQueueFirst = (baseFirst = null),
|
|
3868
4104
|
newBaseQueueLast = null,
|
|
3869
4105
|
update = current,
|
|
3870
|
-
didReadFromEntangledAsyncAction$
|
|
4106
|
+
didReadFromEntangledAsyncAction$48 = !1;
|
|
3871
4107
|
do {
|
|
3872
4108
|
var updateLane = update.lane & -536870913;
|
|
3873
4109
|
if (
|
|
@@ -3889,11 +4125,11 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
3889
4125
|
next: null
|
|
3890
4126
|
}),
|
|
3891
4127
|
updateLane === currentEntangledLane &&
|
|
3892
|
-
(didReadFromEntangledAsyncAction$
|
|
4128
|
+
(didReadFromEntangledAsyncAction$48 = !0);
|
|
3893
4129
|
else if ((renderLanes & revertLane) === revertLane) {
|
|
3894
4130
|
update = update.next;
|
|
3895
4131
|
revertLane === currentEntangledLane &&
|
|
3896
|
-
(didReadFromEntangledAsyncAction$
|
|
4132
|
+
(didReadFromEntangledAsyncAction$48 = !0);
|
|
3897
4133
|
continue;
|
|
3898
4134
|
} else
|
|
3899
4135
|
(updateLane = {
|
|
@@ -3941,7 +4177,7 @@ function updateReducerImpl(hook, current, reducer) {
|
|
|
3941
4177
|
if (
|
|
3942
4178
|
!objectIs(pendingQueue, hook.memoizedState) &&
|
|
3943
4179
|
((didReceiveUpdate = !0),
|
|
3944
|
-
didReadFromEntangledAsyncAction$
|
|
4180
|
+
didReadFromEntangledAsyncAction$48 &&
|
|
3945
4181
|
((reducer = currentEntangledActionThenable), null !== reducer))
|
|
3946
4182
|
)
|
|
3947
4183
|
throw reducer;
|
|
@@ -3990,18 +4226,19 @@ function updateSyncExternalStore(subscribe, getSnapshot) {
|
|
|
3990
4226
|
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
3991
4227
|
subscribe
|
|
3992
4228
|
]);
|
|
3993
|
-
|
|
4229
|
+
subscribe =
|
|
3994
4230
|
hook.getSnapshot !== getSnapshot ||
|
|
3995
4231
|
snapshotChanged ||
|
|
3996
|
-
(null !== workInProgressHook &&
|
|
3997
|
-
|
|
4232
|
+
(null !== workInProgressHook &&
|
|
4233
|
+
0 !== (workInProgressHook.memoizedState.tag & 1));
|
|
4234
|
+
pushSimpleEffect(
|
|
4235
|
+
subscribe ? 9 : 8,
|
|
4236
|
+
{ destroy: void 0 },
|
|
4237
|
+
updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot),
|
|
4238
|
+
null
|
|
4239
|
+
);
|
|
4240
|
+
if (subscribe) {
|
|
3998
4241
|
fiber.flags |= 2048;
|
|
3999
|
-
pushSimpleEffect(
|
|
4000
|
-
9,
|
|
4001
|
-
{ destroy: void 0 },
|
|
4002
|
-
updateStoreInstance.bind(null, fiber, hook, nextSnapshot, getSnapshot),
|
|
4003
|
-
null
|
|
4004
|
-
);
|
|
4005
4242
|
if (null === workInProgressRoot)
|
|
4006
4243
|
throw Error(
|
|
4007
4244
|
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
@@ -4088,7 +4325,7 @@ function dispatchActionState(
|
|
|
4088
4325
|
payload
|
|
4089
4326
|
) {
|
|
4090
4327
|
if (isRenderPhaseUpdate(fiber))
|
|
4091
|
-
throw Error("Cannot update
|
|
4328
|
+
throw Error("Cannot update action state while rendering.");
|
|
4092
4329
|
fiber = actionQueue.action;
|
|
4093
4330
|
if (null !== fiber) {
|
|
4094
4331
|
var actionNode = {
|
|
@@ -4123,6 +4360,8 @@ function runActionStateAction(actionQueue, node) {
|
|
|
4123
4360
|
if (node.isTransition) {
|
|
4124
4361
|
var prevTransition = ReactSharedInternals.T,
|
|
4125
4362
|
currentTransition = {};
|
|
4363
|
+
currentTransition.types =
|
|
4364
|
+
null !== prevTransition ? prevTransition.types : null;
|
|
4126
4365
|
ReactSharedInternals.T = currentTransition;
|
|
4127
4366
|
try {
|
|
4128
4367
|
var returnValue = action(prevState, payload),
|
|
@@ -4142,8 +4381,8 @@ function runActionStateAction(actionQueue, node) {
|
|
|
4142
4381
|
try {
|
|
4143
4382
|
(prevTransition = action(prevState, payload)),
|
|
4144
4383
|
handleActionReturnValue(actionQueue, node, prevTransition);
|
|
4145
|
-
} catch (error$
|
|
4146
|
-
onActionError(actionQueue, node, error$
|
|
4384
|
+
} catch (error$52) {
|
|
4385
|
+
onActionError(actionQueue, node, error$52);
|
|
4147
4386
|
}
|
|
4148
4387
|
}
|
|
4149
4388
|
function handleActionReturnValue(actionQueue, node, returnValue) {
|
|
@@ -4437,7 +4676,7 @@ function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
|
|
|
4437
4676
|
hook
|
|
4438
4677
|
);
|
|
4439
4678
|
if (
|
|
4440
|
-
0 === (renderLanes &
|
|
4679
|
+
0 === (renderLanes & 106) ||
|
|
4441
4680
|
(0 !== (renderLanes & 1073741824) &&
|
|
4442
4681
|
0 === (workInProgressRootRenderLanes & 261930))
|
|
4443
4682
|
)
|
|
@@ -4453,6 +4692,8 @@ function startTransition(fiber, queue, pendingState, finishedState, callback) {
|
|
|
4453
4692
|
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
|
|
4454
4693
|
var prevTransition = ReactSharedInternals.T,
|
|
4455
4694
|
currentTransition = {};
|
|
4695
|
+
currentTransition.types =
|
|
4696
|
+
null !== prevTransition ? prevTransition.types : null;
|
|
4456
4697
|
ReactSharedInternals.T = currentTransition;
|
|
4457
4698
|
dispatchOptimisticSetState(fiber, !1, queue, pendingState);
|
|
4458
4699
|
try {
|
|
@@ -4637,32 +4878,32 @@ function entangleTransitionUpdate(root, queue, lane) {
|
|
|
4637
4878
|
}
|
|
4638
4879
|
}
|
|
4639
4880
|
var ContextOnlyDispatcher = {
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4881
|
+
readContext: readContext,
|
|
4882
|
+
use: use,
|
|
4883
|
+
useCallback: throwInvalidHookError,
|
|
4884
|
+
useContext: throwInvalidHookError,
|
|
4885
|
+
useEffect: throwInvalidHookError,
|
|
4886
|
+
useImperativeHandle: throwInvalidHookError,
|
|
4887
|
+
useLayoutEffect: throwInvalidHookError,
|
|
4888
|
+
useInsertionEffect: throwInvalidHookError,
|
|
4889
|
+
useMemo: throwInvalidHookError,
|
|
4890
|
+
useReducer: throwInvalidHookError,
|
|
4891
|
+
useRef: throwInvalidHookError,
|
|
4892
|
+
useState: throwInvalidHookError,
|
|
4893
|
+
useDebugValue: throwInvalidHookError,
|
|
4894
|
+
useDeferredValue: throwInvalidHookError,
|
|
4895
|
+
useTransition: throwInvalidHookError,
|
|
4896
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
4897
|
+
useId: throwInvalidHookError,
|
|
4898
|
+
useHostTransitionStatus: throwInvalidHookError,
|
|
4899
|
+
useFormState: throwInvalidHookError,
|
|
4900
|
+
useActionState: throwInvalidHookError,
|
|
4901
|
+
useOptimistic: throwInvalidHookError,
|
|
4902
|
+
useMemoCache: throwInvalidHookError,
|
|
4903
|
+
useCacheRefresh: throwInvalidHookError,
|
|
4904
|
+
useEffectEvent: throwInvalidHookError
|
|
4905
|
+
},
|
|
4906
|
+
HooksDispatcherOnMount = {
|
|
4666
4907
|
readContext: readContext,
|
|
4667
4908
|
use: use,
|
|
4668
4909
|
useCallback: function (callback, deps) {
|
|
@@ -4883,62 +5124,62 @@ var HooksDispatcherOnMount = {
|
|
|
4883
5124
|
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
|
|
4884
5125
|
},
|
|
4885
5126
|
useMemoCache: useMemoCache,
|
|
4886
|
-
useCacheRefresh: updateRefresh
|
|
4887
|
-
|
|
4888
|
-
HooksDispatcherOnUpdate.useEffectEvent = updateEvent;
|
|
4889
|
-
var HooksDispatcherOnRerender = {
|
|
4890
|
-
readContext: readContext,
|
|
4891
|
-
use: use,
|
|
4892
|
-
useCallback: updateCallback,
|
|
4893
|
-
useContext: readContext,
|
|
4894
|
-
useEffect: updateEffect,
|
|
4895
|
-
useImperativeHandle: updateImperativeHandle,
|
|
4896
|
-
useInsertionEffect: updateInsertionEffect,
|
|
4897
|
-
useLayoutEffect: updateLayoutEffect,
|
|
4898
|
-
useMemo: updateMemo,
|
|
4899
|
-
useReducer: rerenderReducer,
|
|
4900
|
-
useRef: updateRef,
|
|
4901
|
-
useState: function () {
|
|
4902
|
-
return rerenderReducer(basicStateReducer);
|
|
4903
|
-
},
|
|
4904
|
-
useDebugValue: mountDebugValue,
|
|
4905
|
-
useDeferredValue: function (value, initialValue) {
|
|
4906
|
-
var hook = updateWorkInProgressHook();
|
|
4907
|
-
return null === currentHook
|
|
4908
|
-
? mountDeferredValueImpl(hook, value, initialValue)
|
|
4909
|
-
: updateDeferredValueImpl(
|
|
4910
|
-
hook,
|
|
4911
|
-
currentHook.memoizedState,
|
|
4912
|
-
value,
|
|
4913
|
-
initialValue
|
|
4914
|
-
);
|
|
5127
|
+
useCacheRefresh: updateRefresh,
|
|
5128
|
+
useEffectEvent: updateEvent
|
|
4915
5129
|
},
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
return
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
5130
|
+
HooksDispatcherOnRerender = {
|
|
5131
|
+
readContext: readContext,
|
|
5132
|
+
use: use,
|
|
5133
|
+
useCallback: updateCallback,
|
|
5134
|
+
useContext: readContext,
|
|
5135
|
+
useEffect: updateEffect,
|
|
5136
|
+
useImperativeHandle: updateImperativeHandle,
|
|
5137
|
+
useInsertionEffect: updateInsertionEffect,
|
|
5138
|
+
useLayoutEffect: updateLayoutEffect,
|
|
5139
|
+
useMemo: updateMemo,
|
|
5140
|
+
useReducer: rerenderReducer,
|
|
5141
|
+
useRef: updateRef,
|
|
5142
|
+
useState: function () {
|
|
5143
|
+
return rerenderReducer(basicStateReducer);
|
|
5144
|
+
},
|
|
5145
|
+
useDebugValue: mountDebugValue,
|
|
5146
|
+
useDeferredValue: function (value, initialValue) {
|
|
5147
|
+
var hook = updateWorkInProgressHook();
|
|
5148
|
+
return null === currentHook
|
|
5149
|
+
? mountDeferredValueImpl(hook, value, initialValue)
|
|
5150
|
+
: updateDeferredValueImpl(
|
|
5151
|
+
hook,
|
|
5152
|
+
currentHook.memoizedState,
|
|
5153
|
+
value,
|
|
5154
|
+
initialValue
|
|
5155
|
+
);
|
|
5156
|
+
},
|
|
5157
|
+
useTransition: function () {
|
|
5158
|
+
var booleanOrThenable = rerenderReducer(basicStateReducer)[0],
|
|
5159
|
+
start = updateWorkInProgressHook().memoizedState;
|
|
5160
|
+
return [
|
|
5161
|
+
"boolean" === typeof booleanOrThenable
|
|
5162
|
+
? booleanOrThenable
|
|
5163
|
+
: useThenable(booleanOrThenable),
|
|
5164
|
+
start
|
|
5165
|
+
];
|
|
5166
|
+
},
|
|
5167
|
+
useSyncExternalStore: updateSyncExternalStore,
|
|
5168
|
+
useId: updateId,
|
|
5169
|
+
useHostTransitionStatus: useHostTransitionStatus,
|
|
5170
|
+
useFormState: rerenderActionState,
|
|
5171
|
+
useActionState: rerenderActionState,
|
|
5172
|
+
useOptimistic: function (passthrough, reducer) {
|
|
5173
|
+
var hook = updateWorkInProgressHook();
|
|
5174
|
+
if (null !== currentHook)
|
|
5175
|
+
return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
|
|
5176
|
+
hook.baseState = passthrough;
|
|
5177
|
+
return [passthrough, hook.queue.dispatch];
|
|
5178
|
+
},
|
|
5179
|
+
useMemoCache: useMemoCache,
|
|
5180
|
+
useCacheRefresh: updateRefresh,
|
|
5181
|
+
useEffectEvent: updateEvent
|
|
5182
|
+
};
|
|
4942
5183
|
function applyDerivedStateFromProps(
|
|
4943
5184
|
workInProgress,
|
|
4944
5185
|
ctor,
|
|
@@ -5077,9 +5318,9 @@ function resolveClassComponentProps(Component, baseProps) {
|
|
|
5077
5318
|
}
|
|
5078
5319
|
if ((Component = Component.defaultProps)) {
|
|
5079
5320
|
newProps === baseProps && (newProps = assign({}, newProps));
|
|
5080
|
-
for (var propName$
|
|
5081
|
-
void 0 === newProps[propName$
|
|
5082
|
-
(newProps[propName$
|
|
5321
|
+
for (var propName$54 in Component)
|
|
5322
|
+
void 0 === newProps[propName$54] &&
|
|
5323
|
+
(newProps[propName$54] = Component[propName$54]);
|
|
5083
5324
|
}
|
|
5084
5325
|
return newProps;
|
|
5085
5326
|
}
|
|
@@ -5186,6 +5427,7 @@ function throwException(
|
|
|
5186
5427
|
switch (currentSourceFiber.tag) {
|
|
5187
5428
|
case 31:
|
|
5188
5429
|
case 13:
|
|
5430
|
+
case 19:
|
|
5189
5431
|
return (
|
|
5190
5432
|
sourceFiber.mode & 1 &&
|
|
5191
5433
|
(null === shellBoundary
|
|
@@ -5285,17 +5527,17 @@ function throwException(
|
|
|
5285
5527
|
!1
|
|
5286
5528
|
);
|
|
5287
5529
|
case 1:
|
|
5530
|
+
sourceFiber = returnFiber.type;
|
|
5531
|
+
currentSourceFiber = returnFiber.stateNode;
|
|
5288
5532
|
if (
|
|
5289
|
-
((sourceFiber = returnFiber.type),
|
|
5290
|
-
(currentSourceFiber = returnFiber.stateNode),
|
|
5291
5533
|
0 === (returnFiber.flags & 128) &&
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5534
|
+
("function" === typeof sourceFiber.getDerivedStateFromError ||
|
|
5535
|
+
(null !== currentSourceFiber &&
|
|
5536
|
+
"function" === typeof currentSourceFiber.componentDidCatch &&
|
|
5537
|
+
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
5538
|
+
!legacyErrorBoundariesThatAlreadyFailed.has(
|
|
5539
|
+
currentSourceFiber
|
|
5540
|
+
))))
|
|
5299
5541
|
)
|
|
5300
5542
|
return (
|
|
5301
5543
|
(returnFiber.flags |= 65536),
|
|
@@ -5311,6 +5553,10 @@ function throwException(
|
|
|
5311
5553
|
enqueueCapturedUpdate(returnFiber, rootRenderLanes),
|
|
5312
5554
|
!1
|
|
5313
5555
|
);
|
|
5556
|
+
break;
|
|
5557
|
+
case 22:
|
|
5558
|
+
if (null !== returnFiber.memoizedState)
|
|
5559
|
+
return (returnFiber.flags |= 65536), !1;
|
|
5314
5560
|
}
|
|
5315
5561
|
returnFiber = returnFiber.return;
|
|
5316
5562
|
} while (null !== returnFiber);
|
|
@@ -5515,11 +5761,11 @@ function updateOffscreenComponent(
|
|
|
5515
5761
|
null !== prevState
|
|
5516
5762
|
? (pushTransition(workInProgress, prevState.cachePool),
|
|
5517
5763
|
pushHiddenContext(workInProgress, prevState),
|
|
5518
|
-
reuseSuspenseHandlerOnStack(
|
|
5764
|
+
reuseSuspenseHandlerOnStack(),
|
|
5519
5765
|
(workInProgress.memoizedState = null))
|
|
5520
5766
|
: (null !== current && pushTransition(workInProgress, null),
|
|
5521
5767
|
reuseHiddenContextOnStack(),
|
|
5522
|
-
reuseSuspenseHandlerOnStack(
|
|
5768
|
+
reuseSuspenseHandlerOnStack());
|
|
5523
5769
|
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
5524
5770
|
return workInProgress.child;
|
|
5525
5771
|
}
|
|
@@ -5906,172 +6152,81 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
5906
6152
|
JSCompiler_temp = 0 !== (workInProgress.flags & 32);
|
|
5907
6153
|
workInProgress.flags &= -33;
|
|
5908
6154
|
if (null === current) {
|
|
5909
|
-
|
|
6155
|
+
didSuspend = nextProps.children;
|
|
5910
6156
|
nextProps = nextProps.fallback;
|
|
5911
|
-
if (showFallback)
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
(nextProps.childLanes = getRemainingWorkInPrimaryTree(
|
|
5940
|
-
current,
|
|
5941
|
-
JSCompiler_temp,
|
|
5942
|
-
renderLanes
|
|
5943
|
-
)),
|
|
5944
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
5945
|
-
bailoutOffscreenComponent(null, nextProps)
|
|
6157
|
+
if (showFallback) {
|
|
6158
|
+
reuseSuspenseHandlerOnStack();
|
|
6159
|
+
showFallback = workInProgress.mode;
|
|
6160
|
+
var progressedPrimaryFragment = workInProgress.child;
|
|
6161
|
+
didSuspend = { mode: "hidden", children: didSuspend };
|
|
6162
|
+
0 === (showFallback & 1) && null !== progressedPrimaryFragment
|
|
6163
|
+
? ((progressedPrimaryFragment.childLanes = 0),
|
|
6164
|
+
(progressedPrimaryFragment.pendingProps = didSuspend))
|
|
6165
|
+
: (progressedPrimaryFragment = mountWorkInProgressOffscreenFiber(
|
|
6166
|
+
didSuspend,
|
|
6167
|
+
showFallback
|
|
6168
|
+
));
|
|
6169
|
+
nextProps = createFiberFromFragment(
|
|
6170
|
+
nextProps,
|
|
6171
|
+
showFallback,
|
|
6172
|
+
renderLanes,
|
|
6173
|
+
null
|
|
6174
|
+
);
|
|
6175
|
+
progressedPrimaryFragment.return = workInProgress;
|
|
6176
|
+
nextProps.return = workInProgress;
|
|
6177
|
+
progressedPrimaryFragment.sibling = nextProps;
|
|
6178
|
+
workInProgress.child = progressedPrimaryFragment;
|
|
6179
|
+
nextProps = workInProgress.child;
|
|
6180
|
+
nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes);
|
|
6181
|
+
nextProps.childLanes = getRemainingWorkInPrimaryTree(
|
|
6182
|
+
current,
|
|
6183
|
+
JSCompiler_temp,
|
|
6184
|
+
renderLanes
|
|
5946
6185
|
);
|
|
6186
|
+
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
6187
|
+
return bailoutOffscreenComponent(null, nextProps);
|
|
6188
|
+
}
|
|
5947
6189
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
5948
|
-
return mountSuspensePrimaryChildren(workInProgress,
|
|
5949
|
-
}
|
|
5950
|
-
|
|
5951
|
-
if (null !==
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
(workInProgress.flags &= -257),
|
|
5956
|
-
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
|
5957
|
-
current,
|
|
5958
|
-
workInProgress,
|
|
5959
|
-
renderLanes
|
|
5960
|
-
)))
|
|
5961
|
-
: null !== workInProgress.memoizedState
|
|
5962
|
-
? (reuseSuspenseHandlerOnStack(workInProgress),
|
|
5963
|
-
(workInProgress.child = current.child),
|
|
5964
|
-
(workInProgress.flags |= 128),
|
|
5965
|
-
(workInProgress = null))
|
|
5966
|
-
: (reuseSuspenseHandlerOnStack(workInProgress),
|
|
5967
|
-
(showFallback = nextProps.fallback),
|
|
5968
|
-
(nextPrimaryChildren = workInProgress.mode),
|
|
5969
|
-
(nextProps = mountWorkInProgressOffscreenFiber(
|
|
5970
|
-
{ mode: "visible", children: nextProps.children },
|
|
5971
|
-
nextPrimaryChildren
|
|
5972
|
-
)),
|
|
5973
|
-
(showFallback = createFiberFromFragment(
|
|
5974
|
-
showFallback,
|
|
5975
|
-
nextPrimaryChildren,
|
|
5976
|
-
renderLanes,
|
|
5977
|
-
null
|
|
5978
|
-
)),
|
|
5979
|
-
(showFallback.flags |= 2),
|
|
5980
|
-
(nextProps.return = workInProgress),
|
|
5981
|
-
(showFallback.return = workInProgress),
|
|
5982
|
-
(nextProps.sibling = showFallback),
|
|
5983
|
-
(workInProgress.child = nextProps),
|
|
5984
|
-
0 !== (workInProgress.mode & 1) &&
|
|
5985
|
-
reconcileChildFibers(
|
|
5986
|
-
workInProgress,
|
|
5987
|
-
current.child,
|
|
5988
|
-
null,
|
|
5989
|
-
renderLanes
|
|
5990
|
-
),
|
|
5991
|
-
(nextProps = workInProgress.child),
|
|
5992
|
-
(nextProps.memoizedState =
|
|
5993
|
-
mountSuspenseOffscreenState(renderLanes)),
|
|
5994
|
-
(nextProps.childLanes = getRemainingWorkInPrimaryTree(
|
|
5995
|
-
current,
|
|
5996
|
-
JSCompiler_temp,
|
|
5997
|
-
renderLanes
|
|
5998
|
-
)),
|
|
5999
|
-
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
6000
|
-
(workInProgress = bailoutOffscreenComponent(null, nextProps)));
|
|
6001
|
-
else if ((pushPrimaryTreeSuspenseHandler(workInProgress), shim$1()))
|
|
6002
|
-
(JSCompiler_temp = shim$1().digest),
|
|
6003
|
-
(nextProps = Error(
|
|
6004
|
-
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
|
6005
|
-
)),
|
|
6006
|
-
(nextProps.stack = ""),
|
|
6007
|
-
(nextProps.digest = JSCompiler_temp),
|
|
6008
|
-
(JSCompiler_temp = { value: nextProps, source: null, stack: null }),
|
|
6009
|
-
null === hydrationErrors
|
|
6010
|
-
? (hydrationErrors = [JSCompiler_temp])
|
|
6011
|
-
: hydrationErrors.push(JSCompiler_temp),
|
|
6012
|
-
(workInProgress = retrySuspenseComponentWithoutHydrating(
|
|
6013
|
-
current,
|
|
6014
|
-
workInProgress,
|
|
6015
|
-
renderLanes
|
|
6016
|
-
));
|
|
6017
|
-
else if (
|
|
6018
|
-
(didReceiveUpdate ||
|
|
6019
|
-
propagateParentContextChanges(current, workInProgress, renderLanes, !1),
|
|
6020
|
-
(JSCompiler_temp = 0 !== (renderLanes & current.childLanes)),
|
|
6021
|
-
didReceiveUpdate || JSCompiler_temp)
|
|
6022
|
-
) {
|
|
6023
|
-
JSCompiler_temp = workInProgressRoot;
|
|
6024
|
-
if (
|
|
6025
|
-
null !== JSCompiler_temp &&
|
|
6026
|
-
((nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes)),
|
|
6027
|
-
0 !== nextProps && nextProps !== nextPrimaryChildren.retryLane)
|
|
6028
|
-
)
|
|
6029
|
-
throw (
|
|
6030
|
-
((nextPrimaryChildren.retryLane = nextProps),
|
|
6031
|
-
enqueueConcurrentRenderForLane(current, nextProps),
|
|
6032
|
-
scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),
|
|
6033
|
-
SelectiveHydrationException)
|
|
6034
|
-
);
|
|
6035
|
-
shim$1() || renderDidSuspendDelayIfPossible();
|
|
6036
|
-
workInProgress = retrySuspenseComponentWithoutHydrating(
|
|
6190
|
+
return mountSuspensePrimaryChildren(workInProgress, didSuspend);
|
|
6191
|
+
}
|
|
6192
|
+
progressedPrimaryFragment = current.memoizedState;
|
|
6193
|
+
if (null !== progressedPrimaryFragment) {
|
|
6194
|
+
var dehydrated = progressedPrimaryFragment.dehydrated;
|
|
6195
|
+
if (null !== dehydrated)
|
|
6196
|
+
return updateDehydratedSuspenseComponent(
|
|
6037
6197
|
current,
|
|
6038
6198
|
workInProgress,
|
|
6199
|
+
didSuspend,
|
|
6200
|
+
JSCompiler_temp,
|
|
6201
|
+
nextProps,
|
|
6202
|
+
dehydrated,
|
|
6203
|
+
progressedPrimaryFragment,
|
|
6039
6204
|
renderLanes
|
|
6040
6205
|
);
|
|
6041
|
-
} else
|
|
6042
|
-
shim$1()
|
|
6043
|
-
? ((workInProgress.flags |= 192),
|
|
6044
|
-
(workInProgress.child = current.child),
|
|
6045
|
-
(workInProgress = null))
|
|
6046
|
-
: ((workInProgress = mountSuspensePrimaryChildren(
|
|
6047
|
-
workInProgress,
|
|
6048
|
-
nextProps.children
|
|
6049
|
-
)),
|
|
6050
|
-
(workInProgress.flags |= 4096));
|
|
6051
|
-
return workInProgress;
|
|
6052
6206
|
}
|
|
6053
6207
|
if (showFallback) {
|
|
6054
|
-
reuseSuspenseHandlerOnStack(
|
|
6208
|
+
reuseSuspenseHandlerOnStack();
|
|
6055
6209
|
showFallback = nextProps.fallback;
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
0 === (
|
|
6210
|
+
didSuspend = workInProgress.mode;
|
|
6211
|
+
progressedPrimaryFragment = current.child;
|
|
6212
|
+
dehydrated = progressedPrimaryFragment.sibling;
|
|
6213
|
+
var primaryChildProps = { mode: "hidden", children: nextProps.children };
|
|
6214
|
+
0 === (didSuspend & 1) && workInProgress.child !== progressedPrimaryFragment
|
|
6061
6215
|
? ((nextProps = workInProgress.child),
|
|
6062
6216
|
(nextProps.childLanes = 0),
|
|
6063
6217
|
(nextProps.pendingProps = primaryChildProps),
|
|
6064
6218
|
(workInProgress.deletions = null))
|
|
6065
|
-
: ((nextProps = createWorkInProgress(
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6219
|
+
: ((nextProps = createWorkInProgress(
|
|
6220
|
+
progressedPrimaryFragment,
|
|
6221
|
+
primaryChildProps
|
|
6222
|
+
)),
|
|
6223
|
+
(nextProps.subtreeFlags =
|
|
6224
|
+
progressedPrimaryFragment.subtreeFlags & 1206910976));
|
|
6225
|
+
null !== dehydrated
|
|
6226
|
+
? (showFallback = createWorkInProgress(dehydrated, showFallback))
|
|
6072
6227
|
: ((showFallback = createFiberFromFragment(
|
|
6073
6228
|
showFallback,
|
|
6074
|
-
|
|
6229
|
+
didSuspend,
|
|
6075
6230
|
renderLanes,
|
|
6076
6231
|
null
|
|
6077
6232
|
)),
|
|
@@ -6085,17 +6240,20 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
6085
6240
|
showFallback = current.child.memoizedState;
|
|
6086
6241
|
null === showFallback
|
|
6087
6242
|
? (showFallback = mountSuspenseOffscreenState(renderLanes))
|
|
6088
|
-
: ((
|
|
6089
|
-
null !==
|
|
6090
|
-
? ((
|
|
6091
|
-
(
|
|
6092
|
-
|
|
6093
|
-
? {
|
|
6094
|
-
|
|
6095
|
-
|
|
6243
|
+
: ((didSuspend = showFallback.cachePool),
|
|
6244
|
+
null !== didSuspend
|
|
6245
|
+
? ((progressedPrimaryFragment = CacheContext._currentValue2),
|
|
6246
|
+
(didSuspend =
|
|
6247
|
+
didSuspend.parent !== progressedPrimaryFragment
|
|
6248
|
+
? {
|
|
6249
|
+
parent: progressedPrimaryFragment,
|
|
6250
|
+
pool: progressedPrimaryFragment
|
|
6251
|
+
}
|
|
6252
|
+
: didSuspend))
|
|
6253
|
+
: (didSuspend = getSuspendedCache()),
|
|
6096
6254
|
(showFallback = {
|
|
6097
6255
|
baseLanes: showFallback.baseLanes | renderLanes,
|
|
6098
|
-
cachePool:
|
|
6256
|
+
cachePool: didSuspend
|
|
6099
6257
|
}));
|
|
6100
6258
|
nextProps.memoizedState = showFallback;
|
|
6101
6259
|
nextProps.childLanes = getRemainingWorkInPrimaryTree(
|
|
@@ -6152,57 +6310,206 @@ function retrySuspenseComponentWithoutHydrating(
|
|
|
6152
6310
|
workInProgress.memoizedState = null;
|
|
6153
6311
|
return current;
|
|
6154
6312
|
}
|
|
6155
|
-
function
|
|
6156
|
-
|
|
6157
|
-
var alternate = fiber.alternate;
|
|
6158
|
-
null !== alternate && (alternate.lanes |= renderLanes);
|
|
6159
|
-
scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
|
|
6160
|
-
}
|
|
6161
|
-
function initSuspenseListRenderState(
|
|
6313
|
+
function updateDehydratedSuspenseComponent(
|
|
6314
|
+
current,
|
|
6162
6315
|
workInProgress,
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6316
|
+
didSuspend,
|
|
6317
|
+
didPrimaryChildrenDefer,
|
|
6318
|
+
nextProps,
|
|
6319
|
+
suspenseInstance,
|
|
6320
|
+
suspenseState,
|
|
6321
|
+
renderLanes
|
|
6168
6322
|
) {
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
(
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6323
|
+
if (didSuspend) {
|
|
6324
|
+
if (workInProgress.flags & 256)
|
|
6325
|
+
return (
|
|
6326
|
+
pushPrimaryTreeSuspenseHandler(workInProgress),
|
|
6327
|
+
(workInProgress.flags &= -257),
|
|
6328
|
+
retrySuspenseComponentWithoutHydrating(
|
|
6329
|
+
current,
|
|
6330
|
+
workInProgress,
|
|
6331
|
+
renderLanes
|
|
6332
|
+
)
|
|
6333
|
+
);
|
|
6334
|
+
if (null !== workInProgress.memoizedState)
|
|
6335
|
+
return (
|
|
6336
|
+
reuseSuspenseHandlerOnStack(),
|
|
6337
|
+
(workInProgress.child = current.child),
|
|
6338
|
+
(workInProgress.flags |= 128),
|
|
6339
|
+
null
|
|
6340
|
+
);
|
|
6341
|
+
reuseSuspenseHandlerOnStack();
|
|
6342
|
+
suspenseState = nextProps.fallback;
|
|
6343
|
+
didSuspend = workInProgress.mode;
|
|
6344
|
+
nextProps = mountWorkInProgressOffscreenFiber(
|
|
6345
|
+
{ mode: "visible", children: nextProps.children },
|
|
6346
|
+
didSuspend
|
|
6347
|
+
);
|
|
6348
|
+
suspenseState = createFiberFromFragment(
|
|
6349
|
+
suspenseState,
|
|
6350
|
+
didSuspend,
|
|
6351
|
+
renderLanes,
|
|
6352
|
+
null
|
|
6353
|
+
);
|
|
6354
|
+
suspenseState.flags |= 2;
|
|
6355
|
+
nextProps.return = workInProgress;
|
|
6356
|
+
suspenseState.return = workInProgress;
|
|
6357
|
+
nextProps.sibling = suspenseState;
|
|
6358
|
+
workInProgress.child = nextProps;
|
|
6359
|
+
0 !== (workInProgress.mode & 1) &&
|
|
6360
|
+
reconcileChildFibers(workInProgress, current.child, null, renderLanes);
|
|
6361
|
+
nextProps = workInProgress.child;
|
|
6362
|
+
nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes);
|
|
6363
|
+
nextProps.childLanes = getRemainingWorkInPrimaryTree(
|
|
6364
|
+
current,
|
|
6365
|
+
didPrimaryChildrenDefer,
|
|
6366
|
+
renderLanes
|
|
6367
|
+
);
|
|
6368
|
+
workInProgress.memoizedState = SUSPENDED_MARKER;
|
|
6369
|
+
return bailoutOffscreenComponent(null, nextProps);
|
|
6370
|
+
}
|
|
6371
|
+
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
6372
|
+
if (shim$1())
|
|
6373
|
+
return (
|
|
6374
|
+
(didPrimaryChildrenDefer = shim$1().digest),
|
|
6375
|
+
"" !== didPrimaryChildrenDefer &&
|
|
6376
|
+
((nextProps = Error(
|
|
6377
|
+
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
|
6378
|
+
)),
|
|
6379
|
+
(nextProps.stack = ""),
|
|
6380
|
+
(nextProps.digest = didPrimaryChildrenDefer),
|
|
6381
|
+
(didPrimaryChildrenDefer = {
|
|
6382
|
+
value: nextProps,
|
|
6383
|
+
source: null,
|
|
6384
|
+
stack: null
|
|
6385
|
+
}),
|
|
6386
|
+
null === hydrationErrors
|
|
6387
|
+
? (hydrationErrors = [didPrimaryChildrenDefer])
|
|
6388
|
+
: hydrationErrors.push(didPrimaryChildrenDefer)),
|
|
6389
|
+
retrySuspenseComponentWithoutHydrating(
|
|
6390
|
+
current,
|
|
6391
|
+
workInProgress,
|
|
6392
|
+
renderLanes
|
|
6393
|
+
)
|
|
6394
|
+
);
|
|
6395
|
+
didReceiveUpdate ||
|
|
6396
|
+
propagateParentContextChanges(current, workInProgress, renderLanes, !1);
|
|
6397
|
+
didPrimaryChildrenDefer = 0 !== (renderLanes & current.childLanes);
|
|
6398
|
+
if (didReceiveUpdate || didPrimaryChildrenDefer) {
|
|
6399
|
+
if (null !== currentTreeHiddenStackCursor.current)
|
|
6400
|
+
return retrySuspenseComponentWithoutHydrating(
|
|
6401
|
+
current,
|
|
6402
|
+
workInProgress,
|
|
6403
|
+
renderLanes
|
|
6404
|
+
);
|
|
6405
|
+
didPrimaryChildrenDefer = workInProgressRoot;
|
|
6406
|
+
if (
|
|
6407
|
+
null !== didPrimaryChildrenDefer &&
|
|
6408
|
+
((nextProps = getBumpedLaneForHydration(
|
|
6409
|
+
didPrimaryChildrenDefer,
|
|
6410
|
+
renderLanes
|
|
6411
|
+
)),
|
|
6412
|
+
0 !== nextProps && nextProps !== suspenseState.retryLane)
|
|
6413
|
+
)
|
|
6414
|
+
throw (
|
|
6415
|
+
((suspenseState.retryLane = nextProps),
|
|
6416
|
+
enqueueConcurrentRenderForLane(current, nextProps),
|
|
6417
|
+
scheduleUpdateOnFiber(didPrimaryChildrenDefer, current, nextProps),
|
|
6418
|
+
SelectiveHydrationException)
|
|
6419
|
+
);
|
|
6420
|
+
shim$1() || renderDidSuspendDelayIfPossible();
|
|
6421
|
+
return retrySuspenseComponentWithoutHydrating(
|
|
6422
|
+
current,
|
|
6423
|
+
workInProgress,
|
|
6424
|
+
renderLanes
|
|
6425
|
+
);
|
|
6426
|
+
}
|
|
6427
|
+
if (shim$1())
|
|
6428
|
+
return (
|
|
6429
|
+
(workInProgress.flags |= 192),
|
|
6430
|
+
(workInProgress.child = current.child),
|
|
6431
|
+
null
|
|
6432
|
+
);
|
|
6433
|
+
current = mountSuspensePrimaryChildren(workInProgress, nextProps.children);
|
|
6434
|
+
current.flags |= 134221824;
|
|
6435
|
+
return current;
|
|
6436
|
+
}
|
|
6437
|
+
function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
|
|
6438
|
+
fiber.lanes |= renderLanes;
|
|
6439
|
+
var alternate = fiber.alternate;
|
|
6440
|
+
null !== alternate && (alternate.lanes |= renderLanes);
|
|
6441
|
+
scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
|
|
6442
|
+
}
|
|
6443
|
+
function findLastContentRow(firstChild) {
|
|
6444
|
+
for (var lastContentRow = null; null !== firstChild; ) {
|
|
6445
|
+
var currentRow = firstChild.alternate;
|
|
6446
|
+
null !== currentRow &&
|
|
6447
|
+
null === findFirstSuspended(currentRow) &&
|
|
6448
|
+
(lastContentRow = firstChild);
|
|
6449
|
+
firstChild = firstChild.sibling;
|
|
6450
|
+
}
|
|
6451
|
+
return lastContentRow;
|
|
6452
|
+
}
|
|
6453
|
+
function initSuspenseListRenderState(
|
|
6454
|
+
workInProgress,
|
|
6455
|
+
isBackwards,
|
|
6456
|
+
tail,
|
|
6457
|
+
lastContentRow,
|
|
6458
|
+
tailMode,
|
|
6459
|
+
treeForkCount
|
|
6460
|
+
) {
|
|
6461
|
+
var renderState = workInProgress.memoizedState;
|
|
6462
|
+
null === renderState
|
|
6463
|
+
? (workInProgress.memoizedState = {
|
|
6464
|
+
isBackwards: isBackwards,
|
|
6465
|
+
rendering: null,
|
|
6466
|
+
renderingStartTime: 0,
|
|
6467
|
+
last: lastContentRow,
|
|
6468
|
+
tail: tail,
|
|
6469
|
+
tailMode: tailMode,
|
|
6470
|
+
treeForkCount: treeForkCount
|
|
6471
|
+
})
|
|
6472
|
+
: ((renderState.isBackwards = isBackwards),
|
|
6473
|
+
(renderState.rendering = null),
|
|
6474
|
+
(renderState.renderingStartTime = 0),
|
|
6475
|
+
(renderState.last = lastContentRow),
|
|
6476
|
+
(renderState.tail = tail),
|
|
6477
|
+
(renderState.tailMode = tailMode),
|
|
6478
|
+
(renderState.treeForkCount = treeForkCount));
|
|
6479
|
+
}
|
|
6480
|
+
function reverseChildren(fiber) {
|
|
6481
|
+
var row = fiber.child;
|
|
6482
|
+
for (fiber.child = null; null !== row; ) {
|
|
6483
|
+
var nextRow = row.sibling;
|
|
6484
|
+
row.sibling = fiber.child;
|
|
6485
|
+
fiber.child = row;
|
|
6486
|
+
row = nextRow;
|
|
6487
|
+
}
|
|
6488
|
+
}
|
|
6489
|
+
function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
6490
|
+
var nextProps = workInProgress.pendingProps,
|
|
6491
|
+
revealOrder = nextProps.revealOrder,
|
|
6492
|
+
tailMode = nextProps.tail;
|
|
6493
|
+
nextProps = nextProps.children;
|
|
6494
|
+
var suspenseContext = suspenseStackCursor.current;
|
|
6495
|
+
if (workInProgress.flags & 128)
|
|
6496
|
+
return pushSuspenseListContext(workInProgress, suspenseContext), null;
|
|
6497
|
+
var shouldForceFallback = 0 !== (suspenseContext & 2);
|
|
6498
|
+
shouldForceFallback
|
|
6499
|
+
? ((suspenseContext = (suspenseContext & 1) | 2),
|
|
6500
|
+
(workInProgress.flags |= 128))
|
|
6501
|
+
: (suspenseContext &= 1);
|
|
6502
|
+
pushSuspenseListContext(workInProgress, suspenseContext);
|
|
6503
|
+
"backwards" === revealOrder && null !== current
|
|
6504
|
+
? (reverseChildren(current),
|
|
6505
|
+
reconcileChildren(current, workInProgress, nextProps, renderLanes),
|
|
6506
|
+
reverseChildren(current))
|
|
6507
|
+
: reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
6508
|
+
if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
|
|
6509
|
+
a: for (current = workInProgress.child; null !== current; ) {
|
|
6510
|
+
if (13 === current.tag)
|
|
6511
|
+
null !== current.memoizedState &&
|
|
6512
|
+
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
|
|
6206
6513
|
else if (19 === current.tag)
|
|
6207
6514
|
scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
|
|
6208
6515
|
else if (null !== current.child) {
|
|
@@ -6222,29 +6529,23 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
6222
6529
|
if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;
|
|
6223
6530
|
else
|
|
6224
6531
|
switch (revealOrder) {
|
|
6225
|
-
case "
|
|
6226
|
-
renderLanes = workInProgress.child;
|
|
6227
|
-
for (revealOrder = null; null !== renderLanes; )
|
|
6228
|
-
(current = renderLanes.alternate),
|
|
6229
|
-
null !== current &&
|
|
6230
|
-
null === findFirstSuspended(current) &&
|
|
6231
|
-
(revealOrder = renderLanes),
|
|
6232
|
-
(renderLanes = renderLanes.sibling);
|
|
6233
|
-
renderLanes = revealOrder;
|
|
6532
|
+
case "backwards":
|
|
6533
|
+
renderLanes = findLastContentRow(workInProgress.child);
|
|
6234
6534
|
null === renderLanes
|
|
6235
6535
|
? ((revealOrder = workInProgress.child),
|
|
6236
6536
|
(workInProgress.child = null))
|
|
6237
|
-
: ((revealOrder = renderLanes.sibling),
|
|
6537
|
+
: ((revealOrder = renderLanes.sibling),
|
|
6538
|
+
(renderLanes.sibling = null),
|
|
6539
|
+
reverseChildren(workInProgress));
|
|
6238
6540
|
initSuspenseListRenderState(
|
|
6239
6541
|
workInProgress,
|
|
6240
|
-
!
|
|
6542
|
+
!0,
|
|
6241
6543
|
revealOrder,
|
|
6242
|
-
|
|
6544
|
+
null,
|
|
6243
6545
|
tailMode,
|
|
6244
6546
|
0
|
|
6245
6547
|
);
|
|
6246
6548
|
break;
|
|
6247
|
-
case "backwards":
|
|
6248
6549
|
case "unstable_legacy-backwards":
|
|
6249
6550
|
renderLanes = null;
|
|
6250
6551
|
revealOrder = workInProgress.child;
|
|
@@ -6271,11 +6572,33 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
6271
6572
|
case "together":
|
|
6272
6573
|
initSuspenseListRenderState(workInProgress, !1, null, null, void 0, 0);
|
|
6273
6574
|
break;
|
|
6274
|
-
|
|
6575
|
+
case "independent":
|
|
6275
6576
|
workInProgress.memoizedState = null;
|
|
6577
|
+
break;
|
|
6578
|
+
default:
|
|
6579
|
+
(renderLanes = findLastContentRow(workInProgress.child)),
|
|
6580
|
+
null === renderLanes
|
|
6581
|
+
? ((revealOrder = workInProgress.child),
|
|
6582
|
+
(workInProgress.child = null))
|
|
6583
|
+
: ((revealOrder = renderLanes.sibling),
|
|
6584
|
+
(renderLanes.sibling = null)),
|
|
6585
|
+
initSuspenseListRenderState(
|
|
6586
|
+
workInProgress,
|
|
6587
|
+
!1,
|
|
6588
|
+
revealOrder,
|
|
6589
|
+
renderLanes,
|
|
6590
|
+
tailMode,
|
|
6591
|
+
0
|
|
6592
|
+
);
|
|
6276
6593
|
}
|
|
6277
6594
|
return workInProgress.child;
|
|
6278
6595
|
}
|
|
6596
|
+
function updateContextProvider(current, workInProgress, renderLanes) {
|
|
6597
|
+
var newProps = workInProgress.pendingProps;
|
|
6598
|
+
pushProvider(workInProgress, workInProgress.type, newProps.value);
|
|
6599
|
+
reconcileChildren(current, workInProgress, newProps.children, renderLanes);
|
|
6600
|
+
return workInProgress.child;
|
|
6601
|
+
}
|
|
6279
6602
|
function resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress) {
|
|
6280
6603
|
0 === (workInProgress.mode & 1) &&
|
|
6281
6604
|
null !== current &&
|
|
@@ -6352,15 +6675,22 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
6352
6675
|
);
|
|
6353
6676
|
break;
|
|
6354
6677
|
case 13:
|
|
6355
|
-
var state$
|
|
6356
|
-
if (null !== state$
|
|
6357
|
-
if (null !== state$
|
|
6678
|
+
var state$76 = workInProgress.memoizedState;
|
|
6679
|
+
if (null !== state$76) {
|
|
6680
|
+
if (null !== state$76.dehydrated)
|
|
6358
6681
|
return (
|
|
6359
6682
|
pushPrimaryTreeSuspenseHandler(workInProgress),
|
|
6360
6683
|
(workInProgress.flags |= 128),
|
|
6361
6684
|
null
|
|
6362
6685
|
);
|
|
6363
|
-
|
|
6686
|
+
state$76 = propagateParentContextChanges(
|
|
6687
|
+
current,
|
|
6688
|
+
workInProgress,
|
|
6689
|
+
renderLanes,
|
|
6690
|
+
!1
|
|
6691
|
+
);
|
|
6692
|
+
var primaryChildLanes = workInProgress.child.childLanes;
|
|
6693
|
+
if (state$76 || 0 !== (renderLanes & primaryChildLanes))
|
|
6364
6694
|
return updateSuspenseComponent(current, workInProgress, renderLanes);
|
|
6365
6695
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
6366
6696
|
current = bailoutOnAlreadyFinishedWork(
|
|
@@ -6373,18 +6703,24 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
6373
6703
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
6374
6704
|
break;
|
|
6375
6705
|
case 19:
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6706
|
+
if (workInProgress.flags & 128)
|
|
6707
|
+
return updateSuspenseListComponent(
|
|
6708
|
+
current,
|
|
6709
|
+
workInProgress,
|
|
6710
|
+
renderLanes
|
|
6711
|
+
);
|
|
6712
|
+
primaryChildLanes = 0 !== (current.flags & 128);
|
|
6713
|
+
state$76 = 0 !== (renderLanes & workInProgress.childLanes);
|
|
6714
|
+
state$76 ||
|
|
6379
6715
|
(propagateParentContextChanges(
|
|
6380
6716
|
current,
|
|
6381
6717
|
workInProgress,
|
|
6382
6718
|
renderLanes,
|
|
6383
6719
|
!1
|
|
6384
6720
|
),
|
|
6385
|
-
(state$
|
|
6386
|
-
if (
|
|
6387
|
-
if (state$
|
|
6721
|
+
(state$76 = 0 !== (renderLanes & workInProgress.childLanes)));
|
|
6722
|
+
if (primaryChildLanes) {
|
|
6723
|
+
if (state$76)
|
|
6388
6724
|
return updateSuspenseListComponent(
|
|
6389
6725
|
current,
|
|
6390
6726
|
workInProgress,
|
|
@@ -6392,13 +6728,13 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
|
6392
6728
|
);
|
|
6393
6729
|
workInProgress.flags |= 128;
|
|
6394
6730
|
}
|
|
6395
|
-
|
|
6396
|
-
null !==
|
|
6397
|
-
((
|
|
6398
|
-
(
|
|
6399
|
-
(
|
|
6400
|
-
|
|
6401
|
-
if (state$
|
|
6731
|
+
primaryChildLanes = workInProgress.memoizedState;
|
|
6732
|
+
null !== primaryChildLanes &&
|
|
6733
|
+
((primaryChildLanes.rendering = null),
|
|
6734
|
+
(primaryChildLanes.tail = null),
|
|
6735
|
+
(primaryChildLanes.lastEffect = null));
|
|
6736
|
+
pushSuspenseListContext(workInProgress, suspenseStackCursor.current);
|
|
6737
|
+
if (state$76) break;
|
|
6402
6738
|
else return null;
|
|
6403
6739
|
case 22:
|
|
6404
6740
|
return (
|
|
@@ -6487,6 +6823,15 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
6487
6823
|
renderLanes
|
|
6488
6824
|
);
|
|
6489
6825
|
break a;
|
|
6826
|
+
} else if ($$typeof === REACT_CONTEXT_TYPE) {
|
|
6827
|
+
workInProgress.tag = 10;
|
|
6828
|
+
workInProgress.type = elementType;
|
|
6829
|
+
workInProgress = updateContextProvider(
|
|
6830
|
+
null,
|
|
6831
|
+
workInProgress,
|
|
6832
|
+
renderLanes
|
|
6833
|
+
);
|
|
6834
|
+
break a;
|
|
6490
6835
|
}
|
|
6491
6836
|
}
|
|
6492
6837
|
workInProgress = getComponentNameFromType(elementType) || elementType;
|
|
@@ -6606,12 +6951,9 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
6606
6951
|
);
|
|
6607
6952
|
case 7:
|
|
6608
6953
|
return (
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
workInProgress.pendingProps,
|
|
6613
|
-
renderLanes
|
|
6614
|
-
),
|
|
6954
|
+
(elementType = workInProgress.pendingProps),
|
|
6955
|
+
markRef(current, workInProgress),
|
|
6956
|
+
reconcileChildren(current, workInProgress, elementType, renderLanes),
|
|
6615
6957
|
workInProgress.child
|
|
6616
6958
|
);
|
|
6617
6959
|
case 8:
|
|
@@ -6635,17 +6977,7 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
6635
6977
|
workInProgress.child
|
|
6636
6978
|
);
|
|
6637
6979
|
case 10:
|
|
6638
|
-
return (
|
|
6639
|
-
(elementType = workInProgress.pendingProps),
|
|
6640
|
-
pushProvider(workInProgress, workInProgress.type, elementType.value),
|
|
6641
|
-
reconcileChildren(
|
|
6642
|
-
current,
|
|
6643
|
-
workInProgress,
|
|
6644
|
-
elementType.children,
|
|
6645
|
-
renderLanes
|
|
6646
|
-
),
|
|
6647
|
-
workInProgress.child
|
|
6648
|
-
);
|
|
6980
|
+
return updateContextProvider(current, workInProgress, renderLanes);
|
|
6649
6981
|
case 9:
|
|
6650
6982
|
return (
|
|
6651
6983
|
($$typeof = workInProgress.type._context),
|
|
@@ -6751,19 +7083,21 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
6751
7083
|
);
|
|
6752
7084
|
nextProps = 0 !== (renderLanes & current.childLanes);
|
|
6753
7085
|
if (didReceiveUpdate || nextProps) {
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
(
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
7086
|
+
if (null === currentTreeHiddenStackCursor.current) {
|
|
7087
|
+
$$typeof = workInProgressRoot;
|
|
7088
|
+
if (
|
|
7089
|
+
null !== $$typeof &&
|
|
7090
|
+
((nextProps = getBumpedLaneForHydration($$typeof, renderLanes)),
|
|
7091
|
+
0 !== nextProps && nextProps !== elementType.retryLane)
|
|
7092
|
+
)
|
|
7093
|
+
throw (
|
|
7094
|
+
((elementType.retryLane = nextProps),
|
|
7095
|
+
enqueueConcurrentRenderForLane(current, nextProps),
|
|
7096
|
+
scheduleUpdateOnFiber($$typeof, current, nextProps),
|
|
7097
|
+
SelectiveHydrationException)
|
|
7098
|
+
);
|
|
7099
|
+
renderDidSuspendDelayIfPossible();
|
|
7100
|
+
}
|
|
6767
7101
|
workInProgress = retryActivityComponentWithoutHydrating(
|
|
6768
7102
|
current,
|
|
6769
7103
|
workInProgress,
|
|
@@ -6771,7 +7105,7 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
6771
7105
|
);
|
|
6772
7106
|
} else
|
|
6773
7107
|
(workInProgress = mountActivityChildren(workInProgress, $$typeof)),
|
|
6774
|
-
(workInProgress.flags |=
|
|
7108
|
+
(workInProgress.flags |= 134221824);
|
|
6775
7109
|
}
|
|
6776
7110
|
else
|
|
6777
7111
|
(renderLanes = createWorkInProgress(current.child, {
|
|
@@ -6840,6 +7174,30 @@ function beginWork(current, workInProgress, renderLanes) {
|
|
|
6840
7174
|
),
|
|
6841
7175
|
workInProgress.child
|
|
6842
7176
|
);
|
|
7177
|
+
case 30:
|
|
7178
|
+
return (
|
|
7179
|
+
null === workInProgress.stateNode &&
|
|
7180
|
+
(workInProgress.stateNode = {
|
|
7181
|
+
autoName: null,
|
|
7182
|
+
paired: null,
|
|
7183
|
+
clones: null,
|
|
7184
|
+
ref: null
|
|
7185
|
+
}),
|
|
7186
|
+
(elementType = workInProgress.pendingProps),
|
|
7187
|
+
null != elementType.name &&
|
|
7188
|
+
"auto" !== elementType.name &&
|
|
7189
|
+
(workInProgress.flags |= null === current ? 18882560 : 18874368),
|
|
7190
|
+
null !== current && current.memoizedProps.name !== elementType.name
|
|
7191
|
+
? (workInProgress.flags |= 4194816)
|
|
7192
|
+
: markRef(current, workInProgress),
|
|
7193
|
+
reconcileChildren(
|
|
7194
|
+
current,
|
|
7195
|
+
workInProgress,
|
|
7196
|
+
elementType.children,
|
|
7197
|
+
renderLanes
|
|
7198
|
+
),
|
|
7199
|
+
workInProgress.child
|
|
7200
|
+
);
|
|
6843
7201
|
case 29:
|
|
6844
7202
|
throw workInProgress.pendingProps;
|
|
6845
7203
|
}
|
|
@@ -6960,26 +7318,29 @@ function scheduleRetryEffect(workInProgress, retryQueue) {
|
|
|
6960
7318
|
}
|
|
6961
7319
|
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
6962
7320
|
switch (renderState.tailMode) {
|
|
6963
|
-
case "
|
|
6964
|
-
hasRenderedATailFallback = renderState.tail;
|
|
6965
|
-
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
6966
|
-
null !== hasRenderedATailFallback.alternate &&
|
|
6967
|
-
(lastTailNode = hasRenderedATailFallback),
|
|
6968
|
-
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
6969
|
-
null === lastTailNode
|
|
6970
|
-
? (renderState.tail = null)
|
|
6971
|
-
: (lastTailNode.sibling = null);
|
|
7321
|
+
case "visible":
|
|
6972
7322
|
break;
|
|
6973
7323
|
case "collapsed":
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
null !==
|
|
6977
|
-
|
|
6978
|
-
|
|
7324
|
+
for (
|
|
7325
|
+
var tailNode = renderState.tail, lastTailNode = null;
|
|
7326
|
+
null !== tailNode;
|
|
7327
|
+
|
|
7328
|
+
)
|
|
7329
|
+
null !== tailNode.alternate && (lastTailNode = tailNode),
|
|
7330
|
+
(tailNode = tailNode.sibling);
|
|
7331
|
+
null === lastTailNode
|
|
6979
7332
|
? hasRenderedATailFallback || null === renderState.tail
|
|
6980
7333
|
? (renderState.tail = null)
|
|
6981
7334
|
: (renderState.tail.sibling = null)
|
|
6982
|
-
: (lastTailNode
|
|
7335
|
+
: (lastTailNode.sibling = null);
|
|
7336
|
+
break;
|
|
7337
|
+
default:
|
|
7338
|
+
hasRenderedATailFallback = renderState.tail;
|
|
7339
|
+
for (tailNode = null; null !== hasRenderedATailFallback; )
|
|
7340
|
+
null !== hasRenderedATailFallback.alternate &&
|
|
7341
|
+
(tailNode = hasRenderedATailFallback),
|
|
7342
|
+
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
7343
|
+
null === tailNode ? (renderState.tail = null) : (tailNode.sibling = null);
|
|
6983
7344
|
}
|
|
6984
7345
|
}
|
|
6985
7346
|
function bubbleProperties(completedWork) {
|
|
@@ -6989,19 +7350,19 @@ function bubbleProperties(completedWork) {
|
|
|
6989
7350
|
newChildLanes = 0,
|
|
6990
7351
|
subtreeFlags = 0;
|
|
6991
7352
|
if (didBailout)
|
|
6992
|
-
for (var child$
|
|
6993
|
-
(newChildLanes |= child$
|
|
6994
|
-
(subtreeFlags |= child$
|
|
6995
|
-
(subtreeFlags |= child$
|
|
6996
|
-
(child$
|
|
6997
|
-
(child$
|
|
7353
|
+
for (var child$89 = completedWork.child; null !== child$89; )
|
|
7354
|
+
(newChildLanes |= child$89.lanes | child$89.childLanes),
|
|
7355
|
+
(subtreeFlags |= child$89.subtreeFlags & 1206910976),
|
|
7356
|
+
(subtreeFlags |= child$89.flags & 1206910976),
|
|
7357
|
+
(child$89.return = completedWork),
|
|
7358
|
+
(child$89 = child$89.sibling);
|
|
6998
7359
|
else
|
|
6999
|
-
for (child$
|
|
7000
|
-
(newChildLanes |= child$
|
|
7001
|
-
(subtreeFlags |= child$
|
|
7002
|
-
(subtreeFlags |= child$
|
|
7003
|
-
(child$
|
|
7004
|
-
(child$
|
|
7360
|
+
for (child$89 = completedWork.child; null !== child$89; )
|
|
7361
|
+
(newChildLanes |= child$89.lanes | child$89.childLanes),
|
|
7362
|
+
(subtreeFlags |= child$89.subtreeFlags),
|
|
7363
|
+
(subtreeFlags |= child$89.flags),
|
|
7364
|
+
(child$89.return = completedWork),
|
|
7365
|
+
(child$89 = child$89.sibling);
|
|
7005
7366
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
7006
7367
|
completedWork.childLanes = newChildLanes;
|
|
7007
7368
|
return didBailout;
|
|
@@ -7023,66 +7384,63 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7023
7384
|
case 1:
|
|
7024
7385
|
return bubbleProperties(workInProgress), null;
|
|
7025
7386
|
case 3:
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
workInProgress.
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
newProps.pendingContext
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
(
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
bubbleProperties(workInProgress),
|
|
7045
|
-
null
|
|
7046
|
-
);
|
|
7387
|
+
newProps = workInProgress.stateNode;
|
|
7388
|
+
var previousCache = null;
|
|
7389
|
+
null !== current && (previousCache = current.memoizedState.cache);
|
|
7390
|
+
workInProgress.memoizedState.cache !== previousCache &&
|
|
7391
|
+
(workInProgress.flags |= 2048);
|
|
7392
|
+
popProvider(CacheContext);
|
|
7393
|
+
popHostContainer();
|
|
7394
|
+
newProps.pendingContext &&
|
|
7395
|
+
((newProps.context = newProps.pendingContext),
|
|
7396
|
+
(newProps.pendingContext = null));
|
|
7397
|
+
(null !== current && null !== current.child) ||
|
|
7398
|
+
null === current ||
|
|
7399
|
+
(current.memoizedState.isDehydrated &&
|
|
7400
|
+
0 === (workInProgress.flags & 256)) ||
|
|
7401
|
+
((workInProgress.flags |= 1024), upgradeHydrationErrorsToRecoverable());
|
|
7402
|
+
updateHostContainer(current, workInProgress);
|
|
7403
|
+
bubbleProperties(workInProgress);
|
|
7404
|
+
return null;
|
|
7047
7405
|
case 26:
|
|
7048
7406
|
case 27:
|
|
7049
7407
|
case 5:
|
|
7050
7408
|
popHostContext(workInProgress);
|
|
7051
|
-
|
|
7409
|
+
renderLanes = workInProgress.type;
|
|
7052
7410
|
if (null !== current && null != workInProgress.stateNode)
|
|
7053
7411
|
if (
|
|
7054
|
-
((
|
|
7055
|
-
(
|
|
7412
|
+
((previousCache = current.stateNode),
|
|
7413
|
+
(renderLanes = current.memoizedProps),
|
|
7056
7414
|
(current = doesRequireClone(current, workInProgress)) ||
|
|
7057
|
-
|
|
7415
|
+
renderLanes !== newProps)
|
|
7058
7416
|
) {
|
|
7059
7417
|
b: {
|
|
7060
|
-
|
|
7061
|
-
|
|
7418
|
+
renderLanes = reactPrivateInterface.diffAttributePayloads(
|
|
7419
|
+
renderLanes,
|
|
7062
7420
|
newProps,
|
|
7063
|
-
|
|
7421
|
+
previousCache.canonical.viewConfig.validAttributes
|
|
7064
7422
|
);
|
|
7065
|
-
|
|
7066
|
-
newProps =
|
|
7423
|
+
previousCache.canonical.currentProps = newProps;
|
|
7424
|
+
newProps = previousCache.node;
|
|
7067
7425
|
if (current)
|
|
7068
7426
|
newProps =
|
|
7069
|
-
null !==
|
|
7070
|
-
? cloneNodeWithNewChildrenAndProps(newProps,
|
|
7427
|
+
null !== renderLanes
|
|
7428
|
+
? cloneNodeWithNewChildrenAndProps(newProps, renderLanes)
|
|
7071
7429
|
: cloneNodeWithNewChildren(newProps);
|
|
7072
|
-
else if (null !==
|
|
7073
|
-
newProps = cloneNodeWithNewProps(newProps,
|
|
7430
|
+
else if (null !== renderLanes)
|
|
7431
|
+
newProps = cloneNodeWithNewProps(newProps, renderLanes);
|
|
7074
7432
|
else {
|
|
7075
|
-
newProps =
|
|
7433
|
+
newProps = previousCache;
|
|
7076
7434
|
break b;
|
|
7077
7435
|
}
|
|
7078
|
-
newProps = { node: newProps, canonical:
|
|
7436
|
+
newProps = { node: newProps, canonical: previousCache.canonical };
|
|
7079
7437
|
}
|
|
7080
|
-
newProps ===
|
|
7081
|
-
? (workInProgress.stateNode =
|
|
7438
|
+
newProps === previousCache
|
|
7439
|
+
? (workInProgress.stateNode = previousCache)
|
|
7082
7440
|
: ((workInProgress.flags |= 8),
|
|
7083
7441
|
(workInProgress.stateNode = newProps),
|
|
7084
7442
|
current && appendAllChildren(newProps, workInProgress, !1, !1));
|
|
7085
|
-
} else workInProgress.stateNode =
|
|
7443
|
+
} else workInProgress.stateNode = previousCache;
|
|
7086
7444
|
else {
|
|
7087
7445
|
if (!newProps) {
|
|
7088
7446
|
if (null === workInProgress.stateNode)
|
|
@@ -7090,27 +7448,27 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7090
7448
|
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
7091
7449
|
);
|
|
7092
7450
|
bubbleProperties(workInProgress);
|
|
7451
|
+
workInProgress.subtreeFlags &= -33554433;
|
|
7093
7452
|
return null;
|
|
7094
7453
|
}
|
|
7095
7454
|
current = rootInstanceStackCursor.current;
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
var updatePayload = ReactNativePrivateInterface.createAttributePayload(
|
|
7455
|
+
previousCache = allocateTag();
|
|
7456
|
+
renderLanes = getViewConfigForType(renderLanes);
|
|
7457
|
+
var updatePayload = reactPrivateInterface.createAttributePayload(
|
|
7100
7458
|
newProps,
|
|
7101
|
-
|
|
7459
|
+
renderLanes.validAttributes
|
|
7102
7460
|
);
|
|
7103
7461
|
current = {
|
|
7104
7462
|
node: createNode(
|
|
7105
|
-
|
|
7106
|
-
|
|
7463
|
+
previousCache,
|
|
7464
|
+
renderLanes.uiViewClassName,
|
|
7107
7465
|
current.containerTag,
|
|
7108
7466
|
updatePayload,
|
|
7109
7467
|
workInProgress
|
|
7110
7468
|
),
|
|
7111
7469
|
canonical: {
|
|
7112
|
-
nativeTag:
|
|
7113
|
-
viewConfig:
|
|
7470
|
+
nativeTag: previousCache,
|
|
7471
|
+
viewConfig: renderLanes,
|
|
7114
7472
|
currentProps: newProps,
|
|
7115
7473
|
internalInstanceHandle: workInProgress,
|
|
7116
7474
|
publicInstance: null,
|
|
@@ -7122,18 +7480,19 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7122
7480
|
workInProgress.stateNode = current;
|
|
7123
7481
|
}
|
|
7124
7482
|
bubbleProperties(workInProgress);
|
|
7483
|
+
workInProgress.subtreeFlags &= -33554433;
|
|
7125
7484
|
workInProgress.flags &= -16777217;
|
|
7126
7485
|
return null;
|
|
7127
7486
|
case 6:
|
|
7128
7487
|
if (current && null != workInProgress.stateNode)
|
|
7129
7488
|
current.memoizedProps !== newProps
|
|
7130
7489
|
? ((current = rootInstanceStackCursor.current),
|
|
7131
|
-
(
|
|
7490
|
+
(previousCache = contextStackCursor.current),
|
|
7132
7491
|
(workInProgress.flags |= 8),
|
|
7133
7492
|
(workInProgress.stateNode = createTextInstance(
|
|
7134
7493
|
newProps,
|
|
7135
7494
|
current,
|
|
7136
|
-
|
|
7495
|
+
previousCache,
|
|
7137
7496
|
workInProgress
|
|
7138
7497
|
)))
|
|
7139
7498
|
: (workInProgress.stateNode = current.stateNode);
|
|
@@ -7143,12 +7502,12 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7143
7502
|
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
7144
7503
|
);
|
|
7145
7504
|
current = rootInstanceStackCursor.current;
|
|
7146
|
-
|
|
7505
|
+
previousCache = contextStackCursor.current;
|
|
7147
7506
|
workInProgress.flags |= 8;
|
|
7148
7507
|
workInProgress.stateNode = createTextInstance(
|
|
7149
7508
|
newProps,
|
|
7150
7509
|
current,
|
|
7151
|
-
|
|
7510
|
+
previousCache,
|
|
7152
7511
|
workInProgress
|
|
7153
7512
|
);
|
|
7154
7513
|
}
|
|
@@ -7210,14 +7569,14 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7210
7569
|
(workInProgress.memoizedState = null);
|
|
7211
7570
|
workInProgress.flags |= 4;
|
|
7212
7571
|
bubbleProperties(workInProgress);
|
|
7213
|
-
|
|
7572
|
+
previousCache = !1;
|
|
7214
7573
|
} else
|
|
7215
|
-
(
|
|
7574
|
+
(previousCache = upgradeHydrationErrorsToRecoverable()),
|
|
7216
7575
|
null !== current &&
|
|
7217
7576
|
null !== current.memoizedState &&
|
|
7218
|
-
(current.memoizedState.hydrationErrors =
|
|
7219
|
-
(
|
|
7220
|
-
if (!
|
|
7577
|
+
(current.memoizedState.hydrationErrors = previousCache),
|
|
7578
|
+
(previousCache = !0);
|
|
7579
|
+
if (!previousCache) {
|
|
7221
7580
|
if (workInProgress.flags & 256)
|
|
7222
7581
|
return popSuspenseHandler(workInProgress), workInProgress;
|
|
7223
7582
|
popSuspenseHandler(workInProgress);
|
|
@@ -7230,17 +7589,17 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7230
7589
|
newProps = null !== newProps;
|
|
7231
7590
|
current = null !== current && null !== current.memoizedState;
|
|
7232
7591
|
newProps &&
|
|
7233
|
-
((
|
|
7234
|
-
(
|
|
7235
|
-
null !==
|
|
7236
|
-
null !==
|
|
7237
|
-
null !==
|
|
7238
|
-
(
|
|
7592
|
+
((previousCache = workInProgress.child),
|
|
7593
|
+
(renderLanes = null),
|
|
7594
|
+
null !== previousCache.alternate &&
|
|
7595
|
+
null !== previousCache.alternate.memoizedState &&
|
|
7596
|
+
null !== previousCache.alternate.memoizedState.cachePool &&
|
|
7597
|
+
(renderLanes = previousCache.alternate.memoizedState.cachePool.pool),
|
|
7239
7598
|
(updatePayload = null),
|
|
7240
|
-
null !==
|
|
7241
|
-
null !==
|
|
7242
|
-
(updatePayload =
|
|
7243
|
-
updatePayload !==
|
|
7599
|
+
null !== previousCache.memoizedState &&
|
|
7600
|
+
null !== previousCache.memoizedState.cachePool &&
|
|
7601
|
+
(updatePayload = previousCache.memoizedState.cachePool.pool),
|
|
7602
|
+
updatePayload !== renderLanes && (previousCache.flags |= 2048));
|
|
7244
7603
|
newProps !== current && newProps && (workInProgress.child.flags |= 8192);
|
|
7245
7604
|
scheduleRetryEffect(workInProgress, workInProgress.updateQueue);
|
|
7246
7605
|
bubbleProperties(workInProgress);
|
|
@@ -7249,6 +7608,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7249
7608
|
return (
|
|
7250
7609
|
popHostContainer(),
|
|
7251
7610
|
updateHostContainer(current, workInProgress),
|
|
7611
|
+
(workInProgress.flags |= 67108864),
|
|
7252
7612
|
bubbleProperties(workInProgress),
|
|
7253
7613
|
null
|
|
7254
7614
|
);
|
|
@@ -7259,13 +7619,13 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7259
7619
|
case 17:
|
|
7260
7620
|
return bubbleProperties(workInProgress), null;
|
|
7261
7621
|
case 19:
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
if (null ===
|
|
7265
|
-
|
|
7266
|
-
updatePayload =
|
|
7622
|
+
popSuspenseListContext(workInProgress);
|
|
7623
|
+
newProps = workInProgress.memoizedState;
|
|
7624
|
+
if (null === newProps) return bubbleProperties(workInProgress), null;
|
|
7625
|
+
previousCache = 0 !== (workInProgress.flags & 128);
|
|
7626
|
+
updatePayload = newProps.rendering;
|
|
7267
7627
|
if (null === updatePayload)
|
|
7268
|
-
if (
|
|
7628
|
+
if (previousCache) cutOffTailIfNeeded(newProps, !1);
|
|
7269
7629
|
else {
|
|
7270
7630
|
if (
|
|
7271
7631
|
0 !== workInProgressRootExitStatus ||
|
|
@@ -7275,7 +7635,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7275
7635
|
updatePayload = findFirstSuspended(current);
|
|
7276
7636
|
if (null !== updatePayload) {
|
|
7277
7637
|
workInProgress.flags |= 128;
|
|
7278
|
-
cutOffTailIfNeeded(
|
|
7638
|
+
cutOffTailIfNeeded(newProps, !1);
|
|
7279
7639
|
current = updatePayload.updateQueue;
|
|
7280
7640
|
workInProgress.updateQueue = current;
|
|
7281
7641
|
scheduleRetryEffect(workInProgress, current);
|
|
@@ -7284,66 +7644,86 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7284
7644
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
7285
7645
|
resetWorkInProgress(newProps, current),
|
|
7286
7646
|
(newProps = newProps.sibling);
|
|
7287
|
-
|
|
7288
|
-
|
|
7647
|
+
pushSuspenseListContext(
|
|
7648
|
+
workInProgress,
|
|
7289
7649
|
(suspenseStackCursor.current & 1) | 2
|
|
7290
7650
|
);
|
|
7291
7651
|
return workInProgress.child;
|
|
7292
7652
|
}
|
|
7293
7653
|
current = current.sibling;
|
|
7294
7654
|
}
|
|
7295
|
-
null !==
|
|
7655
|
+
null !== newProps.tail &&
|
|
7296
7656
|
now() > workInProgressRootRenderTargetTime &&
|
|
7297
7657
|
((workInProgress.flags |= 128),
|
|
7298
|
-
(
|
|
7299
|
-
cutOffTailIfNeeded(
|
|
7658
|
+
(previousCache = !0),
|
|
7659
|
+
cutOffTailIfNeeded(newProps, !1),
|
|
7300
7660
|
(workInProgress.lanes = 4194304));
|
|
7301
7661
|
}
|
|
7302
7662
|
else {
|
|
7303
|
-
if (!
|
|
7663
|
+
if (!previousCache)
|
|
7304
7664
|
if (
|
|
7305
7665
|
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
7306
7666
|
) {
|
|
7307
7667
|
if (
|
|
7308
7668
|
((workInProgress.flags |= 128),
|
|
7309
|
-
(
|
|
7669
|
+
(previousCache = !0),
|
|
7310
7670
|
(current = current.updateQueue),
|
|
7311
7671
|
(workInProgress.updateQueue = current),
|
|
7312
7672
|
scheduleRetryEffect(workInProgress, current),
|
|
7313
|
-
cutOffTailIfNeeded(
|
|
7314
|
-
null ===
|
|
7315
|
-
"
|
|
7673
|
+
cutOffTailIfNeeded(newProps, !0),
|
|
7674
|
+
null === newProps.tail &&
|
|
7675
|
+
"collapsed" !== newProps.tailMode &&
|
|
7676
|
+
"visible" !== newProps.tailMode &&
|
|
7316
7677
|
!updatePayload.alternate)
|
|
7317
7678
|
)
|
|
7318
7679
|
return bubbleProperties(workInProgress), null;
|
|
7319
7680
|
} else
|
|
7320
|
-
2 * now() -
|
|
7681
|
+
2 * now() - newProps.renderingStartTime >
|
|
7321
7682
|
workInProgressRootRenderTargetTime &&
|
|
7322
7683
|
536870912 !== renderLanes &&
|
|
7323
7684
|
((workInProgress.flags |= 128),
|
|
7324
|
-
(
|
|
7325
|
-
cutOffTailIfNeeded(
|
|
7685
|
+
(previousCache = !0),
|
|
7686
|
+
cutOffTailIfNeeded(newProps, !1),
|
|
7326
7687
|
(workInProgress.lanes = 4194304));
|
|
7327
|
-
|
|
7688
|
+
newProps.isBackwards
|
|
7328
7689
|
? ((updatePayload.sibling = workInProgress.child),
|
|
7329
7690
|
(workInProgress.child = updatePayload))
|
|
7330
|
-
: ((current =
|
|
7691
|
+
: ((current = newProps.last),
|
|
7331
7692
|
null !== current
|
|
7332
7693
|
? (current.sibling = updatePayload)
|
|
7333
7694
|
: (workInProgress.child = updatePayload),
|
|
7334
|
-
(
|
|
7695
|
+
(newProps.last = updatePayload));
|
|
7696
|
+
}
|
|
7697
|
+
if (null !== newProps.tail) {
|
|
7698
|
+
current = newProps.tail;
|
|
7699
|
+
a: {
|
|
7700
|
+
for (renderLanes = current; null !== renderLanes; ) {
|
|
7701
|
+
if (null !== renderLanes.alternate) {
|
|
7702
|
+
renderLanes = !1;
|
|
7703
|
+
break a;
|
|
7704
|
+
}
|
|
7705
|
+
renderLanes = renderLanes.sibling;
|
|
7706
|
+
}
|
|
7707
|
+
renderLanes = !0;
|
|
7708
|
+
}
|
|
7709
|
+
newProps.rendering = current;
|
|
7710
|
+
newProps.tail = current.sibling;
|
|
7711
|
+
newProps.renderingStartTime = now();
|
|
7712
|
+
current.sibling = null;
|
|
7713
|
+
updatePayload = suspenseStackCursor.current;
|
|
7714
|
+
updatePayload = previousCache
|
|
7715
|
+
? (updatePayload & 1) | 2
|
|
7716
|
+
: updatePayload & 1;
|
|
7717
|
+
"visible" !== newProps.tailMode &&
|
|
7718
|
+
"collapsed" !== newProps.tailMode &&
|
|
7719
|
+
renderLanes
|
|
7720
|
+
? ((newProps = updatePayload),
|
|
7721
|
+
push(suspenseHandlerStackCursor, workInProgress),
|
|
7722
|
+
push(suspenseStackCursor, newProps),
|
|
7723
|
+
null === shellBoundary && (shellBoundary = workInProgress))
|
|
7724
|
+
: pushSuspenseListContext(workInProgress, updatePayload);
|
|
7725
|
+
return current;
|
|
7335
7726
|
}
|
|
7336
|
-
if (null !== type.tail)
|
|
7337
|
-
return (
|
|
7338
|
-
(workInProgress = type.tail),
|
|
7339
|
-
(type.rendering = workInProgress),
|
|
7340
|
-
(type.tail = workInProgress.sibling),
|
|
7341
|
-
(type.renderingStartTime = now()),
|
|
7342
|
-
(workInProgress.sibling = null),
|
|
7343
|
-
(current = suspenseStackCursor.current),
|
|
7344
|
-
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
7345
|
-
workInProgress
|
|
7346
|
-
);
|
|
7347
7727
|
bubbleProperties(workInProgress);
|
|
7348
7728
|
return null;
|
|
7349
7729
|
case 22:
|
|
@@ -7370,11 +7750,11 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7370
7750
|
null !== current.memoizedState &&
|
|
7371
7751
|
null !== current.memoizedState.cachePool &&
|
|
7372
7752
|
(newProps = current.memoizedState.cachePool.pool),
|
|
7373
|
-
(
|
|
7753
|
+
(previousCache = null),
|
|
7374
7754
|
null !== workInProgress.memoizedState &&
|
|
7375
7755
|
null !== workInProgress.memoizedState.cachePool &&
|
|
7376
|
-
(
|
|
7377
|
-
|
|
7756
|
+
(previousCache = workInProgress.memoizedState.cachePool.pool),
|
|
7757
|
+
previousCache !== newProps && (workInProgress.flags |= 2048),
|
|
7378
7758
|
null !== current && pop(resumedCache),
|
|
7379
7759
|
null
|
|
7380
7760
|
);
|
|
@@ -7391,7 +7771,11 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
7391
7771
|
case 25:
|
|
7392
7772
|
return null;
|
|
7393
7773
|
case 30:
|
|
7394
|
-
return
|
|
7774
|
+
return (
|
|
7775
|
+
(workInProgress.flags |= 33554432),
|
|
7776
|
+
bubbleProperties(workInProgress),
|
|
7777
|
+
null
|
|
7778
|
+
);
|
|
7395
7779
|
case 29:
|
|
7396
7780
|
return null;
|
|
7397
7781
|
}
|
|
@@ -7451,7 +7835,18 @@ function unwindWork(current, workInProgress) {
|
|
|
7451
7835
|
? ((workInProgress.flags = (current & -65537) | 128), workInProgress)
|
|
7452
7836
|
: null;
|
|
7453
7837
|
case 19:
|
|
7454
|
-
return
|
|
7838
|
+
return (
|
|
7839
|
+
popSuspenseListContext(workInProgress),
|
|
7840
|
+
(current = workInProgress.flags),
|
|
7841
|
+
current & 65536
|
|
7842
|
+
? ((workInProgress.flags = (current & -65537) | 128),
|
|
7843
|
+
(current = workInProgress.memoizedState),
|
|
7844
|
+
null !== current &&
|
|
7845
|
+
((current.rendering = null), (current.tail = null)),
|
|
7846
|
+
(workInProgress.flags |= 4),
|
|
7847
|
+
workInProgress)
|
|
7848
|
+
: null
|
|
7849
|
+
);
|
|
7455
7850
|
case 4:
|
|
7456
7851
|
return popHostContainer(), null;
|
|
7457
7852
|
case 10:
|
|
@@ -7497,7 +7892,7 @@ function unwindInterruptedWork(current, interruptedWork) {
|
|
|
7497
7892
|
popSuspenseHandler(interruptedWork);
|
|
7498
7893
|
break;
|
|
7499
7894
|
case 19:
|
|
7500
|
-
|
|
7895
|
+
popSuspenseListContext(interruptedWork);
|
|
7501
7896
|
break;
|
|
7502
7897
|
case 10:
|
|
7503
7898
|
popProvider(interruptedWork.type);
|
|
@@ -7610,6 +8005,25 @@ function safelyAttachRef(current, nearestMountedAncestor) {
|
|
|
7610
8005
|
var instanceToUse = getPublicInstance(current.stateNode);
|
|
7611
8006
|
break;
|
|
7612
8007
|
case 30:
|
|
8008
|
+
var instance = current.stateNode,
|
|
8009
|
+
name = getViewTransitionName(current.memoizedProps, instance);
|
|
8010
|
+
if (null === instance.ref || instance.ref.name !== name)
|
|
8011
|
+
instance.ref = createViewTransitionInstance(name);
|
|
8012
|
+
instanceToUse = instance.ref;
|
|
8013
|
+
break;
|
|
8014
|
+
case 7:
|
|
8015
|
+
if (null === current.stateNode) {
|
|
8016
|
+
var fragmentInstance = new FragmentInstance(current);
|
|
8017
|
+
traverseVisibleInstancesAndTextInstances(
|
|
8018
|
+
current.child,
|
|
8019
|
+
!1,
|
|
8020
|
+
addFragmentHandleToFiber,
|
|
8021
|
+
fragmentInstance,
|
|
8022
|
+
void 0,
|
|
8023
|
+
void 0
|
|
8024
|
+
);
|
|
8025
|
+
current.stateNode = fragmentInstance;
|
|
8026
|
+
}
|
|
7613
8027
|
instanceToUse = current.stateNode;
|
|
7614
8028
|
break;
|
|
7615
8029
|
default:
|
|
@@ -7640,11 +8054,45 @@ function safelyDetachRef(current, nearestMountedAncestor) {
|
|
|
7640
8054
|
else if ("function" === typeof ref)
|
|
7641
8055
|
try {
|
|
7642
8056
|
ref(null);
|
|
7643
|
-
} catch (error$
|
|
7644
|
-
captureCommitPhaseError(current, nearestMountedAncestor, error$
|
|
8057
|
+
} catch (error$117) {
|
|
8058
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error$117);
|
|
7645
8059
|
}
|
|
7646
8060
|
else ref.current = null;
|
|
7647
8061
|
}
|
|
8062
|
+
var viewTransitionMutationContext = !1;
|
|
8063
|
+
function pushMutationContext() {
|
|
8064
|
+
var prev = viewTransitionMutationContext;
|
|
8065
|
+
viewTransitionMutationContext = !1;
|
|
8066
|
+
return prev;
|
|
8067
|
+
}
|
|
8068
|
+
function commitFragmentInstanceInsertionEffects(fiber) {
|
|
8069
|
+
for (var parent = fiber.return; null !== parent; ) {
|
|
8070
|
+
isFragmentInstanceParent(parent) &&
|
|
8071
|
+
commitNewChildToFragmentInstance(fiber.stateNode, parent.stateNode);
|
|
8072
|
+
if (isFragmentInstanceHostBoundary(parent)) break;
|
|
8073
|
+
parent = parent.return;
|
|
8074
|
+
}
|
|
8075
|
+
}
|
|
8076
|
+
function commitFragmentInstanceDeletionEffects(fiber) {
|
|
8077
|
+
for (var parent = fiber.return; null !== parent; ) {
|
|
8078
|
+
if (isFragmentInstanceParent(parent)) {
|
|
8079
|
+
var fragmentInstance = parent.stateNode;
|
|
8080
|
+
var childInstance = fiber.stateNode;
|
|
8081
|
+
null != childInstance.canonical &&
|
|
8082
|
+
((childInstance = getPublicInstance(childInstance)),
|
|
8083
|
+
null != childInstance.reactFragments &&
|
|
8084
|
+
childInstance.reactFragments.delete(fragmentInstance));
|
|
8085
|
+
}
|
|
8086
|
+
if (isFragmentInstanceHostBoundary(parent)) break;
|
|
8087
|
+
parent = parent.return;
|
|
8088
|
+
}
|
|
8089
|
+
}
|
|
8090
|
+
function isFragmentInstanceHostBoundary(fiber) {
|
|
8091
|
+
return 5 === fiber.tag || 3 === fiber.tag || !1;
|
|
8092
|
+
}
|
|
8093
|
+
function isFragmentInstanceParent(fiber) {
|
|
8094
|
+
return fiber && 7 === fiber.tag && null !== fiber.stateNode;
|
|
8095
|
+
}
|
|
7648
8096
|
function commitHostMount(finishedWork) {
|
|
7649
8097
|
try {
|
|
7650
8098
|
throw Error(
|
|
@@ -7654,6 +8102,42 @@ function commitHostMount(finishedWork) {
|
|
|
7654
8102
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
7655
8103
|
}
|
|
7656
8104
|
}
|
|
8105
|
+
function commitImmutablePlacementNodeToFragmentInstances(
|
|
8106
|
+
finishedWork,
|
|
8107
|
+
parentFragmentInstances
|
|
8108
|
+
) {
|
|
8109
|
+
if (5 === finishedWork.tag) {
|
|
8110
|
+
if (
|
|
8111
|
+
(5 === finishedWork.tag ||
|
|
8112
|
+
27 === finishedWork.tag ||
|
|
8113
|
+
6 === finishedWork.tag) &&
|
|
8114
|
+
null === finishedWork.alternate &&
|
|
8115
|
+
null !== parentFragmentInstances
|
|
8116
|
+
)
|
|
8117
|
+
for (var i = 0; i < parentFragmentInstances.length; i++)
|
|
8118
|
+
commitNewChildToFragmentInstance(
|
|
8119
|
+
finishedWork.stateNode,
|
|
8120
|
+
parentFragmentInstances[i]
|
|
8121
|
+
);
|
|
8122
|
+
} else if (
|
|
8123
|
+
4 !== finishedWork.tag &&
|
|
8124
|
+
((finishedWork = finishedWork.child), null !== finishedWork)
|
|
8125
|
+
)
|
|
8126
|
+
for (
|
|
8127
|
+
commitImmutablePlacementNodeToFragmentInstances(
|
|
8128
|
+
finishedWork,
|
|
8129
|
+
parentFragmentInstances
|
|
8130
|
+
),
|
|
8131
|
+
finishedWork = finishedWork.sibling;
|
|
8132
|
+
null !== finishedWork;
|
|
8133
|
+
|
|
8134
|
+
)
|
|
8135
|
+
commitImmutablePlacementNodeToFragmentInstances(
|
|
8136
|
+
finishedWork,
|
|
8137
|
+
parentFragmentInstances
|
|
8138
|
+
),
|
|
8139
|
+
(finishedWork = finishedWork.sibling);
|
|
8140
|
+
}
|
|
7657
8141
|
function commitHostPortalContainerChildren(
|
|
7658
8142
|
portal,
|
|
7659
8143
|
finishedWork,
|
|
@@ -7666,84 +8150,313 @@ function commitHostPortalContainerChildren(
|
|
|
7666
8150
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
7667
8151
|
}
|
|
7668
8152
|
}
|
|
7669
|
-
var
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
8153
|
+
var shouldStartViewTransition = !1,
|
|
8154
|
+
appearingViewTransitions = null;
|
|
8155
|
+
function trackEnterViewTransitions(placement) {
|
|
8156
|
+
if (30 === placement.tag || 0 !== (placement.subtreeFlags & 33554432))
|
|
8157
|
+
shouldStartViewTransition = !0;
|
|
8158
|
+
}
|
|
8159
|
+
var viewTransitionCancelableChildren = null;
|
|
8160
|
+
function pushViewTransitionCancelableScope() {
|
|
8161
|
+
var prevChildren = viewTransitionCancelableChildren;
|
|
8162
|
+
viewTransitionCancelableChildren = null;
|
|
8163
|
+
return prevChildren;
|
|
8164
|
+
}
|
|
8165
|
+
var viewTransitionHostInstanceIdx = 0;
|
|
8166
|
+
function applyViewTransitionToHostInstances() {
|
|
8167
|
+
viewTransitionHostInstanceIdx = 0;
|
|
8168
|
+
return !1;
|
|
8169
|
+
}
|
|
8170
|
+
function commitAppearingPairViewTransitions(placement) {
|
|
8171
|
+
if (0 !== (placement.subtreeFlags & 18874368))
|
|
8172
|
+
for (placement = placement.child; null !== placement; ) {
|
|
8173
|
+
if (22 !== placement.tag || null === placement.memoizedState)
|
|
8174
|
+
if (
|
|
8175
|
+
(commitAppearingPairViewTransitions(placement),
|
|
8176
|
+
30 === placement.tag &&
|
|
8177
|
+
0 !== (placement.flags & 18874368) &&
|
|
8178
|
+
placement.stateNode.paired)
|
|
8179
|
+
) {
|
|
8180
|
+
var props = placement.memoizedProps;
|
|
8181
|
+
if (null == props.name || "auto" === props.name)
|
|
8182
|
+
throw Error(
|
|
8183
|
+
"Found a pair with an auto name. This is a bug in React."
|
|
8184
|
+
);
|
|
8185
|
+
"none" !== getViewTransitionClassName(props.default, props.share) &&
|
|
8186
|
+
applyViewTransitionToHostInstances();
|
|
8187
|
+
}
|
|
8188
|
+
placement = placement.sibling;
|
|
8189
|
+
}
|
|
8190
|
+
}
|
|
8191
|
+
function commitEnterViewTransitions(placement, gesture) {
|
|
8192
|
+
if (30 === placement.tag) {
|
|
8193
|
+
var state = placement.stateNode,
|
|
8194
|
+
props = placement.memoizedProps;
|
|
8195
|
+
getViewTransitionName(props, state);
|
|
8196
|
+
"none" !==
|
|
8197
|
+
getViewTransitionClassName(
|
|
8198
|
+
props.default,
|
|
8199
|
+
state.paired ? props.share : props.enter
|
|
7679
8200
|
)
|
|
7680
|
-
(
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
);
|
|
7718
|
-
|
|
7719
|
-
} catch (error) {
|
|
7720
|
-
captureCommitPhaseError(ii, ii.return, error);
|
|
8201
|
+
? applyViewTransitionToHostInstances() &&
|
|
8202
|
+
(commitAppearingPairViewTransitions(placement),
|
|
8203
|
+
state.paired ||
|
|
8204
|
+
gesture ||
|
|
8205
|
+
scheduleViewTransitionEvent(placement, props.onEnter))
|
|
8206
|
+
: commitAppearingPairViewTransitions(placement);
|
|
8207
|
+
} else if (0 !== (placement.subtreeFlags & 33554432))
|
|
8208
|
+
for (placement = placement.child; null !== placement; )
|
|
8209
|
+
commitEnterViewTransitions(placement, gesture),
|
|
8210
|
+
(placement = placement.sibling);
|
|
8211
|
+
else commitAppearingPairViewTransitions(placement);
|
|
8212
|
+
}
|
|
8213
|
+
function commitDeletedPairViewTransitions(deletion) {
|
|
8214
|
+
if (
|
|
8215
|
+
null !== appearingViewTransitions &&
|
|
8216
|
+
0 !== appearingViewTransitions.size
|
|
8217
|
+
) {
|
|
8218
|
+
var pairs = appearingViewTransitions;
|
|
8219
|
+
if (0 !== (deletion.subtreeFlags & 18874368))
|
|
8220
|
+
for (deletion = deletion.child; null !== deletion; ) {
|
|
8221
|
+
if (22 !== deletion.tag || null === deletion.memoizedState) {
|
|
8222
|
+
if (30 === deletion.tag && 0 !== (deletion.flags & 18874368)) {
|
|
8223
|
+
var props = deletion.memoizedProps,
|
|
8224
|
+
name = props.name;
|
|
8225
|
+
if (null != name && "auto" !== name) {
|
|
8226
|
+
var pair = pairs.get(name);
|
|
8227
|
+
if (void 0 !== pair) {
|
|
8228
|
+
if (
|
|
8229
|
+
"none" !==
|
|
8230
|
+
getViewTransitionClassName(props.default, props.share) &&
|
|
8231
|
+
applyViewTransitionToHostInstances()
|
|
8232
|
+
) {
|
|
8233
|
+
var oldInstance = deletion.stateNode;
|
|
8234
|
+
pair.paired = oldInstance;
|
|
8235
|
+
oldInstance.paired = pair;
|
|
8236
|
+
scheduleViewTransitionEvent(deletion, props.onShare);
|
|
8237
|
+
}
|
|
8238
|
+
pairs.delete(name);
|
|
8239
|
+
if (0 === pairs.size) break;
|
|
7721
8240
|
}
|
|
7722
8241
|
}
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
break;
|
|
7726
|
-
case 5:
|
|
7727
|
-
case 26:
|
|
7728
|
-
case 27:
|
|
7729
|
-
case 6:
|
|
7730
|
-
case 4:
|
|
7731
|
-
case 17:
|
|
7732
|
-
break;
|
|
7733
|
-
default:
|
|
7734
|
-
if (0 !== (firstChild & 1024))
|
|
7735
|
-
throw Error(
|
|
7736
|
-
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
7737
|
-
);
|
|
8242
|
+
}
|
|
8243
|
+
commitDeletedPairViewTransitions(deletion);
|
|
7738
8244
|
}
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
8245
|
+
deletion = deletion.sibling;
|
|
8246
|
+
}
|
|
8247
|
+
}
|
|
8248
|
+
}
|
|
8249
|
+
function commitExitViewTransitions(deletion) {
|
|
8250
|
+
if (30 === deletion.tag) {
|
|
8251
|
+
var props = deletion.memoizedProps,
|
|
8252
|
+
name = getViewTransitionName(props, deletion.stateNode),
|
|
8253
|
+
pair =
|
|
8254
|
+
null !== appearingViewTransitions
|
|
8255
|
+
? appearingViewTransitions.get(name)
|
|
8256
|
+
: void 0;
|
|
8257
|
+
if (
|
|
8258
|
+
"none" !==
|
|
8259
|
+
getViewTransitionClassName(
|
|
8260
|
+
props.default,
|
|
8261
|
+
void 0 !== pair ? props.share : props.exit
|
|
8262
|
+
) &&
|
|
8263
|
+
applyViewTransitionToHostInstances()
|
|
8264
|
+
)
|
|
8265
|
+
if (void 0 !== pair) {
|
|
8266
|
+
var oldInstance = deletion.stateNode;
|
|
8267
|
+
pair.paired = oldInstance;
|
|
8268
|
+
oldInstance.paired = pair;
|
|
8269
|
+
appearingViewTransitions.delete(name);
|
|
8270
|
+
scheduleViewTransitionEvent(deletion, props.onShare);
|
|
8271
|
+
} else scheduleViewTransitionEvent(deletion, props.onExit);
|
|
8272
|
+
null !== appearingViewTransitions &&
|
|
8273
|
+
commitDeletedPairViewTransitions(deletion);
|
|
8274
|
+
} else if (0 !== (deletion.subtreeFlags & 33554432))
|
|
8275
|
+
for (deletion = deletion.child; null !== deletion; )
|
|
8276
|
+
commitExitViewTransitions(deletion), (deletion = deletion.sibling);
|
|
8277
|
+
else
|
|
8278
|
+
null !== appearingViewTransitions &&
|
|
8279
|
+
commitDeletedPairViewTransitions(deletion);
|
|
8280
|
+
}
|
|
8281
|
+
function commitNestedViewTransitions(changedParent) {
|
|
8282
|
+
for (changedParent = changedParent.child; null !== changedParent; ) {
|
|
8283
|
+
if (30 === changedParent.tag) {
|
|
8284
|
+
var props = changedParent.memoizedProps,
|
|
8285
|
+
name = getViewTransitionName(props, changedParent.stateNode);
|
|
8286
|
+
props = getViewTransitionClassName(props.default, props.update);
|
|
8287
|
+
changedParent.flags &= -5;
|
|
8288
|
+
"none" !== props &&
|
|
8289
|
+
applyViewTransitionToHostInstances(
|
|
8290
|
+
changedParent,
|
|
8291
|
+
name,
|
|
8292
|
+
props,
|
|
8293
|
+
(changedParent.memoizedState = [])
|
|
8294
|
+
);
|
|
8295
|
+
} else
|
|
8296
|
+
0 !== (changedParent.subtreeFlags & 33554432) &&
|
|
8297
|
+
commitNestedViewTransitions(changedParent);
|
|
8298
|
+
changedParent = changedParent.sibling;
|
|
8299
|
+
}
|
|
8300
|
+
}
|
|
8301
|
+
function restorePairedViewTransitions(parent) {
|
|
8302
|
+
if (0 !== (parent.subtreeFlags & 18874368))
|
|
8303
|
+
for (parent = parent.child; null !== parent; ) {
|
|
8304
|
+
if (22 !== parent.tag || null === parent.memoizedState) {
|
|
8305
|
+
if (30 === parent.tag && 0 !== (parent.flags & 18874368)) {
|
|
8306
|
+
var instance = parent.stateNode;
|
|
8307
|
+
null !== instance.paired && (instance.paired = null);
|
|
7744
8308
|
}
|
|
7745
|
-
|
|
8309
|
+
restorePairedViewTransitions(parent);
|
|
7746
8310
|
}
|
|
8311
|
+
parent = parent.sibling;
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
function restoreEnterOrExitViewTransitions(fiber) {
|
|
8315
|
+
if (30 === fiber.tag)
|
|
8316
|
+
(fiber.stateNode.paired = null), restorePairedViewTransitions(fiber);
|
|
8317
|
+
else if (0 !== (fiber.subtreeFlags & 33554432))
|
|
8318
|
+
for (fiber = fiber.child; null !== fiber; )
|
|
8319
|
+
restoreEnterOrExitViewTransitions(fiber), (fiber = fiber.sibling);
|
|
8320
|
+
else restorePairedViewTransitions(fiber);
|
|
8321
|
+
}
|
|
8322
|
+
function measureNestedViewTransitions(changedParent, gesture) {
|
|
8323
|
+
for (changedParent = changedParent.child; null !== changedParent; ) {
|
|
8324
|
+
if (30 === changedParent.tag) {
|
|
8325
|
+
var props = changedParent.memoizedProps,
|
|
8326
|
+
state = changedParent.stateNode;
|
|
8327
|
+
getViewTransitionName(props, state);
|
|
8328
|
+
getViewTransitionClassName(props.default, props.update);
|
|
8329
|
+
gesture
|
|
8330
|
+
? ((props = state.clones),
|
|
8331
|
+
null !== props && props.map(measureClonedInstance))
|
|
8332
|
+
: (changedParent.memoizedState = null);
|
|
8333
|
+
viewTransitionHostInstanceIdx = 0;
|
|
8334
|
+
} else
|
|
8335
|
+
0 !== (changedParent.subtreeFlags & 33554432) &&
|
|
8336
|
+
measureNestedViewTransitions(changedParent, gesture);
|
|
8337
|
+
changedParent = changedParent.sibling;
|
|
8338
|
+
}
|
|
8339
|
+
}
|
|
8340
|
+
var offscreenSubtreeIsHidden = !1,
|
|
8341
|
+
offscreenSubtreeWasHidden = !1,
|
|
8342
|
+
PossiblyWeakSet = "function" === typeof WeakSet ? WeakSet : Set,
|
|
8343
|
+
nextEffect = null,
|
|
8344
|
+
viewTransitionContextChanged = !1;
|
|
8345
|
+
function commitBeforeMutationEffects(root, firstChild, committedLanes) {
|
|
8346
|
+
root = (committedLanes & 335544064) === committedLanes;
|
|
8347
|
+
nextEffect = firstChild;
|
|
8348
|
+
for (firstChild = root ? 9270 : 1024; null !== nextEffect; ) {
|
|
8349
|
+
committedLanes = nextEffect;
|
|
8350
|
+
if (root) {
|
|
8351
|
+
var deletions = committedLanes.deletions;
|
|
8352
|
+
if (null !== deletions)
|
|
8353
|
+
for (var i = 0; i < deletions.length; i++)
|
|
8354
|
+
root && commitExitViewTransitions(deletions[i]);
|
|
8355
|
+
}
|
|
8356
|
+
if (null === committedLanes.alternate && 0 !== (committedLanes.flags & 2))
|
|
8357
|
+
root && trackEnterViewTransitions(committedLanes),
|
|
8358
|
+
commitBeforeMutationEffects_complete(root);
|
|
8359
|
+
else {
|
|
8360
|
+
if (22 === committedLanes.tag && 0 !== (committedLanes.mode & 1))
|
|
8361
|
+
if (
|
|
8362
|
+
((deletions = committedLanes.alternate),
|
|
8363
|
+
null !== committedLanes.memoizedState)
|
|
8364
|
+
) {
|
|
8365
|
+
null !== deletions &&
|
|
8366
|
+
null === deletions.memoizedState &&
|
|
8367
|
+
root &&
|
|
8368
|
+
commitExitViewTransitions(deletions);
|
|
8369
|
+
commitBeforeMutationEffects_complete(root);
|
|
8370
|
+
continue;
|
|
8371
|
+
} else if (null !== deletions && null !== deletions.memoizedState) {
|
|
8372
|
+
root && trackEnterViewTransitions(committedLanes);
|
|
8373
|
+
commitBeforeMutationEffects_complete(root);
|
|
8374
|
+
continue;
|
|
8375
|
+
}
|
|
8376
|
+
deletions = committedLanes.child;
|
|
8377
|
+
0 !== (committedLanes.subtreeFlags & firstChild) && null !== deletions
|
|
8378
|
+
? ((deletions.return = committedLanes), (nextEffect = deletions))
|
|
8379
|
+
: (root && commitNestedViewTransitions(committedLanes),
|
|
8380
|
+
commitBeforeMutationEffects_complete(root));
|
|
8381
|
+
}
|
|
8382
|
+
}
|
|
8383
|
+
appearingViewTransitions = null;
|
|
8384
|
+
}
|
|
8385
|
+
function commitBeforeMutationEffects_complete(
|
|
8386
|
+
isViewTransitionEligible$jscomp$0
|
|
8387
|
+
) {
|
|
8388
|
+
for (; null !== nextEffect; ) {
|
|
8389
|
+
var fiber = nextEffect,
|
|
8390
|
+
isViewTransitionEligible = isViewTransitionEligible$jscomp$0,
|
|
8391
|
+
current = fiber.alternate,
|
|
8392
|
+
flags = fiber.flags;
|
|
8393
|
+
switch (fiber.tag) {
|
|
8394
|
+
case 0:
|
|
8395
|
+
case 11:
|
|
8396
|
+
case 15:
|
|
8397
|
+
break;
|
|
8398
|
+
case 1:
|
|
8399
|
+
if (0 !== (flags & 1024) && null !== current) {
|
|
8400
|
+
isViewTransitionEligible = void 0;
|
|
8401
|
+
flags = current.memoizedProps;
|
|
8402
|
+
current = current.memoizedState;
|
|
8403
|
+
var instance = fiber.stateNode;
|
|
8404
|
+
try {
|
|
8405
|
+
var resolvedPrevProps = resolveClassComponentProps(
|
|
8406
|
+
fiber.type,
|
|
8407
|
+
flags
|
|
8408
|
+
);
|
|
8409
|
+
isViewTransitionEligible = instance.getSnapshotBeforeUpdate(
|
|
8410
|
+
resolvedPrevProps,
|
|
8411
|
+
current
|
|
8412
|
+
);
|
|
8413
|
+
instance.__reactInternalSnapshotBeforeUpdate =
|
|
8414
|
+
isViewTransitionEligible;
|
|
8415
|
+
} catch (error) {
|
|
8416
|
+
captureCommitPhaseError(fiber, fiber.return, error);
|
|
8417
|
+
}
|
|
8418
|
+
}
|
|
8419
|
+
break;
|
|
8420
|
+
case 3:
|
|
8421
|
+
break;
|
|
8422
|
+
case 5:
|
|
8423
|
+
case 26:
|
|
8424
|
+
case 27:
|
|
8425
|
+
case 6:
|
|
8426
|
+
case 4:
|
|
8427
|
+
case 17:
|
|
8428
|
+
break;
|
|
8429
|
+
case 30:
|
|
8430
|
+
isViewTransitionEligible &&
|
|
8431
|
+
null !== current &&
|
|
8432
|
+
((isViewTransitionEligible = getViewTransitionName(
|
|
8433
|
+
current.memoizedProps,
|
|
8434
|
+
current.stateNode
|
|
8435
|
+
)),
|
|
8436
|
+
(flags = fiber.memoizedProps),
|
|
8437
|
+
(flags = getViewTransitionClassName(flags.default, flags.update)),
|
|
8438
|
+
"none" !== flags &&
|
|
8439
|
+
applyViewTransitionToHostInstances(
|
|
8440
|
+
current,
|
|
8441
|
+
isViewTransitionEligible,
|
|
8442
|
+
flags,
|
|
8443
|
+
(current.memoizedState = [])
|
|
8444
|
+
));
|
|
8445
|
+
break;
|
|
8446
|
+
default:
|
|
8447
|
+
if (0 !== (flags & 1024))
|
|
8448
|
+
throw Error(
|
|
8449
|
+
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
8450
|
+
);
|
|
8451
|
+
}
|
|
8452
|
+
current = fiber.sibling;
|
|
8453
|
+
if (null !== current) {
|
|
8454
|
+
current.return = fiber.return;
|
|
8455
|
+
nextEffect = current;
|
|
8456
|
+
break;
|
|
8457
|
+
}
|
|
8458
|
+
nextEffect = fiber.return;
|
|
8459
|
+
}
|
|
7747
8460
|
}
|
|
7748
8461
|
function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
|
7749
8462
|
var flags = finishedWork.flags;
|
|
@@ -7775,11 +8488,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
|
|
7775
8488
|
current,
|
|
7776
8489
|
finishedRoot.__reactInternalSnapshotBeforeUpdate
|
|
7777
8490
|
);
|
|
7778
|
-
} catch (error$
|
|
8491
|
+
} catch (error$115) {
|
|
7779
8492
|
captureCommitPhaseError(
|
|
7780
8493
|
finishedWork,
|
|
7781
8494
|
finishedWork.return,
|
|
7782
|
-
error$
|
|
8495
|
+
error$115
|
|
7783
8496
|
);
|
|
7784
8497
|
}
|
|
7785
8498
|
}
|
|
@@ -7845,27 +8558,33 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
|
|
|
7845
8558
|
null !== finishedWork.memoizedState || offscreenSubtreeIsHidden),
|
|
7846
8559
|
!flags)
|
|
7847
8560
|
) {
|
|
7848
|
-
|
|
8561
|
+
var newOffscreenSubtreeWasHidden =
|
|
7849
8562
|
(null !== current && null !== current.memoizedState) ||
|
|
7850
8563
|
offscreenSubtreeWasHidden;
|
|
7851
|
-
|
|
7852
|
-
|
|
8564
|
+
current = offscreenSubtreeIsHidden;
|
|
8565
|
+
prevProps = offscreenSubtreeWasHidden;
|
|
7853
8566
|
offscreenSubtreeIsHidden = flags;
|
|
7854
|
-
(offscreenSubtreeWasHidden =
|
|
7855
|
-
!
|
|
7856
|
-
?
|
|
8567
|
+
(offscreenSubtreeWasHidden = newOffscreenSubtreeWasHidden) &&
|
|
8568
|
+
!prevProps
|
|
8569
|
+
? ((flags = 0),
|
|
8570
|
+
0 !== (finishedWork.subtreeFlags & 8772) && (flags |= 1),
|
|
8571
|
+
recursivelyTraverseReappearLayoutEffects(
|
|
7857
8572
|
finishedRoot,
|
|
7858
8573
|
finishedWork,
|
|
7859
|
-
|
|
7860
|
-
)
|
|
8574
|
+
flags
|
|
8575
|
+
))
|
|
7861
8576
|
: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
|
|
7862
|
-
offscreenSubtreeIsHidden =
|
|
7863
|
-
offscreenSubtreeWasHidden =
|
|
8577
|
+
offscreenSubtreeIsHidden = current;
|
|
8578
|
+
offscreenSubtreeWasHidden = prevProps;
|
|
7864
8579
|
}
|
|
7865
8580
|
} else recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
|
|
7866
8581
|
break;
|
|
7867
8582
|
case 30:
|
|
8583
|
+
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
|
|
8584
|
+
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
|
|
7868
8585
|
break;
|
|
8586
|
+
case 7:
|
|
8587
|
+
flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);
|
|
7869
8588
|
default:
|
|
7870
8589
|
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
|
|
7871
8590
|
}
|
|
@@ -7909,8 +8628,11 @@ function commitDeletionEffectsOnFiber(
|
|
|
7909
8628
|
case 27:
|
|
7910
8629
|
case 5:
|
|
7911
8630
|
offscreenSubtreeWasHidden ||
|
|
7912
|
-
safelyDetachRef(deletedFiber, nearestMountedAncestor)
|
|
8631
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor),
|
|
8632
|
+
commitFragmentInstanceDeletionEffects(deletedFiber);
|
|
7913
8633
|
case 6:
|
|
8634
|
+
6 === deletedFiber.tag &&
|
|
8635
|
+
commitFragmentInstanceDeletionEffects(deletedFiber);
|
|
7914
8636
|
recursivelyTraverseDeletionEffects(
|
|
7915
8637
|
finishedRoot,
|
|
7916
8638
|
nearestMountedAncestor,
|
|
@@ -7935,8 +8657,7 @@ function commitDeletionEffectsOnFiber(
|
|
|
7935
8657
|
case 11:
|
|
7936
8658
|
case 14:
|
|
7937
8659
|
case 15:
|
|
7938
|
-
|
|
7939
|
-
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
|
|
8660
|
+
commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);
|
|
7940
8661
|
offscreenSubtreeWasHidden ||
|
|
7941
8662
|
commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);
|
|
7942
8663
|
recursivelyTraverseDeletionEffects(
|
|
@@ -7986,6 +8707,23 @@ function commitDeletionEffectsOnFiber(
|
|
|
7986
8707
|
deletedFiber
|
|
7987
8708
|
);
|
|
7988
8709
|
break;
|
|
8710
|
+
case 30:
|
|
8711
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
8712
|
+
recursivelyTraverseDeletionEffects(
|
|
8713
|
+
finishedRoot,
|
|
8714
|
+
nearestMountedAncestor,
|
|
8715
|
+
deletedFiber
|
|
8716
|
+
);
|
|
8717
|
+
break;
|
|
8718
|
+
case 7:
|
|
8719
|
+
offscreenSubtreeWasHidden ||
|
|
8720
|
+
safelyDetachRef(deletedFiber, nearestMountedAncestor);
|
|
8721
|
+
recursivelyTraverseDeletionEffects(
|
|
8722
|
+
finishedRoot,
|
|
8723
|
+
nearestMountedAncestor,
|
|
8724
|
+
deletedFiber
|
|
8725
|
+
);
|
|
8726
|
+
break;
|
|
7989
8727
|
default:
|
|
7990
8728
|
recursivelyTraverseDeletionEffects(
|
|
7991
8729
|
finishedRoot,
|
|
@@ -8029,7 +8767,7 @@ function attachSuspenseRetryListeners(finishedWork, wakeables) {
|
|
|
8029
8767
|
}
|
|
8030
8768
|
});
|
|
8031
8769
|
}
|
|
8032
|
-
function recursivelyTraverseMutationEffects(root, parentFiber) {
|
|
8770
|
+
function recursivelyTraverseMutationEffects(root, parentFiber, lanes) {
|
|
8033
8771
|
var deletions = parentFiber.deletions;
|
|
8034
8772
|
if (null !== deletions)
|
|
8035
8773
|
for (var i = 0; i < deletions.length; i++) {
|
|
@@ -8041,10 +8779,10 @@ function recursivelyTraverseMutationEffects(root, parentFiber) {
|
|
|
8041
8779
|
}
|
|
8042
8780
|
if (parentFiber.subtreeFlags & 13886)
|
|
8043
8781
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
8044
|
-
commitMutationEffectsOnFiber(parentFiber, root),
|
|
8782
|
+
commitMutationEffectsOnFiber(parentFiber, root, lanes),
|
|
8045
8783
|
(parentFiber = parentFiber.sibling);
|
|
8046
8784
|
}
|
|
8047
|
-
function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
8785
|
+
function commitMutationEffectsOnFiber(finishedWork, root, lanes) {
|
|
8048
8786
|
var current = finishedWork.alternate,
|
|
8049
8787
|
flags = finishedWork.flags;
|
|
8050
8788
|
switch (finishedWork.tag) {
|
|
@@ -8052,7 +8790,17 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8052
8790
|
case 11:
|
|
8053
8791
|
case 14:
|
|
8054
8792
|
case 15:
|
|
8055
|
-
|
|
8793
|
+
if (
|
|
8794
|
+
flags & 4 &&
|
|
8795
|
+
((current = finishedWork.updateQueue),
|
|
8796
|
+
(current = null !== current ? current.events : null),
|
|
8797
|
+
null !== current)
|
|
8798
|
+
)
|
|
8799
|
+
for (var ii = 0; ii < current.length; ii++) {
|
|
8800
|
+
var _eventPayloads$ii2 = current[ii];
|
|
8801
|
+
_eventPayloads$ii2.ref.impl = _eventPayloads$ii2.nextImpl;
|
|
8802
|
+
}
|
|
8803
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8056
8804
|
commitReconciliationEffects(finishedWork);
|
|
8057
8805
|
flags & 4 &&
|
|
8058
8806
|
(commitHookEffectListUnmount(3, finishedWork, finishedWork.return),
|
|
@@ -8060,7 +8808,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8060
8808
|
commitHookEffectListUnmount(5, finishedWork, finishedWork.return));
|
|
8061
8809
|
break;
|
|
8062
8810
|
case 1:
|
|
8063
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8811
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8064
8812
|
commitReconciliationEffects(finishedWork);
|
|
8065
8813
|
flags & 512 &&
|
|
8066
8814
|
(offscreenSubtreeWasHidden ||
|
|
@@ -8079,7 +8827,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8079
8827
|
case 26:
|
|
8080
8828
|
case 27:
|
|
8081
8829
|
case 5:
|
|
8082
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8830
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8083
8831
|
commitReconciliationEffects(finishedWork);
|
|
8084
8832
|
flags & 512 &&
|
|
8085
8833
|
(offscreenSubtreeWasHidden ||
|
|
@@ -8089,25 +8837,30 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8089
8837
|
(finishedWork.alternate.stateNode = finishedWork.stateNode);
|
|
8090
8838
|
break;
|
|
8091
8839
|
case 6:
|
|
8092
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8840
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8093
8841
|
commitReconciliationEffects(finishedWork);
|
|
8094
8842
|
break;
|
|
8095
8843
|
case 3:
|
|
8096
|
-
|
|
8844
|
+
viewTransitionMutationContext = !1;
|
|
8845
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8097
8846
|
commitReconciliationEffects(finishedWork);
|
|
8098
8847
|
if (flags & 4) {
|
|
8099
8848
|
flags = root.containerInfo;
|
|
8100
8849
|
root = root.pendingChildren;
|
|
8101
8850
|
try {
|
|
8102
|
-
completeRoot(flags.containerTag, root)
|
|
8851
|
+
completeRoot(flags.containerTag, root),
|
|
8852
|
+
(viewTransitionMutationContext = !0);
|
|
8103
8853
|
} catch (error) {
|
|
8104
8854
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
8105
8855
|
}
|
|
8106
8856
|
}
|
|
8857
|
+
viewTransitionMutationContext = !1;
|
|
8107
8858
|
break;
|
|
8108
8859
|
case 4:
|
|
8109
|
-
|
|
8860
|
+
current = pushMutationContext();
|
|
8861
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8110
8862
|
commitReconciliationEffects(finishedWork);
|
|
8863
|
+
viewTransitionMutationContext = current;
|
|
8111
8864
|
flags & 4 &&
|
|
8112
8865
|
commitHostPortalContainerChildren(
|
|
8113
8866
|
finishedWork.stateNode,
|
|
@@ -8116,11 +8869,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8116
8869
|
);
|
|
8117
8870
|
break;
|
|
8118
8871
|
case 12:
|
|
8119
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8872
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8120
8873
|
commitReconciliationEffects(finishedWork);
|
|
8121
8874
|
break;
|
|
8122
8875
|
case 31:
|
|
8123
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8876
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8124
8877
|
commitReconciliationEffects(finishedWork);
|
|
8125
8878
|
flags & 4 &&
|
|
8126
8879
|
((flags = finishedWork.updateQueue),
|
|
@@ -8129,7 +8882,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8129
8882
|
attachSuspenseRetryListeners(finishedWork, flags)));
|
|
8130
8883
|
break;
|
|
8131
8884
|
case 13:
|
|
8132
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8885
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8133
8886
|
commitReconciliationEffects(finishedWork);
|
|
8134
8887
|
finishedWork.child.flags & 8192 &&
|
|
8135
8888
|
((root = null !== current && null !== current.memoizedState),
|
|
@@ -8143,30 +8896,36 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8143
8896
|
attachSuspenseRetryListeners(finishedWork, flags)));
|
|
8144
8897
|
break;
|
|
8145
8898
|
case 22:
|
|
8146
|
-
|
|
8147
|
-
|
|
8899
|
+
ii = null !== finishedWork.memoizedState;
|
|
8900
|
+
_eventPayloads$ii2 = null !== current && null !== current.memoizedState;
|
|
8148
8901
|
if (finishedWork.mode & 1) {
|
|
8149
8902
|
var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden,
|
|
8150
8903
|
prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
|
|
8151
|
-
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden ||
|
|
8152
|
-
offscreenSubtreeWasHidden =
|
|
8153
|
-
|
|
8904
|
+
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || ii;
|
|
8905
|
+
offscreenSubtreeWasHidden =
|
|
8906
|
+
prevOffscreenSubtreeWasHidden || _eventPayloads$ii2;
|
|
8907
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8154
8908
|
offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
|
|
8155
8909
|
offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
|
|
8156
|
-
} else recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8910
|
+
} else recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8157
8911
|
commitReconciliationEffects(finishedWork);
|
|
8158
8912
|
flags & 8192 &&
|
|
8159
8913
|
((root = finishedWork.stateNode),
|
|
8160
|
-
(root._visibility =
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8914
|
+
(root._visibility = ii ? root._visibility & -2 : root._visibility | 1),
|
|
8915
|
+
!ii ||
|
|
8916
|
+
null === current ||
|
|
8917
|
+
_eventPayloads$ii2 ||
|
|
8918
|
+
offscreenSubtreeIsHidden ||
|
|
8919
|
+
offscreenSubtreeWasHidden ||
|
|
8920
|
+
0 === (finishedWork.mode & 1) ||
|
|
8921
|
+
((root = _eventPayloads$ii2 || offscreenSubtreeWasHidden),
|
|
8922
|
+
(lanes = offscreenSubtreeIsHidden),
|
|
8923
|
+
(current = offscreenSubtreeWasHidden),
|
|
8924
|
+
(offscreenSubtreeIsHidden = ii || offscreenSubtreeIsHidden),
|
|
8925
|
+
(offscreenSubtreeWasHidden = root),
|
|
8926
|
+
recursivelyTraverseDisappearLayoutEffects(finishedWork),
|
|
8927
|
+
(offscreenSubtreeIsHidden = lanes),
|
|
8928
|
+
(offscreenSubtreeWasHidden = current)));
|
|
8170
8929
|
flags & 4 &&
|
|
8171
8930
|
((flags = finishedWork.updateQueue),
|
|
8172
8931
|
null !== flags &&
|
|
@@ -8176,7 +8935,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8176
8935
|
attachSuspenseRetryListeners(finishedWork, root))));
|
|
8177
8936
|
break;
|
|
8178
8937
|
case 19:
|
|
8179
|
-
recursivelyTraverseMutationEffects(root, finishedWork);
|
|
8938
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8180
8939
|
commitReconciliationEffects(finishedWork);
|
|
8181
8940
|
flags & 4 &&
|
|
8182
8941
|
((flags = finishedWork.updateQueue),
|
|
@@ -8185,19 +8944,135 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
|
|
|
8185
8944
|
attachSuspenseRetryListeners(finishedWork, flags)));
|
|
8186
8945
|
break;
|
|
8187
8946
|
case 30:
|
|
8947
|
+
flags & 512 &&
|
|
8948
|
+
(offscreenSubtreeWasHidden ||
|
|
8949
|
+
null === current ||
|
|
8950
|
+
safelyDetachRef(current, current.return));
|
|
8951
|
+
flags = pushMutationContext();
|
|
8952
|
+
ii = (lanes & 335544064) === lanes;
|
|
8953
|
+
_eventPayloads$ii2 = finishedWork.memoizedProps;
|
|
8954
|
+
ii &&
|
|
8955
|
+
"none" !==
|
|
8956
|
+
getViewTransitionClassName(
|
|
8957
|
+
_eventPayloads$ii2.default,
|
|
8958
|
+
_eventPayloads$ii2.update
|
|
8959
|
+
);
|
|
8960
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes);
|
|
8961
|
+
commitReconciliationEffects(finishedWork);
|
|
8962
|
+
ii &&
|
|
8963
|
+
null !== current &&
|
|
8964
|
+
viewTransitionMutationContext &&
|
|
8965
|
+
(finishedWork.flags |= 4);
|
|
8966
|
+
viewTransitionMutationContext = flags;
|
|
8188
8967
|
break;
|
|
8189
8968
|
case 21:
|
|
8190
8969
|
break;
|
|
8970
|
+
case 7:
|
|
8971
|
+
flags & 512 &&
|
|
8972
|
+
(offscreenSubtreeWasHidden ||
|
|
8973
|
+
null === current ||
|
|
8974
|
+
safelyDetachRef(current, current.return)),
|
|
8975
|
+
current &&
|
|
8976
|
+
null !== current.stateNode &&
|
|
8977
|
+
(current.stateNode._fragmentFiber = finishedWork);
|
|
8191
8978
|
default:
|
|
8192
|
-
recursivelyTraverseMutationEffects(root, finishedWork),
|
|
8979
|
+
recursivelyTraverseMutationEffects(root, finishedWork, lanes),
|
|
8193
8980
|
commitReconciliationEffects(finishedWork);
|
|
8194
8981
|
}
|
|
8195
8982
|
}
|
|
8196
8983
|
function commitReconciliationEffects(finishedWork) {
|
|
8197
8984
|
var flags = finishedWork.flags;
|
|
8198
|
-
flags & 2
|
|
8985
|
+
if (flags & 2) {
|
|
8986
|
+
try {
|
|
8987
|
+
for (
|
|
8988
|
+
var parentFragmentInstances = null, parent = finishedWork.return;
|
|
8989
|
+
null !== parent;
|
|
8990
|
+
|
|
8991
|
+
) {
|
|
8992
|
+
if (isFragmentInstanceParent(parent)) {
|
|
8993
|
+
var fragmentInstance = parent.stateNode;
|
|
8994
|
+
null === parentFragmentInstances
|
|
8995
|
+
? (parentFragmentInstances = [fragmentInstance])
|
|
8996
|
+
: parentFragmentInstances.push(fragmentInstance);
|
|
8997
|
+
}
|
|
8998
|
+
if (isFragmentInstanceHostBoundary(parent)) break;
|
|
8999
|
+
parent = parent.return;
|
|
9000
|
+
}
|
|
9001
|
+
commitImmutablePlacementNodeToFragmentInstances(
|
|
9002
|
+
finishedWork,
|
|
9003
|
+
parentFragmentInstances
|
|
9004
|
+
);
|
|
9005
|
+
} catch (error) {
|
|
9006
|
+
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
9007
|
+
}
|
|
9008
|
+
finishedWork.flags &= -3;
|
|
9009
|
+
}
|
|
8199
9010
|
flags & 4096 && (finishedWork.flags &= -4097);
|
|
8200
9011
|
}
|
|
9012
|
+
function recursivelyTraverseAfterMutationEffects(root, parentFiber) {
|
|
9013
|
+
if (parentFiber.subtreeFlags & 9270)
|
|
9014
|
+
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
9015
|
+
commitAfterMutationEffectsOnFiber(parentFiber, root),
|
|
9016
|
+
(parentFiber = parentFiber.sibling);
|
|
9017
|
+
else measureNestedViewTransitions(parentFiber, !1);
|
|
9018
|
+
}
|
|
9019
|
+
function commitAfterMutationEffectsOnFiber(finishedWork, root) {
|
|
9020
|
+
var current = finishedWork.alternate;
|
|
9021
|
+
if (null === current) commitEnterViewTransitions(finishedWork, !1);
|
|
9022
|
+
else
|
|
9023
|
+
switch (finishedWork.tag) {
|
|
9024
|
+
case 3:
|
|
9025
|
+
viewTransitionContextChanged = !1;
|
|
9026
|
+
pushViewTransitionCancelableScope();
|
|
9027
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
9028
|
+
viewTransitionCancelableChildren = null;
|
|
9029
|
+
break;
|
|
9030
|
+
case 5:
|
|
9031
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
9032
|
+
break;
|
|
9033
|
+
case 4:
|
|
9034
|
+
current = viewTransitionContextChanged;
|
|
9035
|
+
viewTransitionContextChanged = !1;
|
|
9036
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
9037
|
+
viewTransitionContextChanged = current;
|
|
9038
|
+
break;
|
|
9039
|
+
case 22:
|
|
9040
|
+
0 !== (finishedWork.mode & 1)
|
|
9041
|
+
? null === finishedWork.memoizedState &&
|
|
9042
|
+
(null !== current.memoizedState
|
|
9043
|
+
? commitEnterViewTransitions(finishedWork, !1)
|
|
9044
|
+
: recursivelyTraverseAfterMutationEffects(root, finishedWork))
|
|
9045
|
+
: recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
9046
|
+
break;
|
|
9047
|
+
case 30:
|
|
9048
|
+
var prevContextChanged$126 = viewTransitionContextChanged,
|
|
9049
|
+
prevCancelableChildren = pushViewTransitionCancelableScope();
|
|
9050
|
+
viewTransitionContextChanged = !1;
|
|
9051
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
9052
|
+
viewTransitionContextChanged && (finishedWork.flags |= 4);
|
|
9053
|
+
root = finishedWork.memoizedProps;
|
|
9054
|
+
var state = finishedWork.stateNode;
|
|
9055
|
+
getViewTransitionName(root, state);
|
|
9056
|
+
getViewTransitionName(current.memoizedProps, state);
|
|
9057
|
+
"none" !== getViewTransitionClassName(root.default, root.update) &&
|
|
9058
|
+
((root = current.memoizedState),
|
|
9059
|
+
(current.memoizedState = null),
|
|
9060
|
+
(viewTransitionHostInstanceIdx = 0),
|
|
9061
|
+
viewTransitionHostInstanceIdx !== (null === root ? 0 : root.length) &&
|
|
9062
|
+
(finishedWork.flags |= 32));
|
|
9063
|
+
null !== prevCancelableChildren &&
|
|
9064
|
+
(prevCancelableChildren.push.apply(
|
|
9065
|
+
prevCancelableChildren,
|
|
9066
|
+
viewTransitionCancelableChildren
|
|
9067
|
+
),
|
|
9068
|
+
(viewTransitionCancelableChildren = prevCancelableChildren));
|
|
9069
|
+
viewTransitionContextChanged =
|
|
9070
|
+
0 !== (finishedWork.flags & 32) ? !0 : prevContextChanged$126;
|
|
9071
|
+
break;
|
|
9072
|
+
default:
|
|
9073
|
+
recursivelyTraverseAfterMutationEffects(root, finishedWork);
|
|
9074
|
+
}
|
|
9075
|
+
}
|
|
8201
9076
|
function recursivelyTraverseLayoutEffects(root, parentFiber) {
|
|
8202
9077
|
if (parentFiber.subtreeFlags & 8772)
|
|
8203
9078
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
@@ -8226,9 +9101,17 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
|
|
|
8226
9101
|
);
|
|
8227
9102
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
8228
9103
|
break;
|
|
8229
|
-
case 27:
|
|
9104
|
+
case 27:
|
|
9105
|
+
case 5:
|
|
9106
|
+
safelyDetachRef(finishedWork, finishedWork.return);
|
|
9107
|
+
(5 !== finishedWork.tag && 27 !== finishedWork.tag) ||
|
|
9108
|
+
commitFragmentInstanceDeletionEffects(finishedWork);
|
|
9109
|
+
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
9110
|
+
break;
|
|
9111
|
+
case 6:
|
|
9112
|
+
commitFragmentInstanceDeletionEffects(finishedWork);
|
|
9113
|
+
break;
|
|
8230
9114
|
case 26:
|
|
8231
|
-
case 5:
|
|
8232
9115
|
safelyDetachRef(finishedWork, finishedWork.return);
|
|
8233
9116
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
8234
9117
|
break;
|
|
@@ -8237,8 +9120,11 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
|
|
|
8237
9120
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
8238
9121
|
break;
|
|
8239
9122
|
case 30:
|
|
9123
|
+
safelyDetachRef(finishedWork, finishedWork.return);
|
|
8240
9124
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
8241
9125
|
break;
|
|
9126
|
+
case 7:
|
|
9127
|
+
safelyDetachRef(finishedWork, finishedWork.return);
|
|
8242
9128
|
default:
|
|
8243
9129
|
recursivelyTraverseDisappearLayoutEffects(finishedWork);
|
|
8244
9130
|
}
|
|
@@ -8248,15 +9134,18 @@ function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
|
|
|
8248
9134
|
function recursivelyTraverseReappearLayoutEffects(
|
|
8249
9135
|
finishedRoot$jscomp$0,
|
|
8250
9136
|
parentFiber,
|
|
8251
|
-
|
|
9137
|
+
layoutEffectTraversalFlags
|
|
8252
9138
|
) {
|
|
8253
|
-
|
|
8254
|
-
|
|
9139
|
+
layoutEffectTraversalFlags =
|
|
9140
|
+
0 !== (parentFiber.subtreeFlags & 8772)
|
|
9141
|
+
? layoutEffectTraversalFlags
|
|
9142
|
+
: layoutEffectTraversalFlags & -2;
|
|
8255
9143
|
for (parentFiber = parentFiber.child; null !== parentFiber; ) {
|
|
8256
9144
|
var current = parentFiber.alternate,
|
|
8257
9145
|
finishedRoot = finishedRoot$jscomp$0,
|
|
8258
9146
|
finishedWork = parentFiber,
|
|
8259
|
-
flags = finishedWork.flags
|
|
9147
|
+
flags = finishedWork.flags,
|
|
9148
|
+
includeWorkInProgressEffects = 0 !== (layoutEffectTraversalFlags & 1);
|
|
8260
9149
|
switch (finishedWork.tag) {
|
|
8261
9150
|
case 0:
|
|
8262
9151
|
case 11:
|
|
@@ -8264,7 +9153,7 @@ function recursivelyTraverseReappearLayoutEffects(
|
|
|
8264
9153
|
recursivelyTraverseReappearLayoutEffects(
|
|
8265
9154
|
finishedRoot,
|
|
8266
9155
|
finishedWork,
|
|
8267
|
-
|
|
9156
|
+
layoutEffectTraversalFlags
|
|
8268
9157
|
);
|
|
8269
9158
|
commitHookEffectListMount(4, finishedWork);
|
|
8270
9159
|
break;
|
|
@@ -8272,7 +9161,7 @@ function recursivelyTraverseReappearLayoutEffects(
|
|
|
8272
9161
|
recursivelyTraverseReappearLayoutEffects(
|
|
8273
9162
|
finishedRoot,
|
|
8274
9163
|
finishedWork,
|
|
8275
|
-
|
|
9164
|
+
layoutEffectTraversalFlags
|
|
8276
9165
|
);
|
|
8277
9166
|
current = finishedWork;
|
|
8278
9167
|
finishedRoot = current.stateNode;
|
|
@@ -8305,12 +9194,28 @@ function recursivelyTraverseReappearLayoutEffects(
|
|
|
8305
9194
|
safelyAttachRef(finishedWork, finishedWork.return);
|
|
8306
9195
|
break;
|
|
8307
9196
|
case 27:
|
|
8308
|
-
case 26:
|
|
8309
9197
|
case 5:
|
|
9198
|
+
(5 !== finishedWork.tag && 27 !== finishedWork.tag) ||
|
|
9199
|
+
commitFragmentInstanceInsertionEffects(finishedWork);
|
|
8310
9200
|
recursivelyTraverseReappearLayoutEffects(
|
|
8311
9201
|
finishedRoot,
|
|
8312
9202
|
finishedWork,
|
|
8313
|
-
|
|
9203
|
+
layoutEffectTraversalFlags
|
|
9204
|
+
);
|
|
9205
|
+
includeWorkInProgressEffects &&
|
|
9206
|
+
null === current &&
|
|
9207
|
+
flags & 4 &&
|
|
9208
|
+
commitHostMount(finishedWork);
|
|
9209
|
+
safelyAttachRef(finishedWork, finishedWork.return);
|
|
9210
|
+
break;
|
|
9211
|
+
case 6:
|
|
9212
|
+
commitFragmentInstanceInsertionEffects(finishedWork);
|
|
9213
|
+
break;
|
|
9214
|
+
case 26:
|
|
9215
|
+
recursivelyTraverseReappearLayoutEffects(
|
|
9216
|
+
finishedRoot,
|
|
9217
|
+
finishedWork,
|
|
9218
|
+
layoutEffectTraversalFlags
|
|
8314
9219
|
);
|
|
8315
9220
|
includeWorkInProgressEffects &&
|
|
8316
9221
|
null === current &&
|
|
@@ -8322,21 +9227,21 @@ function recursivelyTraverseReappearLayoutEffects(
|
|
|
8322
9227
|
recursivelyTraverseReappearLayoutEffects(
|
|
8323
9228
|
finishedRoot,
|
|
8324
9229
|
finishedWork,
|
|
8325
|
-
|
|
9230
|
+
layoutEffectTraversalFlags
|
|
8326
9231
|
);
|
|
8327
9232
|
break;
|
|
8328
9233
|
case 31:
|
|
8329
9234
|
recursivelyTraverseReappearLayoutEffects(
|
|
8330
9235
|
finishedRoot,
|
|
8331
9236
|
finishedWork,
|
|
8332
|
-
|
|
9237
|
+
layoutEffectTraversalFlags
|
|
8333
9238
|
);
|
|
8334
9239
|
break;
|
|
8335
9240
|
case 13:
|
|
8336
9241
|
recursivelyTraverseReappearLayoutEffects(
|
|
8337
9242
|
finishedRoot,
|
|
8338
9243
|
finishedWork,
|
|
8339
|
-
|
|
9244
|
+
layoutEffectTraversalFlags
|
|
8340
9245
|
);
|
|
8341
9246
|
break;
|
|
8342
9247
|
case 22:
|
|
@@ -8344,17 +9249,25 @@ function recursivelyTraverseReappearLayoutEffects(
|
|
|
8344
9249
|
recursivelyTraverseReappearLayoutEffects(
|
|
8345
9250
|
finishedRoot,
|
|
8346
9251
|
finishedWork,
|
|
8347
|
-
|
|
9252
|
+
layoutEffectTraversalFlags
|
|
8348
9253
|
);
|
|
8349
9254
|
safelyAttachRef(finishedWork, finishedWork.return);
|
|
8350
9255
|
break;
|
|
8351
9256
|
case 30:
|
|
9257
|
+
recursivelyTraverseReappearLayoutEffects(
|
|
9258
|
+
finishedRoot,
|
|
9259
|
+
finishedWork,
|
|
9260
|
+
layoutEffectTraversalFlags
|
|
9261
|
+
);
|
|
9262
|
+
safelyAttachRef(finishedWork, finishedWork.return);
|
|
8352
9263
|
break;
|
|
9264
|
+
case 7:
|
|
9265
|
+
safelyAttachRef(finishedWork, finishedWork.return);
|
|
8353
9266
|
default:
|
|
8354
9267
|
recursivelyTraverseReappearLayoutEffects(
|
|
8355
9268
|
finishedRoot,
|
|
8356
9269
|
finishedWork,
|
|
8357
|
-
|
|
9270
|
+
layoutEffectTraversalFlags
|
|
8358
9271
|
);
|
|
8359
9272
|
}
|
|
8360
9273
|
parentFiber = parentFiber.sibling;
|
|
@@ -8388,7 +9301,10 @@ function recursivelyTraversePassiveMountEffects(
|
|
|
8388
9301
|
committedLanes,
|
|
8389
9302
|
committedTransitions
|
|
8390
9303
|
) {
|
|
8391
|
-
if (
|
|
9304
|
+
if (
|
|
9305
|
+
parentFiber.subtreeFlags &
|
|
9306
|
+
((committedLanes & 335544064) === committedLanes ? 10262 : 10256)
|
|
9307
|
+
)
|
|
8392
9308
|
for (parentFiber = parentFiber.child; null !== parentFiber; )
|
|
8393
9309
|
commitPassiveMountOnFiber(
|
|
8394
9310
|
root,
|
|
@@ -8404,6 +9320,13 @@ function commitPassiveMountOnFiber(
|
|
|
8404
9320
|
committedLanes,
|
|
8405
9321
|
committedTransitions
|
|
8406
9322
|
) {
|
|
9323
|
+
var isViewTransitionEligible =
|
|
9324
|
+
(committedLanes & 335544064) === committedLanes;
|
|
9325
|
+
isViewTransitionEligible &&
|
|
9326
|
+
null === finishedWork.alternate &&
|
|
9327
|
+
null !== finishedWork.return &&
|
|
9328
|
+
null !== finishedWork.return.alternate &&
|
|
9329
|
+
restoreEnterOrExitViewTransitions(finishedWork);
|
|
8407
9330
|
var flags = finishedWork.flags;
|
|
8408
9331
|
switch (finishedWork.tag) {
|
|
8409
9332
|
case 0:
|
|
@@ -8494,40 +9417,48 @@ function commitPassiveMountOnFiber(
|
|
|
8494
9417
|
_finishedWork$memoize2 = finishedWork.stateNode;
|
|
8495
9418
|
id = finishedWork.alternate;
|
|
8496
9419
|
null !== finishedWork.memoizedState
|
|
8497
|
-
?
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
)
|
|
8504
|
-
: finishedWork.mode & 1
|
|
8505
|
-
? recursivelyTraverseAtomicPassiveEffects(
|
|
9420
|
+
? (isViewTransitionEligible &&
|
|
9421
|
+
null !== id &&
|
|
9422
|
+
null === id.memoizedState &&
|
|
9423
|
+
restoreEnterOrExitViewTransitions(id),
|
|
9424
|
+
_finishedWork$memoize2._visibility & 2
|
|
9425
|
+
? recursivelyTraversePassiveMountEffects(
|
|
8506
9426
|
finishedRoot,
|
|
8507
|
-
finishedWork
|
|
9427
|
+
finishedWork,
|
|
9428
|
+
committedLanes,
|
|
9429
|
+
committedTransitions
|
|
8508
9430
|
)
|
|
8509
|
-
:
|
|
8510
|
-
|
|
9431
|
+
: finishedWork.mode & 1
|
|
9432
|
+
? recursivelyTraverseAtomicPassiveEffects(
|
|
9433
|
+
finishedRoot,
|
|
9434
|
+
finishedWork
|
|
9435
|
+
)
|
|
9436
|
+
: ((_finishedWork$memoize2._visibility |= 2),
|
|
9437
|
+
recursivelyTraversePassiveMountEffects(
|
|
9438
|
+
finishedRoot,
|
|
9439
|
+
finishedWork,
|
|
9440
|
+
committedLanes,
|
|
9441
|
+
committedTransitions
|
|
9442
|
+
)))
|
|
9443
|
+
: (isViewTransitionEligible &&
|
|
9444
|
+
null !== id &&
|
|
9445
|
+
null !== id.memoizedState &&
|
|
9446
|
+
restoreEnterOrExitViewTransitions(finishedWork),
|
|
9447
|
+
_finishedWork$memoize2._visibility & 2
|
|
9448
|
+
? recursivelyTraversePassiveMountEffects(
|
|
8511
9449
|
finishedRoot,
|
|
8512
9450
|
finishedWork,
|
|
8513
9451
|
committedLanes,
|
|
8514
9452
|
committedTransitions
|
|
8515
|
-
)
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
recursivelyTraverseReconnectPassiveEffects(
|
|
8525
|
-
finishedRoot,
|
|
8526
|
-
finishedWork,
|
|
8527
|
-
committedLanes,
|
|
8528
|
-
committedTransitions,
|
|
8529
|
-
0 !== (finishedWork.subtreeFlags & 10256) || !1
|
|
8530
|
-
));
|
|
9453
|
+
)
|
|
9454
|
+
: ((_finishedWork$memoize2._visibility |= 2),
|
|
9455
|
+
recursivelyTraverseReconnectPassiveEffects(
|
|
9456
|
+
finishedRoot,
|
|
9457
|
+
finishedWork,
|
|
9458
|
+
committedLanes,
|
|
9459
|
+
committedTransitions,
|
|
9460
|
+
0 !== (finishedWork.subtreeFlags & 10256) || !1
|
|
9461
|
+
)));
|
|
8531
9462
|
flags & 2048 && commitOffscreenPassiveMountEffects(id, finishedWork);
|
|
8532
9463
|
break;
|
|
8533
9464
|
case 24:
|
|
@@ -8540,6 +9471,14 @@ function commitPassiveMountOnFiber(
|
|
|
8540
9471
|
flags & 2048 &&
|
|
8541
9472
|
commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);
|
|
8542
9473
|
break;
|
|
9474
|
+
case 30:
|
|
9475
|
+
recursivelyTraversePassiveMountEffects(
|
|
9476
|
+
finishedRoot,
|
|
9477
|
+
finishedWork,
|
|
9478
|
+
committedLanes,
|
|
9479
|
+
committedTransitions
|
|
9480
|
+
);
|
|
9481
|
+
break;
|
|
8543
9482
|
default:
|
|
8544
9483
|
recursivelyTraversePassiveMountEffects(
|
|
8545
9484
|
finishedRoot,
|
|
@@ -8705,6 +9644,20 @@ function accumulateSuspenseyCommitOnFiber(fiber) {
|
|
|
8705
9644
|
: recursivelyAccumulateSuspenseyCommit(fiber);
|
|
8706
9645
|
}
|
|
8707
9646
|
break;
|
|
9647
|
+
case 30:
|
|
9648
|
+
if (
|
|
9649
|
+
0 !== (fiber.flags & suspenseyCommitFlag) &&
|
|
9650
|
+
((current = fiber.memoizedProps.name),
|
|
9651
|
+
null != current && "auto" !== current)
|
|
9652
|
+
) {
|
|
9653
|
+
var state = fiber.stateNode;
|
|
9654
|
+
state.paired = null;
|
|
9655
|
+
null === appearingViewTransitions &&
|
|
9656
|
+
(appearingViewTransitions = new Map());
|
|
9657
|
+
appearingViewTransitions.set(current, state);
|
|
9658
|
+
}
|
|
9659
|
+
recursivelyAccumulateSuspenseyCommit(fiber);
|
|
9660
|
+
break;
|
|
8708
9661
|
default:
|
|
8709
9662
|
recursivelyAccumulateSuspenseyCommit(fiber);
|
|
8710
9663
|
}
|
|
@@ -8896,6 +9849,9 @@ var DefaultAsyncDispatcher = {
|
|
|
8896
9849
|
pendingEffectsRemainingLanes = 0,
|
|
8897
9850
|
pendingPassiveTransitions = null,
|
|
8898
9851
|
pendingRecoverableErrors = null,
|
|
9852
|
+
pendingViewTransition = null,
|
|
9853
|
+
pendingViewTransitionEvents = null,
|
|
9854
|
+
pendingTransitionTypes = null,
|
|
8899
9855
|
nestedUpdateCount = 0,
|
|
8900
9856
|
rootWithNestedUpdates = null;
|
|
8901
9857
|
function requestUpdateLane(fiber) {
|
|
@@ -8922,6 +9878,19 @@ function requestDeferredLane() {
|
|
|
8922
9878
|
null !== lane && (lane.flags |= 32);
|
|
8923
9879
|
return workInProgressDeferredLane;
|
|
8924
9880
|
}
|
|
9881
|
+
function scheduleViewTransitionEvent(fiber, callback) {
|
|
9882
|
+
if (null != callback) {
|
|
9883
|
+
var state = fiber.stateNode,
|
|
9884
|
+
instance = state.ref;
|
|
9885
|
+
null === instance &&
|
|
9886
|
+
(instance = state.ref =
|
|
9887
|
+
createViewTransitionInstance(
|
|
9888
|
+
getViewTransitionName(fiber.memoizedProps, state)
|
|
9889
|
+
));
|
|
9890
|
+
null === pendingViewTransitionEvents && (pendingViewTransitionEvents = []);
|
|
9891
|
+
pendingViewTransitionEvents.push(callback.bind(null, instance));
|
|
9892
|
+
}
|
|
9893
|
+
}
|
|
8925
9894
|
function scheduleUpdateOnFiber(root, fiber, lane) {
|
|
8926
9895
|
if (
|
|
8927
9896
|
(root === workInProgressRoot &&
|
|
@@ -9005,7 +9974,10 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
9005
9974
|
JSCompiler_inline_result,
|
|
9006
9975
|
!1
|
|
9007
9976
|
);
|
|
9008
|
-
if (
|
|
9977
|
+
if (
|
|
9978
|
+
2 !== JSCompiler_inline_result &&
|
|
9979
|
+
6 !== JSCompiler_inline_result
|
|
9980
|
+
) {
|
|
9009
9981
|
if (workInProgressRootDidAttachPingListener) {
|
|
9010
9982
|
root.errorRecoveryDisabledLanes |= renderWasConcurrent;
|
|
9011
9983
|
workInProgressRootInterleavedUpdatedLanes |=
|
|
@@ -9042,7 +10014,8 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
9042
10014
|
case 1:
|
|
9043
10015
|
throw Error("Root did not complete. This is a bug in React.");
|
|
9044
10016
|
case 4:
|
|
9045
|
-
if ((lanes & 4194048) !== lanes)
|
|
10017
|
+
if ((lanes & 4194048) !== lanes && (lanes & 62914560) !== lanes)
|
|
10018
|
+
break;
|
|
9046
10019
|
case 6:
|
|
9047
10020
|
markRootSuspended(
|
|
9048
10021
|
shouldTimeSlice,
|
|
@@ -9075,7 +10048,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
9075
10048
|
if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
|
|
9076
10049
|
pendingEffectsLanes = lanes;
|
|
9077
10050
|
shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
|
9078
|
-
|
|
10051
|
+
completeRootWhenReady.bind(
|
|
9079
10052
|
null,
|
|
9080
10053
|
shouldTimeSlice,
|
|
9081
10054
|
forceSync,
|
|
@@ -9096,7 +10069,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
9096
10069
|
);
|
|
9097
10070
|
break a;
|
|
9098
10071
|
}
|
|
9099
|
-
|
|
10072
|
+
completeRootWhenReady(
|
|
9100
10073
|
shouldTimeSlice,
|
|
9101
10074
|
forceSync,
|
|
9102
10075
|
workInProgressRootRecoverableErrors,
|
|
@@ -9105,7 +10078,9 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
9105
10078
|
lanes,
|
|
9106
10079
|
workInProgressDeferredLane,
|
|
9107
10080
|
workInProgressRootInterleavedUpdatedLanes,
|
|
9108
|
-
workInProgressSuspendedRetryLanes
|
|
10081
|
+
workInProgressSuspendedRetryLanes,
|
|
10082
|
+
workInProgressRootDidSkipSuspendedSiblings,
|
|
10083
|
+
renderWasConcurrent
|
|
9109
10084
|
);
|
|
9110
10085
|
}
|
|
9111
10086
|
}
|
|
@@ -9113,7 +10088,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
|
9113
10088
|
} while (1);
|
|
9114
10089
|
ensureRootIsScheduled(root$jscomp$0);
|
|
9115
10090
|
}
|
|
9116
|
-
function
|
|
10091
|
+
function completeRootWhenReady(
|
|
9117
10092
|
root,
|
|
9118
10093
|
finishedWork,
|
|
9119
10094
|
recoverableErrors,
|
|
@@ -9125,25 +10100,53 @@ function commitRootWhenReady(
|
|
|
9125
10100
|
suspendedRetryLanes
|
|
9126
10101
|
) {
|
|
9127
10102
|
root.timeoutHandle = -1;
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
10103
|
+
didIncludeRenderPhaseUpdate = finishedWork.subtreeFlags;
|
|
10104
|
+
var isViewTransitionEligible = (lanes & 335544064) === lanes,
|
|
10105
|
+
suspendedState = null;
|
|
10106
|
+
if (
|
|
10107
|
+
isViewTransitionEligible ||
|
|
10108
|
+
didIncludeRenderPhaseUpdate & 8192 ||
|
|
10109
|
+
16785408 === (didIncludeRenderPhaseUpdate & 16785408)
|
|
10110
|
+
)
|
|
10111
|
+
(appearingViewTransitions = suspendedState = null),
|
|
10112
|
+
accumulateSuspenseyCommitOnFiber(finishedWork),
|
|
10113
|
+
isViewTransitionEligible &&
|
|
10114
|
+
null != fabricSuspendOnActiveViewTransition &&
|
|
10115
|
+
fabricSuspendOnActiveViewTransition(),
|
|
9131
10116
|
(lanes & 62914560) === lanes
|
|
9132
10117
|
? globalMostRecentFallbackTime - now()
|
|
9133
10118
|
: (lanes & 4194048) === lanes
|
|
9134
10119
|
? globalMostRecentTransitionTime - now()
|
|
9135
10120
|
: 0;
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
10121
|
+
didIncludeRenderPhaseUpdate = suspendedState;
|
|
10122
|
+
root.cancelPendingCommit = null;
|
|
10123
|
+
do flushPendingEffects();
|
|
10124
|
+
while (0 !== pendingEffectsStatus);
|
|
10125
|
+
if (0 !== (executionContext & 6))
|
|
10126
|
+
throw Error("Should not already be working.");
|
|
10127
|
+
if (null !== finishedWork) {
|
|
10128
|
+
if (finishedWork === root.current)
|
|
10129
|
+
throw Error(
|
|
10130
|
+
"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
|
|
10131
|
+
);
|
|
10132
|
+
root === workInProgressRoot &&
|
|
10133
|
+
((workInProgress = workInProgressRoot = null),
|
|
10134
|
+
(workInProgressRootRenderLanes = 0));
|
|
10135
|
+
pendingFinishedWork = finishedWork;
|
|
10136
|
+
pendingEffectsRoot = root;
|
|
10137
|
+
pendingEffectsLanes = lanes;
|
|
10138
|
+
pendingPassiveTransitions = transitions;
|
|
10139
|
+
pendingRecoverableErrors = recoverableErrors;
|
|
10140
|
+
commitRoot(
|
|
10141
|
+
root,
|
|
10142
|
+
finishedWork,
|
|
10143
|
+
lanes,
|
|
10144
|
+
spawnedLane,
|
|
10145
|
+
updatedLanes,
|
|
10146
|
+
suspendedRetryLanes,
|
|
10147
|
+
didIncludeRenderPhaseUpdate
|
|
10148
|
+
);
|
|
10149
|
+
}
|
|
9147
10150
|
}
|
|
9148
10151
|
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
9149
10152
|
for (var node = finishedWork; ; ) {
|
|
@@ -9185,6 +10188,7 @@ function markRootSuspended(
|
|
|
9185
10188
|
spawnedLane,
|
|
9186
10189
|
didAttemptEntireTree
|
|
9187
10190
|
) {
|
|
10191
|
+
suspendedLanes = getEntangledLanes(root, suspendedLanes);
|
|
9188
10192
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
9189
10193
|
suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
|
|
9190
10194
|
root.suspendedLanes |= suspendedLanes;
|
|
@@ -9244,20 +10248,7 @@ function prepareFreshStack(root, lanes) {
|
|
|
9244
10248
|
workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors =
|
|
9245
10249
|
null;
|
|
9246
10250
|
workInProgressRootDidIncludeRecursiveRenderUpdate = !1;
|
|
9247
|
-
|
|
9248
|
-
var allEntangledLanes = root.entangledLanes;
|
|
9249
|
-
if (0 !== allEntangledLanes)
|
|
9250
|
-
for (
|
|
9251
|
-
root = root.entanglements, allEntangledLanes &= lanes;
|
|
9252
|
-
0 < allEntangledLanes;
|
|
9253
|
-
|
|
9254
|
-
) {
|
|
9255
|
-
var index$6 = 31 - clz32(allEntangledLanes),
|
|
9256
|
-
lane = 1 << index$6;
|
|
9257
|
-
lanes |= root[index$6];
|
|
9258
|
-
allEntangledLanes &= ~lane;
|
|
9259
|
-
}
|
|
9260
|
-
entangledRenderLanes = lanes;
|
|
10251
|
+
entangledRenderLanes = getEntangledLanes(root, lanes);
|
|
9261
10252
|
finishQueueingConcurrentUpdates();
|
|
9262
10253
|
return timeoutHandle;
|
|
9263
10254
|
}
|
|
@@ -9359,8 +10350,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
|
|
|
9359
10350
|
workLoopSync();
|
|
9360
10351
|
exitStatus = workInProgressRootExitStatus;
|
|
9361
10352
|
break;
|
|
9362
|
-
} catch (thrownValue$
|
|
9363
|
-
handleThrow(root, thrownValue$
|
|
10353
|
+
} catch (thrownValue$135) {
|
|
10354
|
+
handleThrow(root, thrownValue$135);
|
|
9364
10355
|
}
|
|
9365
10356
|
while (1);
|
|
9366
10357
|
lanes && root.shellSuspendCounter++;
|
|
@@ -9475,8 +10466,8 @@ function renderRootConcurrent(root, lanes) {
|
|
|
9475
10466
|
}
|
|
9476
10467
|
workLoopConcurrentByScheduler();
|
|
9477
10468
|
break;
|
|
9478
|
-
} catch (thrownValue$
|
|
9479
|
-
handleThrow(root, thrownValue$
|
|
10469
|
+
} catch (thrownValue$137) {
|
|
10470
|
+
handleThrow(root, thrownValue$137);
|
|
9480
10471
|
}
|
|
9481
10472
|
while (1);
|
|
9482
10473
|
lastContextDependency = currentlyRenderingFiber$1 = null;
|
|
@@ -9650,78 +10641,79 @@ function commitRoot(
|
|
|
9650
10641
|
root,
|
|
9651
10642
|
finishedWork,
|
|
9652
10643
|
lanes,
|
|
9653
|
-
recoverableErrors,
|
|
9654
|
-
transitions,
|
|
9655
|
-
didIncludeRenderPhaseUpdate,
|
|
9656
10644
|
spawnedLane,
|
|
9657
10645
|
updatedLanes,
|
|
9658
|
-
suspendedRetryLanes
|
|
10646
|
+
suspendedRetryLanes,
|
|
10647
|
+
suspendedState
|
|
9659
10648
|
) {
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
recoverableErrors = ReactSharedInternals.T;
|
|
9701
|
-
ReactSharedInternals.T = null;
|
|
9702
|
-
transitions = currentUpdatePriority;
|
|
9703
|
-
currentUpdatePriority = 2;
|
|
9704
|
-
spawnedLane = executionContext;
|
|
9705
|
-
executionContext |= 4;
|
|
9706
|
-
try {
|
|
9707
|
-
commitBeforeMutationEffects(root, finishedWork, lanes);
|
|
9708
|
-
} finally {
|
|
9709
|
-
(executionContext = spawnedLane),
|
|
9710
|
-
(currentUpdatePriority = transitions),
|
|
9711
|
-
(ReactSharedInternals.T = recoverableErrors);
|
|
9712
|
-
}
|
|
10649
|
+
var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
|
|
10650
|
+
pendingEffectsRemainingLanes = remainingLanes;
|
|
10651
|
+
remainingLanes |= concurrentlyUpdatedLanes;
|
|
10652
|
+
markRootFinished(
|
|
10653
|
+
root,
|
|
10654
|
+
lanes,
|
|
10655
|
+
remainingLanes,
|
|
10656
|
+
spawnedLane,
|
|
10657
|
+
updatedLanes,
|
|
10658
|
+
suspendedRetryLanes
|
|
10659
|
+
);
|
|
10660
|
+
pendingViewTransitionEvents = null;
|
|
10661
|
+
(lanes & 335544064) === lanes
|
|
10662
|
+
? ((pendingTransitionTypes = claimQueuedTransitionTypes(root)),
|
|
10663
|
+
(spawnedLane = 10262))
|
|
10664
|
+
: ((pendingTransitionTypes = null), (spawnedLane = 10256));
|
|
10665
|
+
0 !== (finishedWork.subtreeFlags & spawnedLane) ||
|
|
10666
|
+
0 !== (finishedWork.flags & spawnedLane)
|
|
10667
|
+
? ((root.callbackNode = null),
|
|
10668
|
+
(root.callbackPriority = 0),
|
|
10669
|
+
scheduleCallback(NormalPriority$1, function () {
|
|
10670
|
+
flushPassiveEffects();
|
|
10671
|
+
return null;
|
|
10672
|
+
}))
|
|
10673
|
+
: ((root.callbackNode = null), (root.callbackPriority = 0));
|
|
10674
|
+
shouldStartViewTransition = !1;
|
|
10675
|
+
spawnedLane = 0 !== (finishedWork.flags & 13878);
|
|
10676
|
+
if (0 !== (finishedWork.subtreeFlags & 13878) || spawnedLane) {
|
|
10677
|
+
spawnedLane = ReactSharedInternals.T;
|
|
10678
|
+
ReactSharedInternals.T = null;
|
|
10679
|
+
updatedLanes = currentUpdatePriority;
|
|
10680
|
+
currentUpdatePriority = 2;
|
|
10681
|
+
suspendedRetryLanes = executionContext;
|
|
10682
|
+
executionContext |= 4;
|
|
10683
|
+
try {
|
|
10684
|
+
commitBeforeMutationEffects(root, finishedWork, lanes);
|
|
10685
|
+
} finally {
|
|
10686
|
+
(executionContext = suspendedRetryLanes),
|
|
10687
|
+
(currentUpdatePriority = updatedLanes),
|
|
10688
|
+
(ReactSharedInternals.T = spawnedLane);
|
|
9713
10689
|
}
|
|
9714
|
-
pendingEffectsStatus = 1;
|
|
9715
|
-
flushMutationEffects();
|
|
9716
|
-
flushLayoutEffects();
|
|
9717
|
-
flushSpawnedWork();
|
|
9718
10690
|
}
|
|
10691
|
+
pendingEffectsStatus = 1;
|
|
10692
|
+
shouldStartViewTransition
|
|
10693
|
+
? (pendingViewTransition = startViewTransition(
|
|
10694
|
+
suspendedState,
|
|
10695
|
+
root.containerInfo,
|
|
10696
|
+
pendingTransitionTypes,
|
|
10697
|
+
flushMutationEffects,
|
|
10698
|
+
flushLayoutEffects,
|
|
10699
|
+
flushAfterMutationEffects,
|
|
10700
|
+
flushSpawnedWork,
|
|
10701
|
+
flushPassiveEffects
|
|
10702
|
+
))
|
|
10703
|
+
: (flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork());
|
|
10704
|
+
}
|
|
10705
|
+
function flushAfterMutationEffects() {
|
|
10706
|
+
3 === pendingEffectsStatus &&
|
|
10707
|
+
((pendingEffectsStatus = 0),
|
|
10708
|
+
commitAfterMutationEffectsOnFiber(pendingFinishedWork, pendingEffectsRoot),
|
|
10709
|
+
(pendingEffectsStatus = 4));
|
|
9719
10710
|
}
|
|
9720
10711
|
function flushMutationEffects() {
|
|
9721
10712
|
if (1 === pendingEffectsStatus) {
|
|
9722
10713
|
pendingEffectsStatus = 0;
|
|
9723
10714
|
var root = pendingEffectsRoot,
|
|
9724
10715
|
finishedWork = pendingFinishedWork,
|
|
10716
|
+
lanes = pendingEffectsLanes,
|
|
9725
10717
|
rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
|
|
9726
10718
|
if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
|
|
9727
10719
|
rootMutationHasEffect = ReactSharedInternals.T;
|
|
@@ -9731,7 +10723,7 @@ function flushMutationEffects() {
|
|
|
9731
10723
|
var prevExecutionContext = executionContext;
|
|
9732
10724
|
executionContext |= 4;
|
|
9733
10725
|
try {
|
|
9734
|
-
commitMutationEffectsOnFiber(finishedWork, root);
|
|
10726
|
+
commitMutationEffectsOnFiber(finishedWork, root, lanes);
|
|
9735
10727
|
} finally {
|
|
9736
10728
|
(executionContext = prevExecutionContext),
|
|
9737
10729
|
(currentUpdatePriority = previousPriority),
|
|
@@ -9769,19 +10761,22 @@ function flushLayoutEffects() {
|
|
|
9769
10761
|
function flushSpawnedWork() {
|
|
9770
10762
|
if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) {
|
|
9771
10763
|
pendingEffectsStatus = 0;
|
|
10764
|
+
var committedViewTransition = pendingViewTransition;
|
|
10765
|
+
pendingViewTransition = null;
|
|
9772
10766
|
requestPaint();
|
|
9773
10767
|
var root = pendingEffectsRoot,
|
|
9774
10768
|
finishedWork = pendingFinishedWork,
|
|
9775
10769
|
lanes = pendingEffectsLanes,
|
|
9776
|
-
recoverableErrors = pendingRecoverableErrors
|
|
9777
|
-
|
|
9778
|
-
0 !== (finishedWork.
|
|
10770
|
+
recoverableErrors = pendingRecoverableErrors,
|
|
10771
|
+
passiveSubtreeMask = (lanes & 335544064) === lanes ? 10262 : 10256;
|
|
10772
|
+
0 !== (finishedWork.subtreeFlags & passiveSubtreeMask) ||
|
|
10773
|
+
0 !== (finishedWork.flags & passiveSubtreeMask)
|
|
9779
10774
|
? (pendingEffectsStatus = 5)
|
|
9780
10775
|
: ((pendingEffectsStatus = 0),
|
|
9781
10776
|
(pendingFinishedWork = pendingEffectsRoot = null),
|
|
9782
10777
|
releaseRootPooledCache(root, root.pendingLanes));
|
|
9783
|
-
|
|
9784
|
-
0 ===
|
|
10778
|
+
passiveSubtreeMask = root.pendingLanes;
|
|
10779
|
+
0 === passiveSubtreeMask && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
9785
10780
|
lanesToEventPriority(lanes);
|
|
9786
10781
|
finishedWork = finishedWork.stateNode;
|
|
9787
10782
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
|
|
@@ -9795,7 +10790,7 @@ function flushSpawnedWork() {
|
|
|
9795
10790
|
} catch (err) {}
|
|
9796
10791
|
if (null !== recoverableErrors) {
|
|
9797
10792
|
finishedWork = ReactSharedInternals.T;
|
|
9798
|
-
|
|
10793
|
+
passiveSubtreeMask = currentUpdatePriority;
|
|
9799
10794
|
currentUpdatePriority = 2;
|
|
9800
10795
|
ReactSharedInternals.T = null;
|
|
9801
10796
|
try {
|
|
@@ -9811,17 +10806,36 @@ function flushSpawnedWork() {
|
|
|
9811
10806
|
}
|
|
9812
10807
|
} finally {
|
|
9813
10808
|
(ReactSharedInternals.T = finishedWork),
|
|
9814
|
-
(currentUpdatePriority =
|
|
10809
|
+
(currentUpdatePriority = passiveSubtreeMask);
|
|
9815
10810
|
}
|
|
9816
10811
|
}
|
|
10812
|
+
recoverableErrors = pendingViewTransitionEvents;
|
|
10813
|
+
onRecoverableError = pendingTransitionTypes;
|
|
10814
|
+
pendingTransitionTypes = null;
|
|
10815
|
+
if (
|
|
10816
|
+
null !== recoverableErrors &&
|
|
10817
|
+
((pendingViewTransitionEvents = null),
|
|
10818
|
+
null === onRecoverableError && (onRecoverableError = []),
|
|
10819
|
+
null !== committedViewTransition)
|
|
10820
|
+
)
|
|
10821
|
+
for (
|
|
10822
|
+
recoverableError = 0;
|
|
10823
|
+
recoverableError < recoverableErrors.length;
|
|
10824
|
+
recoverableError++
|
|
10825
|
+
)
|
|
10826
|
+
(finishedWork = (0, recoverableErrors[recoverableError])(
|
|
10827
|
+
onRecoverableError
|
|
10828
|
+
)),
|
|
10829
|
+
void 0 !== finishedWork &&
|
|
10830
|
+
committedViewTransition.finished.finally(finishedWork);
|
|
9817
10831
|
0 !== (pendingEffectsLanes & 3) && 0 !== root.tag && flushPendingEffects();
|
|
9818
10832
|
ensureRootIsScheduled(root);
|
|
9819
|
-
|
|
9820
|
-
0 !== (lanes & 261930) && 0 !== (
|
|
10833
|
+
passiveSubtreeMask = root.pendingLanes;
|
|
10834
|
+
0 !== (lanes & 261930) && 0 !== (passiveSubtreeMask & 42)
|
|
9821
10835
|
? root === rootWithNestedUpdates
|
|
9822
10836
|
? nestedUpdateCount++
|
|
9823
10837
|
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
9824
|
-
: (nestedUpdateCount = 0);
|
|
10838
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = null));
|
|
9825
10839
|
flushSyncWorkAcrossRoots_impl(0, !1);
|
|
9826
10840
|
}
|
|
9827
10841
|
}
|
|
@@ -9832,6 +10846,7 @@ function releaseRootPooledCache(root, remainingLanes) {
|
|
|
9832
10846
|
((root.pooledCache = null), releaseCache(remainingLanes)));
|
|
9833
10847
|
}
|
|
9834
10848
|
function flushPendingEffects() {
|
|
10849
|
+
null !== pendingViewTransition && (pendingViewTransition = null);
|
|
9835
10850
|
flushMutationEffects();
|
|
9836
10851
|
flushLayoutEffects();
|
|
9837
10852
|
flushSpawnedWork();
|
|
@@ -9956,7 +10971,9 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
|
|
|
9956
10971
|
(workInProgressRootRenderLanes & 62914560) ===
|
|
9957
10972
|
workInProgressRootRenderLanes &&
|
|
9958
10973
|
300 > now() - globalMostRecentFallbackTime)
|
|
9959
|
-
? 0 === (executionContext & 2)
|
|
10974
|
+
? 0 === (executionContext & 2)
|
|
10975
|
+
? prepareFreshStack(root, 0)
|
|
10976
|
+
: (workInProgressRootPingedLanes |= pingedLanes)
|
|
9960
10977
|
: (workInProgressRootPingedLanes |= pingedLanes),
|
|
9961
10978
|
workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes &&
|
|
9962
10979
|
(workInProgressSuspendedRetryLanes = 0));
|
|
@@ -10052,7 +11069,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
10052
11069
|
(workInProgress.flags = 0),
|
|
10053
11070
|
(workInProgress.subtreeFlags = 0),
|
|
10054
11071
|
(workInProgress.deletions = null));
|
|
10055
|
-
workInProgress.flags = current.flags &
|
|
11072
|
+
workInProgress.flags = current.flags & 1206910976;
|
|
10056
11073
|
workInProgress.childLanes = current.childLanes;
|
|
10057
11074
|
workInProgress.lanes = current.lanes;
|
|
10058
11075
|
workInProgress.child = current.child;
|
|
@@ -10071,7 +11088,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
10071
11088
|
return workInProgress;
|
|
10072
11089
|
}
|
|
10073
11090
|
function resetWorkInProgress(workInProgress, renderLanes) {
|
|
10074
|
-
workInProgress.flags &=
|
|
11091
|
+
workInProgress.flags &= 1206910978;
|
|
10075
11092
|
var current = workInProgress.alternate;
|
|
10076
11093
|
null === current
|
|
10077
11094
|
? ((workInProgress.childLanes = 0),
|
|
@@ -10112,10 +11129,10 @@ function createFiberFromTypeAndProps(
|
|
|
10112
11129
|
) {
|
|
10113
11130
|
var fiberTag = 0;
|
|
10114
11131
|
owner = type;
|
|
10115
|
-
if ("function" === typeof
|
|
10116
|
-
else if ("string" === typeof
|
|
11132
|
+
if ("function" === typeof owner) shouldConstruct(owner) && (fiberTag = 1);
|
|
11133
|
+
else if ("string" === typeof owner) fiberTag = 5;
|
|
10117
11134
|
else
|
|
10118
|
-
a: switch (
|
|
11135
|
+
a: switch (owner) {
|
|
10119
11136
|
case REACT_ACTIVITY_TYPE:
|
|
10120
11137
|
return (
|
|
10121
11138
|
(type = createFiberImplClass(31, pendingProps, key, mode)),
|
|
@@ -10151,9 +11168,24 @@ function createFiberFromTypeAndProps(
|
|
|
10151
11168
|
(type.lanes = lanes),
|
|
10152
11169
|
type
|
|
10153
11170
|
);
|
|
11171
|
+
case REACT_LEGACY_HIDDEN_TYPE:
|
|
11172
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
11173
|
+
return (
|
|
11174
|
+
(type = mode | 32),
|
|
11175
|
+
(type = createFiberImplClass(30, pendingProps, key, type)),
|
|
11176
|
+
(type.elementType = REACT_VIEW_TRANSITION_TYPE),
|
|
11177
|
+
(type.lanes = lanes),
|
|
11178
|
+
(type.stateNode = {
|
|
11179
|
+
autoName: null,
|
|
11180
|
+
paired: null,
|
|
11181
|
+
clones: null,
|
|
11182
|
+
ref: null
|
|
11183
|
+
}),
|
|
11184
|
+
type
|
|
11185
|
+
);
|
|
10154
11186
|
default:
|
|
10155
|
-
if ("object" === typeof
|
|
10156
|
-
switch (
|
|
11187
|
+
if ("object" === typeof owner && null !== owner)
|
|
11188
|
+
switch (owner.$$typeof) {
|
|
10157
11189
|
case REACT_CONTEXT_TYPE:
|
|
10158
11190
|
fiberTag = 10;
|
|
10159
11191
|
break a;
|
|
@@ -10250,6 +11282,7 @@ function FiberRootNode(
|
|
|
10250
11282
|
this.pooledCache = null;
|
|
10251
11283
|
this.pooledCacheLanes = 0;
|
|
10252
11284
|
this.formState = formState;
|
|
11285
|
+
this.transitionTypes = null;
|
|
10253
11286
|
this.incompleteTransitions = new Map();
|
|
10254
11287
|
}
|
|
10255
11288
|
function createPortal$1(children, containerInfo, implementation) {
|
|
@@ -10257,7 +11290,12 @@ function createPortal$1(children, containerInfo, implementation) {
|
|
|
10257
11290
|
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
10258
11291
|
return {
|
|
10259
11292
|
$$typeof: REACT_PORTAL_TYPE,
|
|
10260
|
-
key:
|
|
11293
|
+
key:
|
|
11294
|
+
null == key
|
|
11295
|
+
? null
|
|
11296
|
+
: key === REACT_OPTIMISTIC_KEY
|
|
11297
|
+
? REACT_OPTIMISTIC_KEY
|
|
11298
|
+
: "" + key,
|
|
10261
11299
|
children: children,
|
|
10262
11300
|
containerInfo: containerInfo,
|
|
10263
11301
|
implementation: implementation
|
|
@@ -10303,30 +11341,84 @@ function shim() {
|
|
|
10303
11341
|
"The current renderer does not support Resources. This error is likely caused by a bug in React. Please file an issue."
|
|
10304
11342
|
);
|
|
10305
11343
|
}
|
|
10306
|
-
var
|
|
10307
|
-
|
|
10308
|
-
|
|
11344
|
+
var fabricCreateViewTransitionInstance =
|
|
11345
|
+
reactPrivateInterface.fabricUIManager.createViewTransitionInstance,
|
|
11346
|
+
fabricStartViewTransition =
|
|
11347
|
+
reactPrivateInterface.fabricUIManager.startViewTransition,
|
|
11348
|
+
fabricStartViewTransitionReadyFinished =
|
|
11349
|
+
reactPrivateInterface.fabricUIManager.startViewTransitionReadyFinished;
|
|
11350
|
+
function ViewTransitionPseudoElement(pseudo, name) {
|
|
11351
|
+
this._pseudo = pseudo;
|
|
11352
|
+
this._name = name;
|
|
11353
|
+
}
|
|
11354
|
+
function measureClonedInstance() {
|
|
11355
|
+
return {
|
|
11356
|
+
rect: { x: 0, y: 0, width: 0, height: 0 },
|
|
11357
|
+
abs: !1,
|
|
11358
|
+
clip: !1,
|
|
11359
|
+
view: !0
|
|
11360
|
+
};
|
|
11361
|
+
}
|
|
11362
|
+
function createViewTransitionInstance(name) {
|
|
11363
|
+
var tag = allocateTag();
|
|
11364
|
+
fabricCreateViewTransitionInstance(name, tag);
|
|
11365
|
+
return {
|
|
11366
|
+
name: name,
|
|
11367
|
+
old: new ViewTransitionPseudoElement("old", name),
|
|
11368
|
+
new: new ViewTransitionPseudoElement("new", name)
|
|
11369
|
+
};
|
|
11370
|
+
}
|
|
11371
|
+
function startViewTransition(
|
|
11372
|
+
suspendedState,
|
|
11373
|
+
rootContainer,
|
|
11374
|
+
transitionTypes,
|
|
11375
|
+
mutationCallback,
|
|
11376
|
+
layoutCallback,
|
|
11377
|
+
afterMutationCallback,
|
|
11378
|
+
spawnedWorkCallback,
|
|
11379
|
+
passiveCallback
|
|
11380
|
+
) {
|
|
11381
|
+
suspendedState = fabricStartViewTransition(function () {
|
|
11382
|
+
mutationCallback();
|
|
11383
|
+
layoutCallback();
|
|
11384
|
+
afterMutationCallback();
|
|
11385
|
+
});
|
|
11386
|
+
if (null == suspendedState)
|
|
11387
|
+
return mutationCallback(), layoutCallback(), spawnedWorkCallback(), null;
|
|
11388
|
+
suspendedState.ready.then(function () {
|
|
11389
|
+
spawnedWorkCallback();
|
|
11390
|
+
fabricStartViewTransitionReadyFinished();
|
|
11391
|
+
});
|
|
11392
|
+
suspendedState.finished.finally(function () {
|
|
11393
|
+
passiveCallback();
|
|
11394
|
+
});
|
|
11395
|
+
return suspendedState;
|
|
11396
|
+
}
|
|
11397
|
+
var createNode = reactPrivateInterface.fabricUIManager.createNode,
|
|
11398
|
+
cloneNodeWithNewChildren =
|
|
11399
|
+
reactPrivateInterface.fabricUIManager.cloneNodeWithNewChildren,
|
|
10309
11400
|
cloneNodeWithNewChildrenAndProps =
|
|
10310
|
-
|
|
10311
|
-
cloneNodeWithNewProps =
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
11401
|
+
reactPrivateInterface.fabricUIManager.cloneNodeWithNewChildrenAndProps,
|
|
11402
|
+
cloneNodeWithNewProps =
|
|
11403
|
+
reactPrivateInterface.fabricUIManager.cloneNodeWithNewProps,
|
|
11404
|
+
createChildNodeSet = reactPrivateInterface.fabricUIManager.createChildSet,
|
|
11405
|
+
appendChildNode = reactPrivateInterface.fabricUIManager.appendChild,
|
|
11406
|
+
appendChildNodeToSet = reactPrivateInterface.fabricUIManager.appendChildToSet,
|
|
11407
|
+
completeRoot = reactPrivateInterface.fabricUIManager.completeRoot,
|
|
11408
|
+
registerEventHandler =
|
|
11409
|
+
reactPrivateInterface.fabricUIManager.registerEventHandler,
|
|
11410
|
+
FabricDiscretePriority =
|
|
11411
|
+
reactPrivateInterface.fabricUIManager.unstable_DiscreteEventPriority,
|
|
10318
11412
|
FabricContinuousPriority =
|
|
10319
|
-
|
|
10320
|
-
FabricIdlePriority =
|
|
11413
|
+
reactPrivateInterface.fabricUIManager.unstable_ContinuousEventPriority,
|
|
11414
|
+
FabricIdlePriority =
|
|
11415
|
+
reactPrivateInterface.fabricUIManager.unstable_IdleEventPriority,
|
|
10321
11416
|
fabricGetCurrentEventPriority =
|
|
10322
|
-
|
|
11417
|
+
reactPrivateInterface.fabricUIManager.unstable_getCurrentEventPriority,
|
|
11418
|
+
fabricSuspendOnActiveViewTransition =
|
|
11419
|
+
reactPrivateInterface.fabricUIManager.suspendOnActiveViewTransition,
|
|
10323
11420
|
extraDevToolsConfig = {
|
|
10324
11421
|
getInspectorDataForInstance: void 0,
|
|
10325
|
-
getInspectorDataForViewTag: function () {
|
|
10326
|
-
throw Error(
|
|
10327
|
-
"getInspectorDataForViewTag() is not available in production"
|
|
10328
|
-
);
|
|
10329
|
-
},
|
|
10330
11422
|
getInspectorDataForViewAtPoint: function () {
|
|
10331
11423
|
throw Error(
|
|
10332
11424
|
"getInspectorDataForViewAtPoint() is not available in production."
|
|
@@ -10334,8 +11426,13 @@ var _nativeFabricUIManage = nativeFabricUIManager,
|
|
|
10334
11426
|
}
|
|
10335
11427
|
},
|
|
10336
11428
|
getViewConfigForType =
|
|
10337
|
-
|
|
11429
|
+
reactPrivateInterface.ReactNativeViewConfigRegistry.get,
|
|
10338
11430
|
nextReactTag = 2;
|
|
11431
|
+
function allocateTag() {
|
|
11432
|
+
var tag = nextReactTag;
|
|
11433
|
+
nextReactTag += 2;
|
|
11434
|
+
return tag;
|
|
11435
|
+
}
|
|
10339
11436
|
registerEventHandler && registerEventHandler(dispatchEvent);
|
|
10340
11437
|
var PROD_HOST_CONTEXT = { isInAParentText: !0 };
|
|
10341
11438
|
function createTextInstance(
|
|
@@ -10344,8 +11441,7 @@ function createTextInstance(
|
|
|
10344
11441
|
hostContext,
|
|
10345
11442
|
internalInstanceHandle
|
|
10346
11443
|
) {
|
|
10347
|
-
hostContext =
|
|
10348
|
-
nextReactTag += 2;
|
|
11444
|
+
hostContext = allocateTag();
|
|
10349
11445
|
return {
|
|
10350
11446
|
node: createNode(
|
|
10351
11447
|
hostContext,
|
|
@@ -10361,7 +11457,7 @@ function getPublicInstance(instance) {
|
|
|
10361
11457
|
if (null == instance.canonical.publicInstance) {
|
|
10362
11458
|
var $jscomp$nullish$tmp0;
|
|
10363
11459
|
instance.canonical.publicInstance =
|
|
10364
|
-
|
|
11460
|
+
reactPrivateInterface.createPublicInstance(
|
|
10365
11461
|
instance.canonical.nativeTag,
|
|
10366
11462
|
instance.canonical.viewConfig,
|
|
10367
11463
|
instance.canonical.internalInstanceHandle,
|
|
@@ -10373,12 +11469,15 @@ function getPublicInstance(instance) {
|
|
|
10373
11469
|
}
|
|
10374
11470
|
return instance.canonical.publicInstance;
|
|
10375
11471
|
}
|
|
10376
|
-
return null != instance.containerInfo
|
|
10377
|
-
null != instance.containerInfo.publicInstance
|
|
11472
|
+
return null != instance.containerInfo
|
|
10378
11473
|
? instance.containerInfo.publicInstance
|
|
10379
|
-
: null
|
|
10380
|
-
|
|
10381
|
-
|
|
11474
|
+
: null;
|
|
11475
|
+
}
|
|
11476
|
+
function getPublicInstanceFromHostFiber(fiber) {
|
|
11477
|
+
fiber = getPublicInstance(fiber.stateNode);
|
|
11478
|
+
if (null === fiber)
|
|
11479
|
+
throw Error("Expected to find a host node. This is a bug in React.");
|
|
11480
|
+
return fiber;
|
|
10382
11481
|
}
|
|
10383
11482
|
var currentUpdatePriority = 0;
|
|
10384
11483
|
function resolveUpdatePriority() {
|
|
@@ -10401,7 +11500,7 @@ var scheduleTimeout = setTimeout,
|
|
|
10401
11500
|
cancelTimeout = clearTimeout;
|
|
10402
11501
|
function cloneHiddenInstance(instance) {
|
|
10403
11502
|
var node = instance.node,
|
|
10404
|
-
updatePayload =
|
|
11503
|
+
updatePayload = reactPrivateInterface.createAttributePayload(
|
|
10405
11504
|
{ style: { display: "none" } },
|
|
10406
11505
|
instance.canonical.viewConfig.validAttributes
|
|
10407
11506
|
);
|
|
@@ -10410,6 +11509,159 @@ function cloneHiddenInstance(instance) {
|
|
|
10410
11509
|
canonical: instance.canonical
|
|
10411
11510
|
};
|
|
10412
11511
|
}
|
|
11512
|
+
function FragmentInstance(fragmentFiber) {
|
|
11513
|
+
this._fragmentFiber = fragmentFiber;
|
|
11514
|
+
this._observers = null;
|
|
11515
|
+
}
|
|
11516
|
+
FragmentInstance.prototype.observeUsing = function (observer) {
|
|
11517
|
+
null === this._observers && (this._observers = new Set());
|
|
11518
|
+
this._observers.add(observer);
|
|
11519
|
+
traverseVisibleInstancesAndTextInstances(
|
|
11520
|
+
this._fragmentFiber.child,
|
|
11521
|
+
!1,
|
|
11522
|
+
observeChild,
|
|
11523
|
+
observer,
|
|
11524
|
+
void 0,
|
|
11525
|
+
void 0
|
|
11526
|
+
);
|
|
11527
|
+
};
|
|
11528
|
+
function observeChild(child, observer) {
|
|
11529
|
+
child = getPublicInstanceFromHostFiber(child);
|
|
11530
|
+
observer.observe(child);
|
|
11531
|
+
return !1;
|
|
11532
|
+
}
|
|
11533
|
+
FragmentInstance.prototype.unobserveUsing = function (observer) {
|
|
11534
|
+
var observers = this._observers;
|
|
11535
|
+
null !== observers &&
|
|
11536
|
+
observers.has(observer) &&
|
|
11537
|
+
(observers.delete(observer),
|
|
11538
|
+
traverseVisibleInstancesAndTextInstances(
|
|
11539
|
+
this._fragmentFiber.child,
|
|
11540
|
+
!1,
|
|
11541
|
+
unobserveChild,
|
|
11542
|
+
observer,
|
|
11543
|
+
void 0,
|
|
11544
|
+
void 0
|
|
11545
|
+
));
|
|
11546
|
+
};
|
|
11547
|
+
function unobserveChild(child, observer) {
|
|
11548
|
+
child = getPublicInstanceFromHostFiber(child);
|
|
11549
|
+
observer.unobserve(child);
|
|
11550
|
+
return !1;
|
|
11551
|
+
}
|
|
11552
|
+
FragmentInstance.prototype.compareDocumentPosition = function (otherNode) {
|
|
11553
|
+
var parentHostFiber = getFragmentParentInstanceOrContainerFiber(
|
|
11554
|
+
this._fragmentFiber
|
|
11555
|
+
);
|
|
11556
|
+
if (null === parentHostFiber) return Node.DOCUMENT_POSITION_DISCONNECTED;
|
|
11557
|
+
var children = [];
|
|
11558
|
+
traverseVisibleInstancesAndTextInstances(
|
|
11559
|
+
this._fragmentFiber.child,
|
|
11560
|
+
!1,
|
|
11561
|
+
collectChildren,
|
|
11562
|
+
children,
|
|
11563
|
+
void 0,
|
|
11564
|
+
void 0
|
|
11565
|
+
);
|
|
11566
|
+
if (0 === children.length) {
|
|
11567
|
+
var parentHostInstance = getPublicInstanceFromHostFiber(parentHostFiber);
|
|
11568
|
+
children = this._fragmentFiber;
|
|
11569
|
+
parentHostFiber = getPublicInstanceFromHostFiber;
|
|
11570
|
+
var parentResult = parentHostInstance.compareDocumentPosition(otherNode);
|
|
11571
|
+
var result = parentResult;
|
|
11572
|
+
parentHostInstance === otherNode
|
|
11573
|
+
? (result = Node.DOCUMENT_POSITION_CONTAINS)
|
|
11574
|
+
: parentResult & Node.DOCUMENT_POSITION_CONTAINED_BY &&
|
|
11575
|
+
((parentHostInstance = [null, null]),
|
|
11576
|
+
(result = getFragmentParentInstanceOrContainerFiber(children)),
|
|
11577
|
+
null !== result &&
|
|
11578
|
+
findFragmentInstanceOrTextInstanceSiblings(
|
|
11579
|
+
parentHostInstance,
|
|
11580
|
+
children,
|
|
11581
|
+
result.child,
|
|
11582
|
+
{ foundSelf: !1 }
|
|
11583
|
+
),
|
|
11584
|
+
(children = parentHostInstance[1]),
|
|
11585
|
+
null === children
|
|
11586
|
+
? (result = Node.DOCUMENT_POSITION_PRECEDING)
|
|
11587
|
+
: ((otherNode =
|
|
11588
|
+
parentHostFiber(children).compareDocumentPosition(otherNode)),
|
|
11589
|
+
(result =
|
|
11590
|
+
0 === otherNode || otherNode & Node.DOCUMENT_POSITION_FOLLOWING
|
|
11591
|
+
? Node.DOCUMENT_POSITION_FOLLOWING
|
|
11592
|
+
: Node.DOCUMENT_POSITION_PRECEDING)));
|
|
11593
|
+
return (result |= Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC);
|
|
11594
|
+
}
|
|
11595
|
+
parentHostFiber = getPublicInstanceFromHostFiber(children[0]);
|
|
11596
|
+
children = getPublicInstanceFromHostFiber(children[children.length - 1]);
|
|
11597
|
+
parentHostInstance = parentHostFiber.compareDocumentPosition(otherNode);
|
|
11598
|
+
parentResult = children.compareDocumentPosition(otherNode);
|
|
11599
|
+
result =
|
|
11600
|
+
parentHostInstance & Node.DOCUMENT_POSITION_CONTAINED_BY ||
|
|
11601
|
+
parentResult & Node.DOCUMENT_POSITION_CONTAINED_BY;
|
|
11602
|
+
parentResult =
|
|
11603
|
+
parentHostInstance & Node.DOCUMENT_POSITION_FOLLOWING &&
|
|
11604
|
+
parentResult & Node.DOCUMENT_POSITION_PRECEDING;
|
|
11605
|
+
return parentHostFiber === otherNode ||
|
|
11606
|
+
children === otherNode ||
|
|
11607
|
+
result ||
|
|
11608
|
+
parentResult
|
|
11609
|
+
? Node.DOCUMENT_POSITION_CONTAINED_BY
|
|
11610
|
+
: parentHostInstance;
|
|
11611
|
+
};
|
|
11612
|
+
function collectChildren(child, collection) {
|
|
11613
|
+
collection.push(child);
|
|
11614
|
+
return !1;
|
|
11615
|
+
}
|
|
11616
|
+
FragmentInstance.prototype.getRootNode = function (getRootNodeOptions) {
|
|
11617
|
+
var parentHostFiber = getFragmentParentInstanceOrContainerFiber(
|
|
11618
|
+
this._fragmentFiber
|
|
11619
|
+
);
|
|
11620
|
+
return null === parentHostFiber
|
|
11621
|
+
? this
|
|
11622
|
+
: getPublicInstanceFromHostFiber(parentHostFiber).getRootNode(
|
|
11623
|
+
getRootNodeOptions
|
|
11624
|
+
);
|
|
11625
|
+
};
|
|
11626
|
+
FragmentInstance.prototype.getClientRects = function () {
|
|
11627
|
+
var rects = [];
|
|
11628
|
+
traverseVisibleInstancesAndTextInstances(
|
|
11629
|
+
this._fragmentFiber.child,
|
|
11630
|
+
!1,
|
|
11631
|
+
collectClientRects,
|
|
11632
|
+
rects,
|
|
11633
|
+
void 0,
|
|
11634
|
+
void 0
|
|
11635
|
+
);
|
|
11636
|
+
return rects;
|
|
11637
|
+
};
|
|
11638
|
+
function collectClientRects(child, rects) {
|
|
11639
|
+
child = getPublicInstanceFromHostFiber(child);
|
|
11640
|
+
rects.push(child.getBoundingClientRect());
|
|
11641
|
+
return !1;
|
|
11642
|
+
}
|
|
11643
|
+
function addFragmentHandleToFiber(child, fragmentInstance) {
|
|
11644
|
+
child = getPublicInstanceFromHostFiber(child);
|
|
11645
|
+
null != child && addFragmentHandleToInstance(child, fragmentInstance);
|
|
11646
|
+
return !1;
|
|
11647
|
+
}
|
|
11648
|
+
function addFragmentHandleToInstance(instance, fragmentInstance) {
|
|
11649
|
+
null == instance.reactFragments && (instance.reactFragments = new Set());
|
|
11650
|
+
instance.reactFragments.add(fragmentInstance);
|
|
11651
|
+
}
|
|
11652
|
+
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
|
11653
|
+
if (null != childInstance.canonical) {
|
|
11654
|
+
var publicInstance = getPublicInstance(childInstance);
|
|
11655
|
+
if (null !== fragmentInstance._observers) {
|
|
11656
|
+
if (null == publicInstance)
|
|
11657
|
+
throw Error("Expected to find a host node. This is a bug in React.");
|
|
11658
|
+
fragmentInstance._observers.forEach(function (observer) {
|
|
11659
|
+
observer.observe(publicInstance);
|
|
11660
|
+
});
|
|
11661
|
+
}
|
|
11662
|
+
addFragmentHandleToInstance(publicInstance, fragmentInstance);
|
|
11663
|
+
}
|
|
11664
|
+
}
|
|
10413
11665
|
var HostTransitionContext = {
|
|
10414
11666
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
10415
11667
|
Provider: null,
|
|
@@ -10418,9 +11670,6 @@ var HostTransitionContext = {
|
|
|
10418
11670
|
_currentValue2: null,
|
|
10419
11671
|
_threadCount: 0
|
|
10420
11672
|
},
|
|
10421
|
-
supportsMicrotasks =
|
|
10422
|
-
"undefined" !== typeof RN$enableMicrotasksInReact &&
|
|
10423
|
-
!!RN$enableMicrotasksInReact,
|
|
10424
11673
|
scheduleMicrotask =
|
|
10425
11674
|
"function" === typeof queueMicrotask ? queueMicrotask : scheduleTimeout;
|
|
10426
11675
|
getFiberCurrentPropsFromNode$1 = function (instance) {
|
|
@@ -10440,14 +11689,14 @@ ResponderEventPlugin.injection.injectGlobalResponderHandler({
|
|
|
10440
11689
|
onChange: function (from, to, blockNativeResponder) {
|
|
10441
11690
|
from &&
|
|
10442
11691
|
from.stateNode &&
|
|
10443
|
-
|
|
11692
|
+
reactPrivateInterface.fabricUIManager.setIsJSResponder(
|
|
10444
11693
|
from.stateNode.node,
|
|
10445
11694
|
!1,
|
|
10446
11695
|
blockNativeResponder || !1
|
|
10447
11696
|
);
|
|
10448
11697
|
to &&
|
|
10449
11698
|
to.stateNode &&
|
|
10450
|
-
|
|
11699
|
+
reactPrivateInterface.fabricUIManager.setIsJSResponder(
|
|
10451
11700
|
to.stateNode.node,
|
|
10452
11701
|
!0,
|
|
10453
11702
|
blockNativeResponder || !1
|
|
@@ -10456,14 +11705,14 @@ ResponderEventPlugin.injection.injectGlobalResponderHandler({
|
|
|
10456
11705
|
});
|
|
10457
11706
|
if (
|
|
10458
11707
|
"function" !==
|
|
10459
|
-
typeof
|
|
11708
|
+
typeof reactPrivateInterface.ReactFiberErrorDialog.showErrorDialog
|
|
10460
11709
|
)
|
|
10461
11710
|
throw Error(
|
|
10462
11711
|
"Expected ReactFiberErrorDialog.showErrorDialog to be a function."
|
|
10463
11712
|
);
|
|
10464
11713
|
function nativeOnUncaughtError(error, errorInfo) {
|
|
10465
11714
|
!1 !==
|
|
10466
|
-
|
|
11715
|
+
reactPrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
|
10467
11716
|
errorBoundary: null,
|
|
10468
11717
|
error: error,
|
|
10469
11718
|
componentStack:
|
|
@@ -10472,7 +11721,7 @@ function nativeOnUncaughtError(error, errorInfo) {
|
|
|
10472
11721
|
}
|
|
10473
11722
|
function nativeOnCaughtError(error, errorInfo) {
|
|
10474
11723
|
!1 !==
|
|
10475
|
-
|
|
11724
|
+
reactPrivateInterface.ReactFiberErrorDialog.showErrorDialog({
|
|
10476
11725
|
errorBoundary: errorInfo.errorBoundary,
|
|
10477
11726
|
error: error,
|
|
10478
11727
|
componentStack:
|
|
@@ -10493,26 +11742,26 @@ batchedUpdatesImpl = function (fn, a) {
|
|
|
10493
11742
|
}
|
|
10494
11743
|
};
|
|
10495
11744
|
var roots = new Map(),
|
|
10496
|
-
internals$jscomp$
|
|
11745
|
+
internals$jscomp$inline_1347 = {
|
|
10497
11746
|
bundleType: 0,
|
|
10498
|
-
version: "19.
|
|
11747
|
+
version: "19.3.0",
|
|
10499
11748
|
rendererPackageName: "react-native-renderer",
|
|
10500
11749
|
currentDispatcherRef: ReactSharedInternals,
|
|
10501
|
-
reconcilerVersion: "19.
|
|
11750
|
+
reconcilerVersion: "19.3.0"
|
|
10502
11751
|
};
|
|
10503
11752
|
null !== extraDevToolsConfig &&
|
|
10504
|
-
(internals$jscomp$
|
|
11753
|
+
(internals$jscomp$inline_1347.rendererConfig = extraDevToolsConfig);
|
|
10505
11754
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
10506
|
-
var hook$jscomp$
|
|
11755
|
+
var hook$jscomp$inline_1663 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
10507
11756
|
if (
|
|
10508
|
-
!hook$jscomp$
|
|
10509
|
-
hook$jscomp$
|
|
11757
|
+
!hook$jscomp$inline_1663.isDisabled &&
|
|
11758
|
+
hook$jscomp$inline_1663.supportsFiber
|
|
10510
11759
|
)
|
|
10511
11760
|
try {
|
|
10512
|
-
(rendererID = hook$jscomp$
|
|
10513
|
-
internals$jscomp$
|
|
11761
|
+
(rendererID = hook$jscomp$inline_1663.inject(
|
|
11762
|
+
internals$jscomp$inline_1347
|
|
10514
11763
|
)),
|
|
10515
|
-
(injectedHook = hook$jscomp$
|
|
11764
|
+
(injectedHook = hook$jscomp$inline_1663);
|
|
10516
11765
|
} catch (err) {}
|
|
10517
11766
|
}
|
|
10518
11767
|
exports.createPortal = function (children, containerTag) {
|
|
@@ -10524,51 +11773,36 @@ exports.createPortal = function (children, containerTag) {
|
|
|
10524
11773
|
);
|
|
10525
11774
|
};
|
|
10526
11775
|
exports.dispatchCommand = function (handle, command, args) {
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
? nativeFabricUIManager.dispatchCommand(handle, command, args)
|
|
10535
|
-
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
|
|
10536
|
-
nativeTag,
|
|
10537
|
-
command,
|
|
10538
|
-
args
|
|
10539
|
-
));
|
|
11776
|
+
handle = reactPrivateInterface.getNodeFromPublicInstance(handle);
|
|
11777
|
+
null != handle &&
|
|
11778
|
+
reactPrivateInterface.fabricUIManager.dispatchCommand(
|
|
11779
|
+
handle,
|
|
11780
|
+
command,
|
|
11781
|
+
args
|
|
11782
|
+
);
|
|
10540
11783
|
};
|
|
10541
11784
|
exports.findHostInstance_DEPRECATED = function (componentOrHandle) {
|
|
10542
11785
|
return null == componentOrHandle
|
|
10543
11786
|
? null
|
|
10544
11787
|
: componentOrHandle.canonical && componentOrHandle.canonical.publicInstance
|
|
10545
11788
|
? componentOrHandle.canonical.publicInstance
|
|
10546
|
-
: componentOrHandle
|
|
10547
|
-
? componentOrHandle
|
|
10548
|
-
: findHostInstance(componentOrHandle);
|
|
11789
|
+
: findHostInstance(componentOrHandle);
|
|
10549
11790
|
};
|
|
10550
11791
|
exports.findNodeHandle = function (componentOrHandle) {
|
|
10551
11792
|
if (null == componentOrHandle) return null;
|
|
10552
11793
|
if ("number" === typeof componentOrHandle) return componentOrHandle;
|
|
10553
|
-
if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;
|
|
10554
11794
|
if (
|
|
10555
11795
|
null != componentOrHandle.canonical &&
|
|
10556
11796
|
null != componentOrHandle.canonical.nativeTag
|
|
10557
11797
|
)
|
|
10558
11798
|
return componentOrHandle.canonical.nativeTag;
|
|
10559
11799
|
var nativeTag =
|
|
10560
|
-
|
|
10561
|
-
componentOrHandle
|
|
10562
|
-
);
|
|
11800
|
+
reactPrivateInterface.getNativeTagFromPublicInstance(componentOrHandle);
|
|
10563
11801
|
if (nativeTag) return nativeTag;
|
|
10564
11802
|
componentOrHandle = findHostInstance(componentOrHandle);
|
|
10565
11803
|
return null == componentOrHandle
|
|
10566
11804
|
? componentOrHandle
|
|
10567
|
-
:
|
|
10568
|
-
? componentOrHandle._nativeTag
|
|
10569
|
-
: ReactNativePrivateInterface.getNativeTagFromPublicInstance(
|
|
10570
|
-
componentOrHandle
|
|
10571
|
-
);
|
|
11805
|
+
: reactPrivateInterface.getNativeTagFromPublicInstance(componentOrHandle);
|
|
10572
11806
|
};
|
|
10573
11807
|
exports.getNodeFromInternalInstanceHandle = function (internalInstanceHandle) {
|
|
10574
11808
|
return (
|
|
@@ -10586,7 +11820,7 @@ exports.getPublicInstanceFromInternalInstanceHandle = function (
|
|
|
10586
11820
|
: 6 === internalInstanceHandle.tag
|
|
10587
11821
|
? (null == instance.publicInstance &&
|
|
10588
11822
|
(instance.publicInstance =
|
|
10589
|
-
|
|
11823
|
+
reactPrivateInterface.createPublicTextInstance(
|
|
10590
11824
|
internalInstanceHandle
|
|
10591
11825
|
)),
|
|
10592
11826
|
instance.publicInstance)
|
|
@@ -10623,7 +11857,7 @@ exports.render = function (
|
|
|
10623
11857
|
(onRecoverableError = options.onRecoverableError);
|
|
10624
11858
|
options = {
|
|
10625
11859
|
publicInstance:
|
|
10626
|
-
|
|
11860
|
+
reactPrivateInterface.createPublicRootInstance(containerTag),
|
|
10627
11861
|
containerTag: containerTag
|
|
10628
11862
|
};
|
|
10629
11863
|
concurrentRoot = concurrentRoot ? 1 : 0;
|
|
@@ -10672,18 +11906,12 @@ exports.render = function (
|
|
|
10672
11906
|
return element;
|
|
10673
11907
|
};
|
|
10674
11908
|
exports.sendAccessibilityEvent = function (handle, eventType) {
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
null != handle
|
|
10682
|
-
? nativeFabricUIManager.sendAccessibilityEvent(handle, eventType)
|
|
10683
|
-
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
|
|
10684
|
-
nativeTag,
|
|
10685
|
-
eventType
|
|
10686
|
-
));
|
|
11909
|
+
handle = reactPrivateInterface.getNodeFromPublicInstance(handle);
|
|
11910
|
+
null != handle &&
|
|
11911
|
+
reactPrivateInterface.fabricUIManager.sendAccessibilityEvent(
|
|
11912
|
+
handle,
|
|
11913
|
+
eventType
|
|
11914
|
+
);
|
|
10687
11915
|
};
|
|
10688
11916
|
exports.stopSurface = function (containerTag) {
|
|
10689
11917
|
var root = roots.get(containerTag);
|