@office-iss/react-native-win32 0.66.4 → 0.67.0
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/.eslintignore +2 -0
- package/.flowconfig +1 -1
- package/CHANGELOG.json +228 -46
- package/CHANGELOG.md +102 -25
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
- package/Libraries/Animated/components/AnimatedImage.js +3 -3
- package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
- package/Libraries/Animated/components/AnimatedText.js +3 -3
- package/Libraries/Animated/components/AnimatedView.js +1 -3
- package/Libraries/Animated/createAnimatedComponent.js +3 -34
- package/Libraries/Components/Button/ButtonWin32.js +2 -2
- package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
- package/Libraries/Components/Button.js +3 -0
- package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
- package/Libraries/Components/EnterString.win32.js +3 -3
- package/Libraries/Components/EnterString.win32.js.map +1 -1
- package/Libraries/Components/Keyboard/Keyboard.js +2 -2
- package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
- package/Libraries/Components/ScrollView/ScrollView.js +17 -16
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
- package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -1
- package/Libraries/Components/Text/TextWin32.Props.d.ts +2 -2
- package/Libraries/Components/Text/TextWin32.Props.js.map +1 -1
- package/Libraries/Components/Text/TextWin32.js +1 -1
- package/Libraries/Components/Text/TextWin32.js.map +1 -1
- package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +0 -1
- package/Libraries/Components/TextInput/TextInput.win32.js +6 -6
- package/Libraries/Components/TextInput/TextInput.win32.js.map +1 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +0 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +1 -1
- package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +2 -2
- package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js.map +1 -1
- package/Libraries/Components/Touchable/TouchableWin32.js +2 -2
- package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
- package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -1
- package/Libraries/Components/View/View.js +1 -1
- package/Libraries/Components/View/View.win32.js +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Components/View/ViewWin32.Props.d.ts +3 -6
- package/Libraries/Components/View/ViewWin32.Props.js.map +1 -1
- package/Libraries/Components/View/ViewWin32.js +5 -5
- package/Libraries/Components/View/ViewWin32.js.map +1 -1
- package/Libraries/Core/ExceptionsManager.js +45 -80
- package/Libraries/Core/ExtendedError.js +0 -1
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -4
- package/Libraries/Core/setUpTimers.js +2 -2
- package/Libraries/Image/Image.ios.js +6 -0
- package/Libraries/Image/Image.win32.js +6 -0
- package/Libraries/Image/ImageBackground.js +10 -8
- package/Libraries/Image/ImageProps.js +28 -0
- package/Libraries/Image/Tests/ImageWin32Test.d.ts +0 -1
- package/Libraries/LogBox/Data/LogBoxData.js +18 -19
- package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
- package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
- package/Libraries/PersonaCoin/PersonaCoin.js +3 -2
- package/Libraries/PersonaCoin/PersonaCoin.js.map +1 -1
- package/Libraries/Pressability/Pressability.js +13 -13
- package/Libraries/Pressability/Pressability.win32.js +13 -13
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
- package/Libraries/ReactNative/AppRegistry.js +4 -2
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
- package/Libraries/Share/Share.js +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/Text/TextProps.js +1 -7
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/Utilities/HMRClient.js +1 -1
- package/flow/global.js +45 -0
- package/index.js +15 -10
- package/index.win32.js +15 -10
- package/jest/mockModal.js +31 -0
- package/jest/preprocessor.js +7 -75
- package/jest/setup.js +5 -3
- package/overrides.json +8 -14
- package/package.json +19 -17
- package/rntypes/BatchedBridge.d.ts +23 -0
- package/rntypes/Devtools.d.ts +20 -0
- package/rntypes/LaunchScreen.d.ts +9 -0
- package/rntypes/globals.d.ts +496 -0
- package/rntypes/index.d.ts +9966 -0
- package/rntypes/legacy-properties.d.ts +266 -0
- package/src/Libraries/Components/Text/TextWin32.Props.ts +2 -2
- package/src/Libraries/Components/View/ViewWin32.Props.ts +6 -12
- package/src/rntypes/BatchedBridge.d.ts +23 -0
- package/src/rntypes/Devtools.d.ts +20 -0
- package/src/rntypes/LaunchScreen.d.ts +9 -0
- package/src/rntypes/globals.d.ts +496 -0
- package/src/rntypes/index.d.ts +9966 -0
- package/src/rntypes/legacy-properties.d.ts +266 -0
- package/src/typings-index.ts +11 -4
- package/typings-index.d.ts +3 -1
- package/typings-index.js +7 -5
- package/typings-index.js.map +1 -1
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.win32.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
- package/Libraries/Interaction/InteractionMixin.js +0 -54
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<b5653158726335473c74f890aec077fc>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -782,18 +782,16 @@ function recomputePluginOrdering() {
|
|
|
782
782
|
for (var pluginName in namesToPlugins) {
|
|
783
783
|
var pluginModule = namesToPlugins[pluginName],
|
|
784
784
|
pluginIndex = eventPluginOrder.indexOf(pluginName);
|
|
785
|
-
if (
|
|
785
|
+
if (-1 >= pluginIndex)
|
|
786
786
|
throw Error(
|
|
787
787
|
"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" +
|
|
788
|
-
pluginName +
|
|
789
|
-
"`."
|
|
788
|
+
(pluginName + "`.")
|
|
790
789
|
);
|
|
791
790
|
if (!plugins[pluginIndex]) {
|
|
792
791
|
if (!pluginModule.extractEvents)
|
|
793
792
|
throw Error(
|
|
794
793
|
"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" +
|
|
795
|
-
pluginName +
|
|
796
|
-
"` does not."
|
|
794
|
+
(pluginName + "` does not.")
|
|
797
795
|
);
|
|
798
796
|
plugins[pluginIndex] = pluginModule;
|
|
799
797
|
pluginIndex = pluginModule.eventTypes;
|
|
@@ -804,8 +802,7 @@ function recomputePluginOrdering() {
|
|
|
804
802
|
if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))
|
|
805
803
|
throw Error(
|
|
806
804
|
"EventPluginRegistry: More than one plugin attempted to publish the same event name, `" +
|
|
807
|
-
eventName$jscomp$0 +
|
|
808
|
-
"`."
|
|
805
|
+
(eventName$jscomp$0 + "`.")
|
|
809
806
|
);
|
|
810
807
|
eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;
|
|
811
808
|
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
|
|
@@ -845,8 +842,7 @@ function publishRegistrationName(registrationName, pluginModule) {
|
|
|
845
842
|
if (registrationNameModules[registrationName])
|
|
846
843
|
throw Error(
|
|
847
844
|
"EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" +
|
|
848
|
-
registrationName +
|
|
849
|
-
"`."
|
|
845
|
+
(registrationName + "`.")
|
|
850
846
|
);
|
|
851
847
|
registrationNameModules[registrationName] = pluginModule;
|
|
852
848
|
}
|
|
@@ -930,7 +926,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
930
926
|
"ReactNativeBridgeEventPlugin"
|
|
931
927
|
]);
|
|
932
928
|
recomputePluginOrdering();
|
|
933
|
-
var injectedNamesToPlugins$jscomp$
|
|
929
|
+
var injectedNamesToPlugins$jscomp$inline_222 = {
|
|
934
930
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
935
931
|
ReactNativeBridgeEventPlugin: {
|
|
936
932
|
eventTypes: {},
|
|
@@ -965,34 +961,33 @@ var injectedNamesToPlugins$jscomp$inline_224 = {
|
|
|
965
961
|
}
|
|
966
962
|
}
|
|
967
963
|
},
|
|
968
|
-
isOrderingDirty$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
970
|
-
for (pluginName$jscomp$
|
|
964
|
+
isOrderingDirty$jscomp$inline_223 = !1,
|
|
965
|
+
pluginName$jscomp$inline_224;
|
|
966
|
+
for (pluginName$jscomp$inline_224 in injectedNamesToPlugins$jscomp$inline_222)
|
|
971
967
|
if (
|
|
972
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
-
pluginName$jscomp$
|
|
968
|
+
injectedNamesToPlugins$jscomp$inline_222.hasOwnProperty(
|
|
969
|
+
pluginName$jscomp$inline_224
|
|
974
970
|
)
|
|
975
971
|
) {
|
|
976
|
-
var pluginModule$jscomp$
|
|
977
|
-
injectedNamesToPlugins$jscomp$
|
|
972
|
+
var pluginModule$jscomp$inline_225 =
|
|
973
|
+
injectedNamesToPlugins$jscomp$inline_222[pluginName$jscomp$inline_224];
|
|
978
974
|
if (
|
|
979
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
980
|
-
namesToPlugins[pluginName$jscomp$
|
|
981
|
-
pluginModule$jscomp$
|
|
975
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_224) ||
|
|
976
|
+
namesToPlugins[pluginName$jscomp$inline_224] !==
|
|
977
|
+
pluginModule$jscomp$inline_225
|
|
982
978
|
) {
|
|
983
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
979
|
+
if (namesToPlugins[pluginName$jscomp$inline_224])
|
|
984
980
|
throw Error(
|
|
985
981
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
986
|
-
pluginName$jscomp$
|
|
987
|
-
"`."
|
|
982
|
+
(pluginName$jscomp$inline_224 + "`.")
|
|
988
983
|
);
|
|
989
984
|
namesToPlugins[
|
|
990
|
-
pluginName$jscomp$
|
|
991
|
-
] = pluginModule$jscomp$
|
|
992
|
-
isOrderingDirty$jscomp$
|
|
985
|
+
pluginName$jscomp$inline_224
|
|
986
|
+
] = pluginModule$jscomp$inline_225;
|
|
987
|
+
isOrderingDirty$jscomp$inline_223 = !0;
|
|
993
988
|
}
|
|
994
989
|
}
|
|
995
|
-
isOrderingDirty$jscomp$
|
|
990
|
+
isOrderingDirty$jscomp$inline_223 && recomputePluginOrdering();
|
|
996
991
|
var instanceCache = new Map(),
|
|
997
992
|
instanceProps = new Map();
|
|
998
993
|
function getInstanceFromTag(tag) {
|
|
@@ -1293,7 +1288,7 @@ function getNearestMountedFiber(fiber) {
|
|
|
1293
1288
|
fiber = node;
|
|
1294
1289
|
do
|
|
1295
1290
|
(node = fiber),
|
|
1296
|
-
0 !== (node.flags &
|
|
1291
|
+
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
|
1297
1292
|
(fiber = node.return);
|
|
1298
1293
|
while (fiber);
|
|
1299
1294
|
}
|
|
@@ -1841,6 +1836,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1841
1836
|
root = root.pendingLanes & -1073741825;
|
|
1842
1837
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1843
1838
|
}
|
|
1839
|
+
function includesBlockingLane(root, lanes) {
|
|
1840
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1841
|
+
}
|
|
1844
1842
|
function createLaneMap(initial) {
|
|
1845
1843
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1846
1844
|
return laneMap;
|
|
@@ -2044,7 +2042,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2044
2042
|
: pop(didPerformWorkStackCursor);
|
|
2045
2043
|
push(didPerformWorkStackCursor, didChange);
|
|
2046
2044
|
}
|
|
2047
|
-
|
|
2045
|
+
function is(x, y) {
|
|
2046
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2047
|
+
}
|
|
2048
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2049
|
+
syncQueue = null,
|
|
2048
2050
|
includesLegacySyncCallbacks = !1,
|
|
2049
2051
|
isFlushingSyncQueue = !1;
|
|
2050
2052
|
function flushSyncCallbacks() {
|
|
@@ -2073,10 +2075,6 @@ function flushSyncCallbacks() {
|
|
|
2073
2075
|
return null;
|
|
2074
2076
|
}
|
|
2075
2077
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2076
|
-
function is(x, y) {
|
|
2077
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2078
|
-
}
|
|
2079
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
2080
2078
|
function shallowEqual(objA, objB) {
|
|
2081
2079
|
if (objectIs(objA, objB)) return !0;
|
|
2082
2080
|
if (
|
|
@@ -2373,7 +2371,7 @@ function processUpdateQueue(
|
|
|
2373
2371
|
newState = workInProgress;
|
|
2374
2372
|
break a;
|
|
2375
2373
|
case 3:
|
|
2376
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2374
|
+
workInProgress.flags = (workInProgress.flags & -65537) | 128;
|
|
2377
2375
|
case 0:
|
|
2378
2376
|
workInProgress = update.payload;
|
|
2379
2377
|
updateLane =
|
|
@@ -2626,7 +2624,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2626
2624
|
returnFiber +
|
|
2627
2625
|
". This error is likely caused by a bug in React. Please file an issue."
|
|
2628
2626
|
);
|
|
2629
|
-
var
|
|
2627
|
+
var resolvedInst = inst,
|
|
2628
|
+
stringRef = "" + returnFiber;
|
|
2630
2629
|
if (
|
|
2631
2630
|
null !== current &&
|
|
2632
2631
|
null !== current.ref &&
|
|
@@ -2635,8 +2634,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2635
2634
|
)
|
|
2636
2635
|
return current.ref;
|
|
2637
2636
|
current = function(value) {
|
|
2638
|
-
var refs =
|
|
2639
|
-
refs === emptyRefsObject && (refs =
|
|
2637
|
+
var refs = resolvedInst.refs;
|
|
2638
|
+
refs === emptyRefsObject && (refs = resolvedInst.refs = {});
|
|
2640
2639
|
null === value ? delete refs[stringRef] : (refs[stringRef] = value);
|
|
2641
2640
|
};
|
|
2642
2641
|
current._stringRef = stringRef;
|
|
@@ -3335,7 +3334,7 @@ function renderWithHooks(
|
|
|
3335
3334
|
nextRenderLanes = 0;
|
|
3336
3335
|
do {
|
|
3337
3336
|
didScheduleRenderPhaseUpdateDuringThisPass = !1;
|
|
3338
|
-
if (
|
|
3337
|
+
if (25 <= nextRenderLanes)
|
|
3339
3338
|
throw Error(
|
|
3340
3339
|
"Too many re-renders. React limits the number of renders to prevent an infinite loop."
|
|
3341
3340
|
);
|
|
@@ -3436,19 +3435,18 @@ function updateReducer(reducer) {
|
|
|
3436
3435
|
(newBaseQueueLast = newBaseQueueLast.next = {
|
|
3437
3436
|
lane: 0,
|
|
3438
3437
|
action: update.action,
|
|
3439
|
-
|
|
3438
|
+
hasEagerState: update.hasEagerState,
|
|
3440
3439
|
eagerState: update.eagerState,
|
|
3441
3440
|
next: null
|
|
3442
3441
|
}),
|
|
3443
|
-
(current =
|
|
3444
|
-
update.
|
|
3445
|
-
|
|
3446
|
-
: reducer(current, update.action));
|
|
3442
|
+
(current = update.hasEagerState
|
|
3443
|
+
? update.eagerState
|
|
3444
|
+
: reducer(current, update.action));
|
|
3447
3445
|
else {
|
|
3448
3446
|
var clone = {
|
|
3449
3447
|
lane: updateLane,
|
|
3450
3448
|
action: update.action,
|
|
3451
|
-
|
|
3449
|
+
hasEagerState: update.hasEagerState,
|
|
3452
3450
|
eagerState: update.eagerState,
|
|
3453
3451
|
next: null
|
|
3454
3452
|
};
|
|
@@ -3588,7 +3586,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3588
3586
|
lastRenderedReducer: basicStateReducer,
|
|
3589
3587
|
lastRenderedState: snapshot
|
|
3590
3588
|
}),
|
|
3591
|
-
(hook.dispatch = setSnapshot =
|
|
3589
|
+
(hook.dispatch = setSnapshot = dispatchSetState.bind(
|
|
3592
3590
|
null,
|
|
3593
3591
|
currentlyRenderingFiber$1,
|
|
3594
3592
|
hook
|
|
@@ -3603,11 +3601,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3603
3601
|
var hook = updateWorkInProgressHook();
|
|
3604
3602
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3605
3603
|
}
|
|
3604
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3605
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3606
|
+
hook = mountWorkInProgressHook();
|
|
3607
|
+
var nextSnapshot = getSnapshot();
|
|
3608
|
+
var root = workInProgressRoot;
|
|
3609
|
+
if (null === root)
|
|
3610
|
+
throw Error(
|
|
3611
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3612
|
+
);
|
|
3613
|
+
includesBlockingLane(root, renderLanes) ||
|
|
3614
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3615
|
+
hook.memoizedState = nextSnapshot;
|
|
3616
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3617
|
+
hook.queue = root;
|
|
3618
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [subscribe]);
|
|
3619
|
+
fiber.flags |= 2048;
|
|
3620
|
+
pushEffect(
|
|
3621
|
+
9,
|
|
3622
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3623
|
+
void 0,
|
|
3624
|
+
null
|
|
3625
|
+
);
|
|
3626
|
+
return nextSnapshot;
|
|
3627
|
+
}
|
|
3628
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3629
|
+
fiber.flags |= 16384;
|
|
3630
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3631
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3632
|
+
null === getSnapshot
|
|
3633
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3634
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3635
|
+
(getSnapshot.stores = [fiber]))
|
|
3636
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3637
|
+
null === renderedSnapshot
|
|
3638
|
+
? (getSnapshot.stores = [fiber])
|
|
3639
|
+
: renderedSnapshot.push(fiber));
|
|
3640
|
+
}
|
|
3641
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3642
|
+
inst.value = nextSnapshot;
|
|
3643
|
+
inst.getSnapshot = getSnapshot;
|
|
3644
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3645
|
+
}
|
|
3646
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3647
|
+
return subscribe(function() {
|
|
3648
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3649
|
+
});
|
|
3650
|
+
}
|
|
3651
|
+
function checkIfSnapshotChanged(inst) {
|
|
3652
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3653
|
+
inst = inst.value;
|
|
3654
|
+
try {
|
|
3655
|
+
var nextValue = latestGetSnapshot();
|
|
3656
|
+
return !objectIs(inst, nextValue);
|
|
3657
|
+
} catch (error) {
|
|
3658
|
+
return !0;
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3606
3661
|
function mountState(initialState) {
|
|
3607
3662
|
var hook = mountWorkInProgressHook();
|
|
3608
3663
|
"function" === typeof initialState && (initialState = initialState());
|
|
3609
3664
|
hook.memoizedState = hook.baseState = initialState;
|
|
3610
|
-
initialState =
|
|
3665
|
+
initialState = {
|
|
3611
3666
|
pending: null,
|
|
3612
3667
|
interleaved: null,
|
|
3613
3668
|
lanes: 0,
|
|
@@ -3615,7 +3670,8 @@ function mountState(initialState) {
|
|
|
3615
3670
|
lastRenderedReducer: basicStateReducer,
|
|
3616
3671
|
lastRenderedState: initialState
|
|
3617
3672
|
};
|
|
3618
|
-
|
|
3673
|
+
hook.queue = initialState;
|
|
3674
|
+
initialState = initialState.dispatch = dispatchSetState.bind(
|
|
3619
3675
|
null,
|
|
3620
3676
|
currentlyRenderingFiber$1,
|
|
3621
3677
|
initialState
|
|
@@ -3626,7 +3682,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3626
3682
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3627
3683
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3628
3684
|
null === create
|
|
3629
|
-
? ((create = { lastEffect: null }),
|
|
3685
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3630
3686
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3631
3687
|
(create.lastEffect = tag.next = tag))
|
|
3632
3688
|
: ((destroy = create.lastEffect),
|
|
@@ -3667,14 +3723,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3667
3723
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3668
3724
|
}
|
|
3669
3725
|
function mountEffect(create, deps) {
|
|
3670
|
-
return mountEffectImpl(
|
|
3726
|
+
return mountEffectImpl(4196352, 8, create, deps);
|
|
3671
3727
|
}
|
|
3672
3728
|
function updateEffect(create, deps) {
|
|
3673
|
-
return updateEffectImpl(
|
|
3729
|
+
return updateEffectImpl(2048, 8, create, deps);
|
|
3674
3730
|
}
|
|
3675
|
-
function
|
|
3731
|
+
function updateInsertionEffect(create, deps) {
|
|
3676
3732
|
return updateEffectImpl(4, 2, create, deps);
|
|
3677
3733
|
}
|
|
3734
|
+
function updateLayoutEffect(create, deps) {
|
|
3735
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3736
|
+
}
|
|
3678
3737
|
function imperativeHandleEffect(create, ref) {
|
|
3679
3738
|
if ("function" === typeof ref)
|
|
3680
3739
|
return (
|
|
@@ -3697,7 +3756,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3697
3756
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3698
3757
|
return updateEffectImpl(
|
|
3699
3758
|
4,
|
|
3700
|
-
|
|
3759
|
+
4,
|
|
3701
3760
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3702
3761
|
deps
|
|
3703
3762
|
);
|
|
@@ -3744,47 +3803,35 @@ function startTransition(setPending, callback) {
|
|
|
3744
3803
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3745
3804
|
}
|
|
3746
3805
|
}
|
|
3747
|
-
function
|
|
3748
|
-
var
|
|
3749
|
-
|
|
3806
|
+
function dispatchReducerAction(fiber, queue, action) {
|
|
3807
|
+
var lane = requestUpdateLane(fiber);
|
|
3808
|
+
action = {
|
|
3809
|
+
lane: lane,
|
|
3810
|
+
action: action,
|
|
3811
|
+
hasEagerState: !1,
|
|
3812
|
+
eagerState: null,
|
|
3813
|
+
next: null
|
|
3814
|
+
};
|
|
3815
|
+
isRenderPhaseUpdate(fiber)
|
|
3816
|
+
? enqueueRenderPhaseUpdate(queue, action)
|
|
3817
|
+
: (enqueueUpdate$1(fiber, queue, action),
|
|
3818
|
+
(action = requestEventTime()),
|
|
3819
|
+
(fiber = scheduleUpdateOnFiber(fiber, lane, action)),
|
|
3820
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane));
|
|
3821
|
+
}
|
|
3822
|
+
function dispatchSetState(fiber, queue, action) {
|
|
3823
|
+
var lane = requestUpdateLane(fiber),
|
|
3750
3824
|
update = {
|
|
3751
3825
|
lane: lane,
|
|
3752
3826
|
action: action,
|
|
3753
|
-
|
|
3827
|
+
hasEagerState: !1,
|
|
3754
3828
|
eagerState: null,
|
|
3755
3829
|
next: null
|
|
3756
|
-
}
|
|
3757
|
-
|
|
3758
|
-
if (
|
|
3759
|
-
fiber === currentlyRenderingFiber$1 ||
|
|
3760
|
-
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3761
|
-
)
|
|
3762
|
-
(didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0),
|
|
3763
|
-
(lane = queue.pending),
|
|
3764
|
-
null === lane
|
|
3765
|
-
? (update.next = update)
|
|
3766
|
-
: ((update.next = lane.next), (lane.next = update)),
|
|
3767
|
-
(queue.pending = update);
|
|
3830
|
+
};
|
|
3831
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3768
3832
|
else {
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
0 !== (fiber.mode & 1) &&
|
|
3772
|
-
0 === (executionContext & 2)
|
|
3773
|
-
) {
|
|
3774
|
-
var interleaved = queue.interleaved;
|
|
3775
|
-
null === interleaved
|
|
3776
|
-
? ((update.next = update),
|
|
3777
|
-
null === interleavedQueues
|
|
3778
|
-
? (interleavedQueues = [queue])
|
|
3779
|
-
: interleavedQueues.push(queue))
|
|
3780
|
-
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
3781
|
-
queue.interleaved = update;
|
|
3782
|
-
} else
|
|
3783
|
-
(interleaved = queue.pending),
|
|
3784
|
-
null === interleaved
|
|
3785
|
-
? (update.next = update)
|
|
3786
|
-
: ((update.next = interleaved.next), (interleaved.next = update)),
|
|
3787
|
-
(queue.pending = update);
|
|
3833
|
+
enqueueUpdate$1(fiber, queue, update);
|
|
3834
|
+
var alternate = fiber.alternate;
|
|
3788
3835
|
if (
|
|
3789
3836
|
0 === fiber.lanes &&
|
|
3790
3837
|
(null === alternate || 0 === alternate.lanes) &&
|
|
@@ -3793,20 +3840,57 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3793
3840
|
try {
|
|
3794
3841
|
var currentState = queue.lastRenderedState,
|
|
3795
3842
|
eagerState = alternate(currentState, action);
|
|
3796
|
-
update.
|
|
3843
|
+
update.hasEagerState = !0;
|
|
3797
3844
|
update.eagerState = eagerState;
|
|
3798
3845
|
if (objectIs(eagerState, currentState)) return;
|
|
3799
3846
|
} catch (error) {
|
|
3800
3847
|
} finally {
|
|
3801
3848
|
}
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3849
|
+
action = requestEventTime();
|
|
3850
|
+
fiber = scheduleUpdateOnFiber(fiber, lane, action);
|
|
3851
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane);
|
|
3852
|
+
}
|
|
3853
|
+
}
|
|
3854
|
+
function isRenderPhaseUpdate(fiber) {
|
|
3855
|
+
var alternate = fiber.alternate;
|
|
3856
|
+
return (
|
|
3857
|
+
fiber === currentlyRenderingFiber$1 ||
|
|
3858
|
+
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3859
|
+
);
|
|
3860
|
+
}
|
|
3861
|
+
function enqueueRenderPhaseUpdate(queue, update) {
|
|
3862
|
+
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
|
|
3863
|
+
var pending = queue.pending;
|
|
3864
|
+
null === pending
|
|
3865
|
+
? (update.next = update)
|
|
3866
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
3867
|
+
queue.pending = update;
|
|
3868
|
+
}
|
|
3869
|
+
function enqueueUpdate$1(fiber, queue, update) {
|
|
3870
|
+
null !== workInProgressRoot &&
|
|
3871
|
+
0 !== (fiber.mode & 1) &&
|
|
3872
|
+
0 === (executionContext & 2)
|
|
3873
|
+
? ((fiber = queue.interleaved),
|
|
3874
|
+
null === fiber
|
|
3875
|
+
? ((update.next = update),
|
|
3876
|
+
null === interleavedQueues
|
|
3877
|
+
? (interleavedQueues = [queue])
|
|
3878
|
+
: interleavedQueues.push(queue))
|
|
3879
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3880
|
+
(queue.interleaved = update))
|
|
3881
|
+
: ((fiber = queue.pending),
|
|
3882
|
+
null === fiber
|
|
3883
|
+
? (update.next = update)
|
|
3884
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3885
|
+
(queue.pending = update));
|
|
3886
|
+
}
|
|
3887
|
+
function entangleTransitionUpdate(root, queue, lane) {
|
|
3888
|
+
if (0 !== (lane & 4194240)) {
|
|
3889
|
+
var queueLanes = queue.lanes;
|
|
3890
|
+
queueLanes &= root.pendingLanes;
|
|
3891
|
+
lane |= queueLanes;
|
|
3892
|
+
queue.lanes = lane;
|
|
3893
|
+
markRootEntangled(root, lane);
|
|
3810
3894
|
}
|
|
3811
3895
|
}
|
|
3812
3896
|
var ContextOnlyDispatcher = {
|
|
@@ -3815,6 +3899,7 @@ var ContextOnlyDispatcher = {
|
|
|
3815
3899
|
useContext: throwInvalidHookError,
|
|
3816
3900
|
useEffect: throwInvalidHookError,
|
|
3817
3901
|
useImperativeHandle: throwInvalidHookError,
|
|
3902
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3818
3903
|
useLayoutEffect: throwInvalidHookError,
|
|
3819
3904
|
useMemo: throwInvalidHookError,
|
|
3820
3905
|
useReducer: throwInvalidHookError,
|
|
@@ -3824,6 +3909,7 @@ var ContextOnlyDispatcher = {
|
|
|
3824
3909
|
useDeferredValue: throwInvalidHookError,
|
|
3825
3910
|
useTransition: throwInvalidHookError,
|
|
3826
3911
|
useMutableSource: throwInvalidHookError,
|
|
3912
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3827
3913
|
useOpaqueIdentifier: throwInvalidHookError,
|
|
3828
3914
|
unstable_isNewReconciler: !1
|
|
3829
3915
|
},
|
|
@@ -3842,12 +3928,15 @@ var ContextOnlyDispatcher = {
|
|
|
3842
3928
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3843
3929
|
return mountEffectImpl(
|
|
3844
3930
|
4,
|
|
3845
|
-
|
|
3931
|
+
4,
|
|
3846
3932
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3847
3933
|
deps
|
|
3848
3934
|
);
|
|
3849
3935
|
},
|
|
3850
3936
|
useLayoutEffect: function(create, deps) {
|
|
3937
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3938
|
+
},
|
|
3939
|
+
useInsertionEffect: function(create, deps) {
|
|
3851
3940
|
return mountEffectImpl(4, 2, create, deps);
|
|
3852
3941
|
},
|
|
3853
3942
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3861,7 +3950,7 @@ var ContextOnlyDispatcher = {
|
|
|
3861
3950
|
var hook = mountWorkInProgressHook();
|
|
3862
3951
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3863
3952
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3864
|
-
reducer =
|
|
3953
|
+
reducer = {
|
|
3865
3954
|
pending: null,
|
|
3866
3955
|
interleaved: null,
|
|
3867
3956
|
lanes: 0,
|
|
@@ -3869,7 +3958,8 @@ var ContextOnlyDispatcher = {
|
|
|
3869
3958
|
lastRenderedReducer: reducer,
|
|
3870
3959
|
lastRenderedState: initialArg
|
|
3871
3960
|
};
|
|
3872
|
-
|
|
3961
|
+
hook.queue = reducer;
|
|
3962
|
+
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
3873
3963
|
null,
|
|
3874
3964
|
currentlyRenderingFiber$1,
|
|
3875
3965
|
reducer
|
|
@@ -3917,6 +4007,7 @@ var ContextOnlyDispatcher = {
|
|
|
3917
4007
|
};
|
|
3918
4008
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3919
4009
|
},
|
|
4010
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
3920
4011
|
useOpaqueIdentifier: function() {
|
|
3921
4012
|
throw Error("Not yet implemented");
|
|
3922
4013
|
},
|
|
@@ -3928,6 +4019,7 @@ var ContextOnlyDispatcher = {
|
|
|
3928
4019
|
useContext: readContext,
|
|
3929
4020
|
useEffect: updateEffect,
|
|
3930
4021
|
useImperativeHandle: updateImperativeHandle,
|
|
4022
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3931
4023
|
useLayoutEffect: updateLayoutEffect,
|
|
3932
4024
|
useMemo: updateMemo,
|
|
3933
4025
|
useReducer: updateReducer,
|
|
@@ -3960,6 +4052,46 @@ var ContextOnlyDispatcher = {
|
|
|
3960
4052
|
return [isPending, start];
|
|
3961
4053
|
},
|
|
3962
4054
|
useMutableSource: updateMutableSource,
|
|
4055
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4056
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4057
|
+
hook = updateWorkInProgressHook(),
|
|
4058
|
+
nextSnapshot = getSnapshot(),
|
|
4059
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4060
|
+
snapshotChanged &&
|
|
4061
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4062
|
+
hook = hook.queue;
|
|
4063
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4064
|
+
subscribe
|
|
4065
|
+
]);
|
|
4066
|
+
if (
|
|
4067
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4068
|
+
snapshotChanged ||
|
|
4069
|
+
(null !== workInProgressHook &&
|
|
4070
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4071
|
+
) {
|
|
4072
|
+
fiber.flags |= 2048;
|
|
4073
|
+
pushEffect(
|
|
4074
|
+
9,
|
|
4075
|
+
updateStoreInstance.bind(
|
|
4076
|
+
null,
|
|
4077
|
+
fiber,
|
|
4078
|
+
hook,
|
|
4079
|
+
nextSnapshot,
|
|
4080
|
+
getSnapshot
|
|
4081
|
+
),
|
|
4082
|
+
void 0,
|
|
4083
|
+
null
|
|
4084
|
+
);
|
|
4085
|
+
subscribe = workInProgressRoot;
|
|
4086
|
+
if (null === subscribe)
|
|
4087
|
+
throw Error(
|
|
4088
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4089
|
+
);
|
|
4090
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4091
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4092
|
+
}
|
|
4093
|
+
return nextSnapshot;
|
|
4094
|
+
},
|
|
3963
4095
|
useOpaqueIdentifier: function() {
|
|
3964
4096
|
return updateReducer(basicStateReducer)[0];
|
|
3965
4097
|
},
|
|
@@ -3971,6 +4103,7 @@ var ContextOnlyDispatcher = {
|
|
|
3971
4103
|
useContext: readContext,
|
|
3972
4104
|
useEffect: updateEffect,
|
|
3973
4105
|
useImperativeHandle: updateImperativeHandle,
|
|
4106
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3974
4107
|
useLayoutEffect: updateLayoutEffect,
|
|
3975
4108
|
useMemo: updateMemo,
|
|
3976
4109
|
useReducer: rerenderReducer,
|
|
@@ -4003,6 +4136,7 @@ var ContextOnlyDispatcher = {
|
|
|
4003
4136
|
return [isPending, start];
|
|
4004
4137
|
},
|
|
4005
4138
|
useMutableSource: updateMutableSource,
|
|
4139
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4006
4140
|
useOpaqueIdentifier: function() {
|
|
4007
4141
|
return rerenderReducer(basicStateReducer)[0];
|
|
4008
4142
|
},
|
|
@@ -4120,14 +4254,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4120
4254
|
break;
|
|
4121
4255
|
case "collapsed":
|
|
4122
4256
|
lastTailNode = renderState.tail;
|
|
4123
|
-
for (var lastTailNode$
|
|
4124
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4257
|
+
for (var lastTailNode$35 = null; null !== lastTailNode; )
|
|
4258
|
+
null !== lastTailNode.alternate && (lastTailNode$35 = lastTailNode),
|
|
4125
4259
|
(lastTailNode = lastTailNode.sibling);
|
|
4126
|
-
null === lastTailNode$
|
|
4260
|
+
null === lastTailNode$35
|
|
4127
4261
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4128
4262
|
? (renderState.tail = null)
|
|
4129
4263
|
: (renderState.tail.sibling = null)
|
|
4130
|
-
: (lastTailNode$
|
|
4264
|
+
: (lastTailNode$35.sibling = null);
|
|
4131
4265
|
}
|
|
4132
4266
|
}
|
|
4133
4267
|
function bubbleProperties(completedWork) {
|
|
@@ -4137,19 +4271,19 @@ function bubbleProperties(completedWork) {
|
|
|
4137
4271
|
newChildLanes = 0,
|
|
4138
4272
|
subtreeFlags = 0;
|
|
4139
4273
|
if (didBailout)
|
|
4140
|
-
for (var child$
|
|
4141
|
-
(newChildLanes |= child$
|
|
4142
|
-
(subtreeFlags |= child$
|
|
4143
|
-
(subtreeFlags |= child$
|
|
4144
|
-
(child$
|
|
4145
|
-
(child$
|
|
4274
|
+
for (var child$36 = completedWork.child; null !== child$36; )
|
|
4275
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4276
|
+
(subtreeFlags |= child$36.subtreeFlags & 7340032),
|
|
4277
|
+
(subtreeFlags |= child$36.flags & 7340032),
|
|
4278
|
+
(child$36.return = completedWork),
|
|
4279
|
+
(child$36 = child$36.sibling);
|
|
4146
4280
|
else
|
|
4147
|
-
for (child$
|
|
4148
|
-
(newChildLanes |= child$
|
|
4149
|
-
(subtreeFlags |= child$
|
|
4150
|
-
(subtreeFlags |= child$
|
|
4151
|
-
(child$
|
|
4152
|
-
(child$
|
|
4281
|
+
for (child$36 = completedWork.child; null !== child$36; )
|
|
4282
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4283
|
+
(subtreeFlags |= child$36.subtreeFlags),
|
|
4284
|
+
(subtreeFlags |= child$36.flags),
|
|
4285
|
+
(child$36.return = completedWork),
|
|
4286
|
+
(child$36 = child$36.sibling);
|
|
4153
4287
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4154
4288
|
completedWork.childLanes = newChildLanes;
|
|
4155
4289
|
return didBailout;
|
|
@@ -4185,8 +4319,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4185
4319
|
((newProps.context = newProps.pendingContext),
|
|
4186
4320
|
(newProps.pendingContext = null)),
|
|
4187
4321
|
(null !== current && null !== current.child) ||
|
|
4188
|
-
newProps.
|
|
4189
|
-
(workInProgress.flags |=
|
|
4322
|
+
newProps.isDehydrated ||
|
|
4323
|
+
(workInProgress.flags |= 1024),
|
|
4190
4324
|
updateHostContainer(current, workInProgress),
|
|
4191
4325
|
bubbleProperties(workInProgress),
|
|
4192
4326
|
null
|
|
@@ -4203,7 +4337,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4203
4337
|
newProps,
|
|
4204
4338
|
renderLanes
|
|
4205
4339
|
),
|
|
4206
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |=
|
|
4340
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4207
4341
|
else {
|
|
4208
4342
|
if (!newProps) {
|
|
4209
4343
|
if (null === workInProgress.stateNode)
|
|
@@ -4238,7 +4372,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4238
4372
|
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4239
4373
|
workInProgress.stateNode = renderLanes;
|
|
4240
4374
|
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4241
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4375
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4242
4376
|
}
|
|
4243
4377
|
bubbleProperties(workInProgress);
|
|
4244
4378
|
return null;
|
|
@@ -4282,7 +4416,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4282
4416
|
if (
|
|
4283
4417
|
null !== newProps &&
|
|
4284
4418
|
!renderLanes &&
|
|
4285
|
-
((workInProgress.child.flags |=
|
|
4419
|
+
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4286
4420
|
)
|
|
4287
4421
|
if (
|
|
4288
4422
|
(null === current &&
|
|
@@ -4294,7 +4428,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4294
4428
|
else {
|
|
4295
4429
|
if (
|
|
4296
4430
|
0 === workInProgressRootExitStatus ||
|
|
4297
|
-
3 === workInProgressRootExitStatus
|
|
4431
|
+
3 === workInProgressRootExitStatus ||
|
|
4432
|
+
2 === workInProgressRootExitStatus
|
|
4298
4433
|
)
|
|
4299
4434
|
workInProgressRootExitStatus = 4;
|
|
4300
4435
|
null === workInProgressRoot ||
|
|
@@ -4354,7 +4489,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4354
4489
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4355
4490
|
(renderLanes = newProps),
|
|
4356
4491
|
(type = current),
|
|
4357
|
-
(renderLanes.flags &=
|
|
4492
|
+
(renderLanes.flags &= 7340034),
|
|
4358
4493
|
(updatePayload = renderLanes.alternate),
|
|
4359
4494
|
null === updatePayload
|
|
4360
4495
|
? ((renderLanes.childLanes = 0),
|
|
@@ -4458,14 +4593,14 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4458
4593
|
(null !== current.memoizedState) !== renderLanes &&
|
|
4459
4594
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4460
4595
|
23 !== workInProgress.tag &&
|
|
4461
|
-
(workInProgress.flags |=
|
|
4596
|
+
(workInProgress.flags |= 8192),
|
|
4462
4597
|
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4463
4598
|
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4464
4599
|
(bubbleProperties(workInProgress),
|
|
4465
4600
|
23 !== workInProgress.tag &&
|
|
4466
4601
|
workInProgress.subtreeFlags & 6 &&
|
|
4467
4602
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4468
|
-
(workInProgress.flags |=
|
|
4603
|
+
(workInProgress.flags |= 8192))
|
|
4469
4604
|
: bubbleProperties(workInProgress),
|
|
4470
4605
|
null
|
|
4471
4606
|
);
|
|
@@ -4510,7 +4645,7 @@ function updateForwardRef(
|
|
|
4510
4645
|
if (null !== current && !didReceiveUpdate)
|
|
4511
4646
|
return (
|
|
4512
4647
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4513
|
-
(workInProgress.flags &= -
|
|
4648
|
+
(workInProgress.flags &= -2053),
|
|
4514
4649
|
(current.lanes &= ~renderLanes),
|
|
4515
4650
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4516
4651
|
);
|
|
@@ -4584,7 +4719,7 @@ function updateSimpleMemoComponent(
|
|
|
4584
4719
|
current.ref === workInProgress.ref
|
|
4585
4720
|
)
|
|
4586
4721
|
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4587
|
-
0 !== (current.flags &
|
|
4722
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4588
4723
|
else
|
|
4589
4724
|
return (
|
|
4590
4725
|
(workInProgress.lanes = current.lanes),
|
|
@@ -4648,7 +4783,7 @@ function markRef$1(current, workInProgress) {
|
|
|
4648
4783
|
(null === current && null !== ref) ||
|
|
4649
4784
|
(null !== current && current.ref !== ref)
|
|
4650
4785
|
)
|
|
4651
|
-
workInProgress.flags |=
|
|
4786
|
+
workInProgress.flags |= 512;
|
|
4652
4787
|
}
|
|
4653
4788
|
function updateFunctionComponent(
|
|
4654
4789
|
current,
|
|
@@ -4673,7 +4808,7 @@ function updateFunctionComponent(
|
|
|
4673
4808
|
if (null !== current && !didReceiveUpdate)
|
|
4674
4809
|
return (
|
|
4675
4810
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4676
|
-
(workInProgress.flags &= -
|
|
4811
|
+
(workInProgress.flags &= -2053),
|
|
4677
4812
|
(current.lanes &= ~renderLanes),
|
|
4678
4813
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4679
4814
|
);
|
|
@@ -4849,7 +4984,7 @@ function updateClassComponent(
|
|
|
4849
4984
|
"function" === typeof instance.componentDidUpdate &&
|
|
4850
4985
|
(workInProgress.flags |= 4),
|
|
4851
4986
|
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
4852
|
-
(workInProgress.flags |=
|
|
4987
|
+
(workInProgress.flags |= 1024))
|
|
4853
4988
|
: ("function" !== typeof instance.componentDidUpdate ||
|
|
4854
4989
|
(oldProps === current.memoizedProps &&
|
|
4855
4990
|
oldState === current.memoizedState) ||
|
|
@@ -4857,7 +4992,7 @@ function updateClassComponent(
|
|
|
4857
4992
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
4858
4993
|
(oldProps === current.memoizedProps &&
|
|
4859
4994
|
oldState === current.memoizedState) ||
|
|
4860
|
-
(workInProgress.flags |=
|
|
4995
|
+
(workInProgress.flags |= 1024),
|
|
4861
4996
|
(workInProgress.memoizedProps = nextProps),
|
|
4862
4997
|
(workInProgress.memoizedState = newState)),
|
|
4863
4998
|
(instance.props = nextProps),
|
|
@@ -4871,7 +5006,7 @@ function updateClassComponent(
|
|
|
4871
5006
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
4872
5007
|
(oldProps === current.memoizedProps &&
|
|
4873
5008
|
oldState === current.memoizedState) ||
|
|
4874
|
-
(workInProgress.flags |=
|
|
5009
|
+
(workInProgress.flags |= 1024),
|
|
4875
5010
|
(nextProps = !1));
|
|
4876
5011
|
}
|
|
4877
5012
|
return finishClassComponent(
|
|
@@ -5128,7 +5263,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5128
5263
|
(primaryChildren.pendingProps = primaryChildProps),
|
|
5129
5264
|
(workInProgress.deletions = null))
|
|
5130
5265
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
5131
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5266
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 7340032));
|
|
5132
5267
|
null !== currentFallbackChildFragment
|
|
5133
5268
|
? (fallbackChildren = createWorkInProgress(
|
|
5134
5269
|
currentFallbackChildFragment,
|
|
@@ -5356,8 +5491,8 @@ function unwindWork(workInProgress) {
|
|
|
5356
5491
|
case 1:
|
|
5357
5492
|
isContextProvider(workInProgress.type) && popContext();
|
|
5358
5493
|
var flags = workInProgress.flags;
|
|
5359
|
-
return flags &
|
|
5360
|
-
? ((workInProgress.flags = (flags & -
|
|
5494
|
+
return flags & 65536
|
|
5495
|
+
? ((workInProgress.flags = (flags & -65537) | 128), workInProgress)
|
|
5361
5496
|
: null;
|
|
5362
5497
|
case 3:
|
|
5363
5498
|
popHostContainer();
|
|
@@ -5369,7 +5504,7 @@ function unwindWork(workInProgress) {
|
|
|
5369
5504
|
throw Error(
|
|
5370
5505
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5371
5506
|
);
|
|
5372
|
-
workInProgress.flags = (flags & -
|
|
5507
|
+
workInProgress.flags = (flags & -65537) | 128;
|
|
5373
5508
|
return workInProgress;
|
|
5374
5509
|
case 5:
|
|
5375
5510
|
return popHostContext(workInProgress), null;
|
|
@@ -5377,8 +5512,8 @@ function unwindWork(workInProgress) {
|
|
|
5377
5512
|
return (
|
|
5378
5513
|
pop(suspenseStackCursor),
|
|
5379
5514
|
(flags = workInProgress.flags),
|
|
5380
|
-
flags &
|
|
5381
|
-
? ((workInProgress.flags = (flags & -
|
|
5515
|
+
flags & 65536
|
|
5516
|
+
? ((workInProgress.flags = (flags & -65537) | 128), workInProgress)
|
|
5382
5517
|
: null
|
|
5383
5518
|
);
|
|
5384
5519
|
case 19:
|
|
@@ -5415,7 +5550,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5415
5550
|
if (
|
|
5416
5551
|
((root = nextEffect),
|
|
5417
5552
|
(firstChild = root.child),
|
|
5418
|
-
0 !== (root.subtreeFlags &
|
|
5553
|
+
0 !== (root.subtreeFlags & 1028) && null !== firstChild)
|
|
5419
5554
|
)
|
|
5420
5555
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5421
5556
|
else
|
|
@@ -5423,7 +5558,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5423
5558
|
root = nextEffect;
|
|
5424
5559
|
try {
|
|
5425
5560
|
var current = root.alternate;
|
|
5426
|
-
if (0 !== (root.flags &
|
|
5561
|
+
if (0 !== (root.flags & 1024))
|
|
5427
5562
|
switch (root.tag) {
|
|
5428
5563
|
case 0:
|
|
5429
5564
|
case 11:
|
|
@@ -5504,8 +5639,8 @@ function commitHookEffectListMount(tag, finishedWork) {
|
|
|
5504
5639
|
var effect = (finishedWork = finishedWork.next);
|
|
5505
5640
|
do {
|
|
5506
5641
|
if ((effect.tag & tag) === tag) {
|
|
5507
|
-
var create$
|
|
5508
|
-
effect.destroy = create$
|
|
5642
|
+
var create$80 = effect.create;
|
|
5643
|
+
effect.destroy = create$80();
|
|
5509
5644
|
}
|
|
5510
5645
|
effect = effect.next;
|
|
5511
5646
|
} while (effect !== finishedWork);
|
|
@@ -5531,7 +5666,10 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor$jscomp$0) {
|
|
|
5531
5666
|
var _effect = effect,
|
|
5532
5667
|
destroy = _effect.destroy;
|
|
5533
5668
|
_effect = _effect.tag;
|
|
5534
|
-
if (
|
|
5669
|
+
if (
|
|
5670
|
+
void 0 !== destroy &&
|
|
5671
|
+
(0 !== (_effect & 2) || 0 !== (_effect & 4))
|
|
5672
|
+
) {
|
|
5535
5673
|
_effect = current;
|
|
5536
5674
|
var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;
|
|
5537
5675
|
try {
|
|
@@ -5858,6 +5996,8 @@ function commitWork(current, finishedWork) {
|
|
|
5858
5996
|
case 14:
|
|
5859
5997
|
case 15:
|
|
5860
5998
|
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
5999
|
+
commitHookEffectListMount(3, finishedWork);
|
|
6000
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5861
6001
|
return;
|
|
5862
6002
|
case 1:
|
|
5863
6003
|
return;
|
|
@@ -5944,14 +6084,14 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5944
6084
|
}
|
|
5945
6085
|
}
|
|
5946
6086
|
deletions = firstChild.child;
|
|
5947
|
-
if (0 !== (firstChild.subtreeFlags &
|
|
6087
|
+
if (0 !== (firstChild.subtreeFlags & 12854) && null !== deletions)
|
|
5948
6088
|
(deletions.return = firstChild), (nextEffect = deletions);
|
|
5949
6089
|
else
|
|
5950
6090
|
for (; null !== nextEffect; ) {
|
|
5951
6091
|
firstChild = nextEffect;
|
|
5952
6092
|
try {
|
|
5953
6093
|
var flags = firstChild.flags;
|
|
5954
|
-
if (flags &
|
|
6094
|
+
if (flags & 512) {
|
|
5955
6095
|
var current = firstChild.alternate;
|
|
5956
6096
|
if (null !== current) {
|
|
5957
6097
|
var currentRef = current.ref;
|
|
@@ -5961,12 +6101,12 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5961
6101
|
: (currentRef.current = null));
|
|
5962
6102
|
}
|
|
5963
6103
|
}
|
|
5964
|
-
if (flags &
|
|
6104
|
+
if (flags & 8192)
|
|
5965
6105
|
switch (firstChild.tag) {
|
|
5966
6106
|
case 13:
|
|
5967
6107
|
if (null !== firstChild.memoizedState) {
|
|
5968
|
-
var current$
|
|
5969
|
-
if (null === current$
|
|
6108
|
+
var current$85 = firstChild.alternate;
|
|
6109
|
+
if (null === current$85 || null === current$85.memoizedState)
|
|
5970
6110
|
globalMostRecentFallbackTime = now();
|
|
5971
6111
|
}
|
|
5972
6112
|
break;
|
|
@@ -6042,7 +6182,7 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6042
6182
|
}
|
|
6043
6183
|
}
|
|
6044
6184
|
}
|
|
6045
|
-
switch (flags &
|
|
6185
|
+
switch (flags & 4102) {
|
|
6046
6186
|
case 2:
|
|
6047
6187
|
commitPlacement(firstChild);
|
|
6048
6188
|
firstChild.flags &= -3;
|
|
@@ -6052,11 +6192,11 @@ function commitMutationEffects(root, firstChild) {
|
|
|
6052
6192
|
firstChild.flags &= -3;
|
|
6053
6193
|
commitWork(firstChild.alternate, firstChild);
|
|
6054
6194
|
break;
|
|
6055
|
-
case
|
|
6056
|
-
firstChild.flags &= -
|
|
6195
|
+
case 4096:
|
|
6196
|
+
firstChild.flags &= -4097;
|
|
6057
6197
|
break;
|
|
6058
|
-
case
|
|
6059
|
-
firstChild.flags &= -
|
|
6198
|
+
case 4100:
|
|
6199
|
+
firstChild.flags &= -4097;
|
|
6060
6200
|
commitWork(firstChild.alternate, firstChild);
|
|
6061
6201
|
break;
|
|
6062
6202
|
case 4:
|
|
@@ -6079,20 +6219,20 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6079
6219
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
6080
6220
|
var fiber = nextEffect,
|
|
6081
6221
|
firstChild = fiber.child;
|
|
6082
|
-
if (0 !== (fiber.subtreeFlags &
|
|
6222
|
+
if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild)
|
|
6083
6223
|
(firstChild.return = fiber), (nextEffect = firstChild);
|
|
6084
6224
|
else
|
|
6085
6225
|
for (fiber = finishedWork; null !== nextEffect; ) {
|
|
6086
6226
|
firstChild = nextEffect;
|
|
6087
|
-
if (0 !== (firstChild.flags &
|
|
6227
|
+
if (0 !== (firstChild.flags & 8772)) {
|
|
6088
6228
|
var current = firstChild.alternate;
|
|
6089
6229
|
try {
|
|
6090
|
-
if (0 !== (firstChild.flags &
|
|
6230
|
+
if (0 !== (firstChild.flags & 8772))
|
|
6091
6231
|
switch (firstChild.tag) {
|
|
6092
6232
|
case 0:
|
|
6093
6233
|
case 11:
|
|
6094
6234
|
case 15:
|
|
6095
|
-
commitHookEffectListMount(
|
|
6235
|
+
commitHookEffectListMount(5, firstChild);
|
|
6096
6236
|
break;
|
|
6097
6237
|
case 1:
|
|
6098
6238
|
var instance = firstChild.stateNode;
|
|
@@ -6117,8 +6257,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6117
6257
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
6118
6258
|
break;
|
|
6119
6259
|
case 3:
|
|
6120
|
-
var updateQueue$
|
|
6121
|
-
if (null !== updateQueue$
|
|
6260
|
+
var updateQueue$81 = firstChild.updateQueue;
|
|
6261
|
+
if (null !== updateQueue$81) {
|
|
6122
6262
|
current = null;
|
|
6123
6263
|
if (null !== firstChild.child)
|
|
6124
6264
|
switch (firstChild.child.tag) {
|
|
@@ -6128,7 +6268,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6128
6268
|
case 1:
|
|
6129
6269
|
current = firstChild.child.stateNode;
|
|
6130
6270
|
}
|
|
6131
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6271
|
+
commitUpdateQueue(firstChild, updateQueue$81, current);
|
|
6132
6272
|
}
|
|
6133
6273
|
break;
|
|
6134
6274
|
case 5:
|
|
@@ -6152,7 +6292,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6152
6292
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6153
6293
|
);
|
|
6154
6294
|
}
|
|
6155
|
-
if (firstChild.flags &
|
|
6295
|
+
if (firstChild.flags & 512) {
|
|
6156
6296
|
current = void 0;
|
|
6157
6297
|
var ref = firstChild.ref;
|
|
6158
6298
|
if (null !== ref) {
|
|
@@ -6356,15 +6496,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6356
6496
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6357
6497
|
);
|
|
6358
6498
|
if (0 === lanes) return null;
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6499
|
+
if (
|
|
6500
|
+
includesBlockingLane(root, lanes) ||
|
|
6501
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6502
|
+
didTimeout
|
|
6503
|
+
)
|
|
6504
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6505
|
+
else {
|
|
6366
6506
|
didTimeout = lanes;
|
|
6367
|
-
|
|
6507
|
+
var prevExecutionContext = executionContext;
|
|
6368
6508
|
executionContext |= 2;
|
|
6369
6509
|
var prevDispatcher = pushDispatcher();
|
|
6370
6510
|
if (
|
|
@@ -6383,30 +6523,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6383
6523
|
while (1);
|
|
6384
6524
|
resetContextDependencies();
|
|
6385
6525
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6386
|
-
executionContext =
|
|
6526
|
+
executionContext = prevExecutionContext;
|
|
6387
6527
|
null !== workInProgress
|
|
6388
6528
|
? (didTimeout = 0)
|
|
6389
6529
|
: ((workInProgressRoot = null),
|
|
6390
6530
|
(workInProgressRootRenderLanes = 0),
|
|
6391
6531
|
(didTimeout = workInProgressRootExitStatus));
|
|
6392
|
-
}
|
|
6532
|
+
}
|
|
6393
6533
|
if (0 !== didTimeout) {
|
|
6394
6534
|
2 === didTimeout &&
|
|
6395
|
-
((
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
0 !== prevDispatcher &&
|
|
6400
|
-
((lanes = prevDispatcher),
|
|
6401
|
-
(didTimeout = renderRootSync(root, prevDispatcher))),
|
|
6402
|
-
(executionContext = JSCompiler_inline_result));
|
|
6535
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6536
|
+
0 !== prevExecutionContext &&
|
|
6537
|
+
((lanes = prevExecutionContext),
|
|
6538
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6403
6539
|
if (1 === didTimeout)
|
|
6404
6540
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6405
6541
|
prepareFreshStack(root, 0),
|
|
6406
6542
|
markRootSuspended$1(root, lanes),
|
|
6407
6543
|
ensureRootIsScheduled(root, now()),
|
|
6408
6544
|
originalCallbackNode);
|
|
6409
|
-
|
|
6545
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6546
|
+
prevExecutionContext = root.current.alternate;
|
|
6547
|
+
if (
|
|
6548
|
+
prevDispatcher &&
|
|
6549
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6550
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6551
|
+
2 === didTimeout &&
|
|
6552
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6553
|
+
0 !== prevDispatcher &&
|
|
6554
|
+
((lanes = prevDispatcher),
|
|
6555
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6556
|
+
1 === didTimeout)
|
|
6557
|
+
)
|
|
6558
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6559
|
+
prepareFreshStack(root, 0),
|
|
6560
|
+
markRootSuspended$1(root, lanes),
|
|
6561
|
+
ensureRootIsScheduled(root, now()),
|
|
6562
|
+
originalCallbackNode);
|
|
6563
|
+
root.finishedWork = prevExecutionContext;
|
|
6410
6564
|
root.finishedLanes = lanes;
|
|
6411
6565
|
switch (didTimeout) {
|
|
6412
6566
|
case 0:
|
|
@@ -6423,10 +6577,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6423
6577
|
10 < didTimeout)
|
|
6424
6578
|
) {
|
|
6425
6579
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6426
|
-
|
|
6427
|
-
if ((
|
|
6580
|
+
prevExecutionContext = root.suspendedLanes;
|
|
6581
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6428
6582
|
requestEventTime();
|
|
6429
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
6583
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6430
6584
|
break;
|
|
6431
6585
|
}
|
|
6432
6586
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6441,15 +6595,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6441
6595
|
markRootSuspended$1(root, lanes);
|
|
6442
6596
|
if ((lanes & 4194240) === lanes) break;
|
|
6443
6597
|
didTimeout = root.eventTimes;
|
|
6444
|
-
for (
|
|
6598
|
+
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6445
6599
|
var index$5 = 31 - clz32(lanes);
|
|
6446
6600
|
prevDispatcher = 1 << index$5;
|
|
6447
6601
|
index$5 = didTimeout[index$5];
|
|
6448
|
-
index$5 >
|
|
6449
|
-
(JSCompiler_inline_result = index$5);
|
|
6602
|
+
index$5 > prevExecutionContext && (prevExecutionContext = index$5);
|
|
6450
6603
|
lanes &= ~prevDispatcher;
|
|
6451
6604
|
}
|
|
6452
|
-
lanes =
|
|
6605
|
+
lanes = prevExecutionContext;
|
|
6453
6606
|
lanes = now() - lanes;
|
|
6454
6607
|
lanes =
|
|
6455
6608
|
(120 > lanes
|
|
@@ -6486,6 +6639,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6486
6639
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6487
6640
|
: null;
|
|
6488
6641
|
}
|
|
6642
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6643
|
+
var prevExecutionContext = executionContext;
|
|
6644
|
+
executionContext |= 8;
|
|
6645
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
6646
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6647
|
+
executionContext = prevExecutionContext;
|
|
6648
|
+
return root;
|
|
6649
|
+
}
|
|
6650
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6651
|
+
for (var node = finishedWork; ; ) {
|
|
6652
|
+
if (node.flags & 16384) {
|
|
6653
|
+
var updateQueue = node.updateQueue;
|
|
6654
|
+
if (
|
|
6655
|
+
null !== updateQueue &&
|
|
6656
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6657
|
+
)
|
|
6658
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6659
|
+
var check = updateQueue[i],
|
|
6660
|
+
getSnapshot = check.getSnapshot;
|
|
6661
|
+
check = check.value;
|
|
6662
|
+
try {
|
|
6663
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6664
|
+
} catch (error) {
|
|
6665
|
+
return !1;
|
|
6666
|
+
}
|
|
6667
|
+
}
|
|
6668
|
+
}
|
|
6669
|
+
updateQueue = node.child;
|
|
6670
|
+
if (node.subtreeFlags & 16384 && null !== updateQueue)
|
|
6671
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6672
|
+
else {
|
|
6673
|
+
if (node === finishedWork) break;
|
|
6674
|
+
for (; null === node.sibling; ) {
|
|
6675
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6676
|
+
node = node.return;
|
|
6677
|
+
}
|
|
6678
|
+
node.sibling.return = node.return;
|
|
6679
|
+
node = node.sibling;
|
|
6680
|
+
}
|
|
6681
|
+
}
|
|
6682
|
+
return !0;
|
|
6683
|
+
}
|
|
6489
6684
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6490
6685
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6491
6686
|
suspendedLanes &= ~workInProgressRootUpdatedLanes;
|
|
@@ -6508,7 +6703,7 @@ function performSyncWorkOnRoot(root) {
|
|
|
6508
6703
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6509
6704
|
var prevExecutionContext = executionContext;
|
|
6510
6705
|
executionContext |= 8;
|
|
6511
|
-
root.
|
|
6706
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
6512
6707
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6513
6708
|
0 !== errorRetryLanes &&
|
|
6514
6709
|
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
|
|
@@ -6633,71 +6828,83 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6633
6828
|
sourceFiber = erroredWork,
|
|
6634
6829
|
value = thrownValue;
|
|
6635
6830
|
thrownValue = workInProgressRootRenderLanes;
|
|
6636
|
-
sourceFiber.flags |=
|
|
6831
|
+
sourceFiber.flags |= 32768;
|
|
6637
6832
|
if (
|
|
6638
6833
|
null !== value &&
|
|
6639
6834
|
"object" === typeof value &&
|
|
6640
6835
|
"function" === typeof value.then
|
|
6641
6836
|
) {
|
|
6642
6837
|
var wakeable = value,
|
|
6643
|
-
|
|
6838
|
+
sourceFiber$jscomp$0 = sourceFiber,
|
|
6839
|
+
tag = sourceFiber$jscomp$0.tag;
|
|
6644
6840
|
if (
|
|
6645
|
-
0 === (sourceFiber.mode & 1) &&
|
|
6841
|
+
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
6646
6842
|
(0 === tag || 11 === tag || 15 === tag)
|
|
6647
6843
|
) {
|
|
6648
|
-
var currentSource = sourceFiber.alternate;
|
|
6844
|
+
var currentSource = sourceFiber$jscomp$0.alternate;
|
|
6649
6845
|
currentSource
|
|
6650
|
-
? ((sourceFiber.updateQueue = currentSource.updateQueue),
|
|
6651
|
-
(sourceFiber.memoizedState =
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6846
|
+
? ((sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue),
|
|
6847
|
+
(sourceFiber$jscomp$0.memoizedState =
|
|
6848
|
+
currentSource.memoizedState),
|
|
6849
|
+
(sourceFiber$jscomp$0.lanes = currentSource.lanes))
|
|
6850
|
+
: ((sourceFiber$jscomp$0.updateQueue = null),
|
|
6851
|
+
(sourceFiber$jscomp$0.memoizedState = null));
|
|
6655
6852
|
}
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6853
|
+
b: {
|
|
6854
|
+
sourceFiber$jscomp$0 = returnFiber;
|
|
6855
|
+
var sourceFiber$jscomp$1 = sourceFiber,
|
|
6856
|
+
rootRenderLanes = thrownValue,
|
|
6857
|
+
hasInvisibleParentBoundary =
|
|
6858
|
+
0 !== (suspenseStackCursor.current & 1),
|
|
6859
|
+
node = sourceFiber$jscomp$0;
|
|
6860
|
+
do {
|
|
6861
|
+
var JSCompiler_temp;
|
|
6862
|
+
if ((JSCompiler_temp = 13 === node.tag)) {
|
|
6863
|
+
var nextState = node.memoizedState;
|
|
6864
|
+
JSCompiler_temp =
|
|
6865
|
+
null !== nextState
|
|
6866
|
+
? null !== nextState.dehydrated
|
|
6867
|
+
? !0
|
|
6868
|
+
: !1
|
|
6869
|
+
: !0 !== node.memoizedProps.unstable_avoidThisFallback
|
|
6666
6870
|
? !0
|
|
6667
|
-
:
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
}
|
|
6675
|
-
if (JSCompiler_temp) {
|
|
6676
|
-
var wakeables = workInProgress$32.updateQueue;
|
|
6677
|
-
if (null === wakeables) {
|
|
6678
|
-
var updateQueue = new Set();
|
|
6679
|
-
updateQueue.add(wakeable);
|
|
6680
|
-
workInProgress$32.updateQueue = updateQueue;
|
|
6681
|
-
} else wakeables.add(wakeable);
|
|
6682
|
-
if (
|
|
6683
|
-
0 === (workInProgress$32.mode & 1) &&
|
|
6684
|
-
workInProgress$32 !== returnFiber
|
|
6685
|
-
) {
|
|
6686
|
-
workInProgress$32.flags |= 128;
|
|
6687
|
-
sourceFiber.flags |= 32768;
|
|
6688
|
-
sourceFiber.flags &= -10053;
|
|
6689
|
-
if (1 === sourceFiber.tag)
|
|
6690
|
-
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6871
|
+
: hasInvisibleParentBoundary
|
|
6872
|
+
? !1
|
|
6873
|
+
: !0;
|
|
6874
|
+
}
|
|
6875
|
+
if (JSCompiler_temp) {
|
|
6876
|
+
if (0 === (node.mode & 1)) {
|
|
6877
|
+
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
|
|
6691
6878
|
else {
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6879
|
+
node.flags |= 128;
|
|
6880
|
+
sourceFiber$jscomp$1.flags |= 131072;
|
|
6881
|
+
sourceFiber$jscomp$1.flags &= -52805;
|
|
6882
|
+
if (1 === sourceFiber$jscomp$1.tag)
|
|
6883
|
+
if (null === sourceFiber$jscomp$1.alternate)
|
|
6884
|
+
sourceFiber$jscomp$1.tag = 17;
|
|
6885
|
+
else {
|
|
6886
|
+
var update = createUpdate(-1, 1);
|
|
6887
|
+
update.tag = 2;
|
|
6888
|
+
enqueueUpdate(sourceFiber$jscomp$1, update);
|
|
6889
|
+
}
|
|
6890
|
+
sourceFiber$jscomp$1.lanes |= 1;
|
|
6695
6891
|
}
|
|
6696
|
-
|
|
6697
|
-
|
|
6892
|
+
var suspenseBoundary = node;
|
|
6893
|
+
break b;
|
|
6894
|
+
}
|
|
6895
|
+
node.flags |= 65536;
|
|
6896
|
+
node.lanes = rootRenderLanes;
|
|
6897
|
+
suspenseBoundary = node;
|
|
6898
|
+
break b;
|
|
6698
6899
|
}
|
|
6699
|
-
|
|
6700
|
-
|
|
6900
|
+
node = node.return;
|
|
6901
|
+
} while (null !== node);
|
|
6902
|
+
suspenseBoundary = null;
|
|
6903
|
+
}
|
|
6904
|
+
if (null !== suspenseBoundary) {
|
|
6905
|
+
value = void 0;
|
|
6906
|
+
sourceFiber = suspenseBoundary;
|
|
6907
|
+
if (sourceFiber.mode & 1) {
|
|
6701
6908
|
var pingCache = root.pingCache;
|
|
6702
6909
|
null === pingCache
|
|
6703
6910
|
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
|
|
@@ -6706,71 +6913,74 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6706
6913
|
: ((value = pingCache.get(wakeable)),
|
|
6707
6914
|
void 0 === value &&
|
|
6708
6915
|
((value = new Set()), pingCache.set(wakeable, value)));
|
|
6709
|
-
if (!value.has(
|
|
6710
|
-
value.add(
|
|
6916
|
+
if (!value.has(thrownValue)) {
|
|
6917
|
+
value.add(thrownValue);
|
|
6711
6918
|
var ping = pingSuspendedRoot.bind(
|
|
6712
6919
|
null,
|
|
6713
6920
|
root,
|
|
6714
6921
|
wakeable,
|
|
6715
|
-
|
|
6922
|
+
thrownValue
|
|
6716
6923
|
);
|
|
6717
6924
|
wakeable.then(ping, ping);
|
|
6718
6925
|
}
|
|
6719
|
-
workInProgress$32.flags |= 16384;
|
|
6720
|
-
workInProgress$32.lanes = thrownValue;
|
|
6721
|
-
break a;
|
|
6722
6926
|
}
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6927
|
+
var wakeables = sourceFiber.updateQueue;
|
|
6928
|
+
if (null === wakeables) {
|
|
6929
|
+
var updateQueue = new Set();
|
|
6930
|
+
updateQueue.add(wakeable);
|
|
6931
|
+
sourceFiber.updateQueue = updateQueue;
|
|
6932
|
+
} else wakeables.add(wakeable);
|
|
6933
|
+
break a;
|
|
6934
|
+
} else
|
|
6935
|
+
value = Error(
|
|
6936
|
+
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
6937
|
+
" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."
|
|
6938
|
+
);
|
|
6729
6939
|
}
|
|
6730
|
-
|
|
6940
|
+
4 !== workInProgressRootExitStatus &&
|
|
6731
6941
|
(workInProgressRootExitStatus = 2);
|
|
6732
6942
|
value = createCapturedValue(value, sourceFiber);
|
|
6733
|
-
|
|
6943
|
+
root = returnFiber;
|
|
6734
6944
|
do {
|
|
6735
|
-
switch (
|
|
6945
|
+
switch (root.tag) {
|
|
6736
6946
|
case 3:
|
|
6737
|
-
|
|
6738
|
-
|
|
6947
|
+
wakeable = value;
|
|
6948
|
+
root.flags |= 65536;
|
|
6739
6949
|
thrownValue &= -thrownValue;
|
|
6740
|
-
|
|
6741
|
-
var update$
|
|
6742
|
-
workInProgress$32,
|
|
6950
|
+
root.lanes |= thrownValue;
|
|
6951
|
+
var update$jscomp$0 = createRootErrorUpdate(
|
|
6743
6952
|
root,
|
|
6953
|
+
wakeable,
|
|
6744
6954
|
thrownValue
|
|
6745
6955
|
);
|
|
6746
|
-
enqueueCapturedUpdate(
|
|
6956
|
+
enqueueCapturedUpdate(root, update$jscomp$0);
|
|
6747
6957
|
break a;
|
|
6748
6958
|
case 1:
|
|
6749
|
-
|
|
6750
|
-
var ctor =
|
|
6751
|
-
instance =
|
|
6959
|
+
wakeable = value;
|
|
6960
|
+
var ctor = root.type,
|
|
6961
|
+
instance = root.stateNode;
|
|
6752
6962
|
if (
|
|
6753
|
-
0 === (
|
|
6963
|
+
0 === (root.flags & 128) &&
|
|
6754
6964
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
6755
6965
|
(null !== instance &&
|
|
6756
6966
|
"function" === typeof instance.componentDidCatch &&
|
|
6757
6967
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
6758
6968
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
6759
6969
|
) {
|
|
6760
|
-
|
|
6970
|
+
root.flags |= 65536;
|
|
6761
6971
|
thrownValue &= -thrownValue;
|
|
6762
|
-
|
|
6763
|
-
var update$
|
|
6764
|
-
workInProgress$32,
|
|
6972
|
+
root.lanes |= thrownValue;
|
|
6973
|
+
var update$33 = createClassErrorUpdate(
|
|
6765
6974
|
root,
|
|
6975
|
+
wakeable,
|
|
6766
6976
|
thrownValue
|
|
6767
6977
|
);
|
|
6768
|
-
enqueueCapturedUpdate(
|
|
6978
|
+
enqueueCapturedUpdate(root, update$33);
|
|
6769
6979
|
break a;
|
|
6770
6980
|
}
|
|
6771
6981
|
}
|
|
6772
|
-
|
|
6773
|
-
} while (null !==
|
|
6982
|
+
root = root.return;
|
|
6983
|
+
} while (null !== root);
|
|
6774
6984
|
}
|
|
6775
6985
|
completeUnitOfWork(erroredWork);
|
|
6776
6986
|
} catch (yetAnotherThrownValue) {
|
|
@@ -6831,7 +7041,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6831
7041
|
do {
|
|
6832
7042
|
var current = completedWork.alternate;
|
|
6833
7043
|
unitOfWork = completedWork.return;
|
|
6834
|
-
if (0 === (completedWork.flags &
|
|
7044
|
+
if (0 === (completedWork.flags & 32768)) {
|
|
6835
7045
|
if (
|
|
6836
7046
|
((current = completeWork(current, completedWork, subtreeRenderLanes)),
|
|
6837
7047
|
null !== current)
|
|
@@ -6842,12 +7052,12 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6842
7052
|
} else {
|
|
6843
7053
|
current = unwindWork(completedWork);
|
|
6844
7054
|
if (null !== current) {
|
|
6845
|
-
current.flags &=
|
|
7055
|
+
current.flags &= 32767;
|
|
6846
7056
|
workInProgress = current;
|
|
6847
7057
|
return;
|
|
6848
7058
|
}
|
|
6849
7059
|
null !== unitOfWork &&
|
|
6850
|
-
((unitOfWork.flags |=
|
|
7060
|
+
((unitOfWork.flags |= 32768),
|
|
6851
7061
|
(unitOfWork.subtreeFlags = 0),
|
|
6852
7062
|
(unitOfWork.deletions = null));
|
|
6853
7063
|
}
|
|
@@ -6894,16 +7104,16 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6894
7104
|
root === workInProgressRoot &&
|
|
6895
7105
|
((workInProgress = workInProgressRoot = null),
|
|
6896
7106
|
(workInProgressRootRenderLanes = 0));
|
|
6897
|
-
(0 === (finishedWork.subtreeFlags &
|
|
6898
|
-
0 === (finishedWork.flags &
|
|
7107
|
+
(0 === (finishedWork.subtreeFlags & 2064) &&
|
|
7108
|
+
0 === (finishedWork.flags & 2064)) ||
|
|
6899
7109
|
rootDoesHavePassiveEffects ||
|
|
6900
7110
|
((rootDoesHavePassiveEffects = !0),
|
|
6901
7111
|
scheduleCallback$1(NormalPriority, function() {
|
|
6902
7112
|
flushPassiveEffects();
|
|
6903
7113
|
return null;
|
|
6904
7114
|
}));
|
|
6905
|
-
remainingLanes = 0 !== (finishedWork.flags &
|
|
6906
|
-
if (0 !== (finishedWork.subtreeFlags &
|
|
7115
|
+
remainingLanes = 0 !== (finishedWork.flags & 15990);
|
|
7116
|
+
if (0 !== (finishedWork.subtreeFlags & 15990) || remainingLanes) {
|
|
6907
7117
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
6908
7118
|
ReactCurrentBatchConfig$2.transition = 0;
|
|
6909
7119
|
var previousPriority = currentUpdatePriority;
|
|
@@ -6926,11 +7136,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6926
7136
|
(pendingPassiveEffectsLanes = lanes));
|
|
6927
7137
|
remainingLanes = root.pendingLanes;
|
|
6928
7138
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
6929
|
-
0 !== (remainingLanes & 1)
|
|
6930
|
-
? root === rootWithNestedUpdates
|
|
6931
|
-
? nestedUpdateCount++
|
|
6932
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
6933
|
-
: (nestedUpdateCount = 0);
|
|
6934
7139
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
6935
7140
|
ensureRootIsScheduled(root, now());
|
|
6936
7141
|
if (hasUncaughtError)
|
|
@@ -6941,6 +7146,12 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6941
7146
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
6942
7147
|
0 !== root.tag &&
|
|
6943
7148
|
flushPassiveEffects();
|
|
7149
|
+
remainingLanes = root.pendingLanes;
|
|
7150
|
+
0 !== (remainingLanes & 1)
|
|
7151
|
+
? root === rootWithNestedUpdates
|
|
7152
|
+
? nestedUpdateCount++
|
|
7153
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
7154
|
+
: (nestedUpdateCount = 0);
|
|
6944
7155
|
flushSyncCallbacks();
|
|
6945
7156
|
return null;
|
|
6946
7157
|
}
|
|
@@ -6976,7 +7187,7 @@ function flushPassiveEffects() {
|
|
|
6976
7187
|
case 0:
|
|
6977
7188
|
case 11:
|
|
6978
7189
|
case 15:
|
|
6979
|
-
commitHookEffectListUnmount(
|
|
7190
|
+
commitHookEffectListUnmount(8, fiber$jscomp$0, fiber);
|
|
6980
7191
|
}
|
|
6981
7192
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
6982
7193
|
if (null !== child$jscomp$0)
|
|
@@ -7016,17 +7227,17 @@ function flushPassiveEffects() {
|
|
|
7016
7227
|
nextEffect = fiber;
|
|
7017
7228
|
}
|
|
7018
7229
|
}
|
|
7019
|
-
if (0 !== (fiber.subtreeFlags &
|
|
7230
|
+
if (0 !== (fiber.subtreeFlags & 2064) && null !== child)
|
|
7020
7231
|
(child.return = fiber), (nextEffect = child);
|
|
7021
7232
|
else
|
|
7022
7233
|
b: for (; null !== nextEffect; ) {
|
|
7023
7234
|
fiber = nextEffect;
|
|
7024
|
-
if (0 !== (fiber.flags &
|
|
7235
|
+
if (0 !== (fiber.flags & 2048))
|
|
7025
7236
|
switch (fiber.tag) {
|
|
7026
7237
|
case 0:
|
|
7027
7238
|
case 11:
|
|
7028
7239
|
case 15:
|
|
7029
|
-
commitHookEffectListUnmount(
|
|
7240
|
+
commitHookEffectListUnmount(9, fiber, fiber.return);
|
|
7030
7241
|
}
|
|
7031
7242
|
var sibling$jscomp$0 = fiber.sibling;
|
|
7032
7243
|
if (null !== sibling$jscomp$0) {
|
|
@@ -7041,18 +7252,18 @@ function flushPassiveEffects() {
|
|
|
7041
7252
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
7042
7253
|
child = nextEffect;
|
|
7043
7254
|
var firstChild = child.child;
|
|
7044
|
-
if (0 !== (child.subtreeFlags &
|
|
7255
|
+
if (0 !== (child.subtreeFlags & 2064) && null !== firstChild)
|
|
7045
7256
|
(firstChild.return = child), (nextEffect = firstChild);
|
|
7046
7257
|
else
|
|
7047
7258
|
b: for (child = finishedWork; null !== nextEffect; ) {
|
|
7048
7259
|
deletions = nextEffect;
|
|
7049
|
-
if (0 !== (deletions.flags &
|
|
7260
|
+
if (0 !== (deletions.flags & 2048))
|
|
7050
7261
|
try {
|
|
7051
7262
|
switch (deletions.tag) {
|
|
7052
7263
|
case 0:
|
|
7053
7264
|
case 11:
|
|
7054
7265
|
case 15:
|
|
7055
|
-
commitHookEffectListMount(
|
|
7266
|
+
commitHookEffectListMount(9, deletions);
|
|
7056
7267
|
}
|
|
7057
7268
|
} catch (error) {
|
|
7058
7269
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -7198,7 +7409,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7198
7409
|
renderLanes
|
|
7199
7410
|
)
|
|
7200
7411
|
);
|
|
7201
|
-
didReceiveUpdate = 0 !== (current.flags &
|
|
7412
|
+
didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
|
|
7202
7413
|
}
|
|
7203
7414
|
else didReceiveUpdate = !1;
|
|
7204
7415
|
workInProgress.lanes = 0;
|
|
@@ -7664,7 +7875,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7664
7875
|
(workInProgress.flags = 0),
|
|
7665
7876
|
(workInProgress.subtreeFlags = 0),
|
|
7666
7877
|
(workInProgress.deletions = null));
|
|
7667
|
-
workInProgress.flags = current.flags &
|
|
7878
|
+
workInProgress.flags = current.flags & 7340032;
|
|
7668
7879
|
workInProgress.childLanes = current.childLanes;
|
|
7669
7880
|
workInProgress.lanes = current.lanes;
|
|
7670
7881
|
workInProgress.child = current.child;
|
|
@@ -7757,8 +7968,7 @@ function createFiberFromTypeAndProps(
|
|
|
7757
7968
|
}
|
|
7758
7969
|
throw Error(
|
|
7759
7970
|
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
7760
|
-
(null == type ? type : typeof type) +
|
|
7761
|
-
"."
|
|
7971
|
+
((null == type ? type : typeof type) + ".")
|
|
7762
7972
|
);
|
|
7763
7973
|
}
|
|
7764
7974
|
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
@@ -7804,7 +8014,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
7804
8014
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
7805
8015
|
this.timeoutHandle = -1;
|
|
7806
8016
|
this.pendingContext = this.context = null;
|
|
7807
|
-
this.
|
|
8017
|
+
this.isDehydrated = hydrate;
|
|
7808
8018
|
this.callbackNode = null;
|
|
7809
8019
|
this.callbackPriority = 0;
|
|
7810
8020
|
this.eventTimes = createLaneMap(0);
|
|
@@ -7828,9 +8038,9 @@ function findHostInstance(component) {
|
|
|
7828
8038
|
if (void 0 === fiber) {
|
|
7829
8039
|
if ("function" === typeof component.render)
|
|
7830
8040
|
throw Error("Unable to find node on an unmounted component.");
|
|
8041
|
+
component = Object.keys(component).join(",");
|
|
7831
8042
|
throw Error(
|
|
7832
|
-
"Argument appears to not be a ReactComponent. Keys: " +
|
|
7833
|
-
Object.keys(component)
|
|
8043
|
+
"Argument appears to not be a ReactComponent. Keys: " + component
|
|
7834
8044
|
);
|
|
7835
8045
|
}
|
|
7836
8046
|
component = findCurrentHostFiber(fiber);
|
|
@@ -8021,10 +8231,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8021
8231
|
}
|
|
8022
8232
|
};
|
|
8023
8233
|
var roots = new Map(),
|
|
8024
|
-
devToolsConfig$jscomp$
|
|
8234
|
+
devToolsConfig$jscomp$inline_976 = {
|
|
8025
8235
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8026
8236
|
bundleType: 0,
|
|
8027
|
-
version: "18.0.0-
|
|
8237
|
+
version: "18.0.0-afcb9cdc9-20211008",
|
|
8028
8238
|
rendererPackageName: "react-native-renderer",
|
|
8029
8239
|
rendererConfig: {
|
|
8030
8240
|
getInspectorDataForViewTag: function() {
|
|
@@ -8039,11 +8249,11 @@ var roots = new Map(),
|
|
|
8039
8249
|
}.bind(null, findNodeHandle)
|
|
8040
8250
|
}
|
|
8041
8251
|
};
|
|
8042
|
-
var internals$jscomp$
|
|
8043
|
-
bundleType: devToolsConfig$jscomp$
|
|
8044
|
-
version: devToolsConfig$jscomp$
|
|
8045
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8046
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8252
|
+
var internals$jscomp$inline_1240 = {
|
|
8253
|
+
bundleType: devToolsConfig$jscomp$inline_976.bundleType,
|
|
8254
|
+
version: devToolsConfig$jscomp$inline_976.version,
|
|
8255
|
+
rendererPackageName: devToolsConfig$jscomp$inline_976.rendererPackageName,
|
|
8256
|
+
rendererConfig: devToolsConfig$jscomp$inline_976.rendererConfig,
|
|
8047
8257
|
overrideHookState: null,
|
|
8048
8258
|
overrideHookStateDeletePath: null,
|
|
8049
8259
|
overrideHookStateRenamePath: null,
|
|
@@ -8059,26 +8269,26 @@ var internals$jscomp$inline_1237 = {
|
|
|
8059
8269
|
return null === fiber ? null : fiber.stateNode;
|
|
8060
8270
|
},
|
|
8061
8271
|
findFiberByHostInstance:
|
|
8062
|
-
devToolsConfig$jscomp$
|
|
8272
|
+
devToolsConfig$jscomp$inline_976.findFiberByHostInstance ||
|
|
8063
8273
|
emptyFindFiberByHostInstance,
|
|
8064
8274
|
findHostInstancesForRefresh: null,
|
|
8065
8275
|
scheduleRefresh: null,
|
|
8066
8276
|
scheduleRoot: null,
|
|
8067
8277
|
setRefreshHandler: null,
|
|
8068
8278
|
getCurrentFiber: null,
|
|
8069
|
-
reconcilerVersion: "18.0.0-
|
|
8279
|
+
reconcilerVersion: "18.0.0-afcb9cdc9-20211008"
|
|
8070
8280
|
};
|
|
8071
8281
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8072
|
-
var hook$jscomp$
|
|
8282
|
+
var hook$jscomp$inline_1241 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8073
8283
|
if (
|
|
8074
|
-
!hook$jscomp$
|
|
8075
|
-
hook$jscomp$
|
|
8284
|
+
!hook$jscomp$inline_1241.isDisabled &&
|
|
8285
|
+
hook$jscomp$inline_1241.supportsFiber
|
|
8076
8286
|
)
|
|
8077
8287
|
try {
|
|
8078
|
-
(rendererID = hook$jscomp$
|
|
8079
|
-
internals$jscomp$
|
|
8288
|
+
(rendererID = hook$jscomp$inline_1241.inject(
|
|
8289
|
+
internals$jscomp$inline_1240
|
|
8080
8290
|
)),
|
|
8081
|
-
(injectedHook = hook$jscomp$
|
|
8291
|
+
(injectedHook = hook$jscomp$inline_1241);
|
|
8082
8292
|
} catch (err) {}
|
|
8083
8293
|
}
|
|
8084
8294
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|