@office-iss/react-native-win32 0.66.2 → 0.67.0-preview.3
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 +6 -1
- package/CHANGELOG.json +209 -33
- package/CHANGELOG.md +96 -20
- 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/Pressable/Pressable.win32.js +384 -0
- 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 +59 -3
- package/Libraries/Components/View/ViewAccessibility.js +1 -1
- package/Libraries/Components/View/ViewPropTypes.win32.js +546 -0
- 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 +2 -2
- 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/HoverState.win32.js +60 -0
- package/Libraries/Pressability/Pressability.js +13 -13
- package/Libraries/Pressability/Pressability.win32.js +962 -0
- 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/Types/CoreEventTypes.win32.js +191 -0
- 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/setup.js +5 -3
- package/overrides.json +42 -13
- package/package.json +20 -18
- 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<<fb4d870eef7bc67bee589431bb9294f7>>
|
|
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_230 = {
|
|
934
930
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
935
931
|
ReactNativeBridgeEventPlugin: {
|
|
936
932
|
eventTypes: {},
|
|
@@ -965,34 +961,33 @@ var injectedNamesToPlugins$jscomp$inline_232 = {
|
|
|
965
961
|
}
|
|
966
962
|
}
|
|
967
963
|
},
|
|
968
|
-
isOrderingDirty$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
970
|
-
for (pluginName$jscomp$
|
|
964
|
+
isOrderingDirty$jscomp$inline_231 = !1,
|
|
965
|
+
pluginName$jscomp$inline_232;
|
|
966
|
+
for (pluginName$jscomp$inline_232 in injectedNamesToPlugins$jscomp$inline_230)
|
|
971
967
|
if (
|
|
972
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
-
pluginName$jscomp$
|
|
968
|
+
injectedNamesToPlugins$jscomp$inline_230.hasOwnProperty(
|
|
969
|
+
pluginName$jscomp$inline_232
|
|
974
970
|
)
|
|
975
971
|
) {
|
|
976
|
-
var pluginModule$jscomp$
|
|
977
|
-
injectedNamesToPlugins$jscomp$
|
|
972
|
+
var pluginModule$jscomp$inline_233 =
|
|
973
|
+
injectedNamesToPlugins$jscomp$inline_230[pluginName$jscomp$inline_232];
|
|
978
974
|
if (
|
|
979
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
980
|
-
namesToPlugins[pluginName$jscomp$
|
|
981
|
-
pluginModule$jscomp$
|
|
975
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_232) ||
|
|
976
|
+
namesToPlugins[pluginName$jscomp$inline_232] !==
|
|
977
|
+
pluginModule$jscomp$inline_233
|
|
982
978
|
) {
|
|
983
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
979
|
+
if (namesToPlugins[pluginName$jscomp$inline_232])
|
|
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_232 + "`.")
|
|
988
983
|
);
|
|
989
984
|
namesToPlugins[
|
|
990
|
-
pluginName$jscomp$
|
|
991
|
-
] = pluginModule$jscomp$
|
|
992
|
-
isOrderingDirty$jscomp$
|
|
985
|
+
pluginName$jscomp$inline_232
|
|
986
|
+
] = pluginModule$jscomp$inline_233;
|
|
987
|
+
isOrderingDirty$jscomp$inline_231 = !0;
|
|
993
988
|
}
|
|
994
989
|
}
|
|
995
|
-
isOrderingDirty$jscomp$
|
|
990
|
+
isOrderingDirty$jscomp$inline_231 && 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
|
}
|
|
@@ -1859,6 +1854,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1859
1854
|
root = root.pendingLanes & -1073741825;
|
|
1860
1855
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1861
1856
|
}
|
|
1857
|
+
function includesBlockingLane(root, lanes) {
|
|
1858
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1859
|
+
}
|
|
1862
1860
|
function createLaneMap(initial) {
|
|
1863
1861
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1864
1862
|
return laneMap;
|
|
@@ -2092,7 +2090,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2092
2090
|
: pop(didPerformWorkStackCursor);
|
|
2093
2091
|
push(didPerformWorkStackCursor, didChange);
|
|
2094
2092
|
}
|
|
2095
|
-
|
|
2093
|
+
function is(x, y) {
|
|
2094
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2095
|
+
}
|
|
2096
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2097
|
+
syncQueue = null,
|
|
2096
2098
|
includesLegacySyncCallbacks = !1,
|
|
2097
2099
|
isFlushingSyncQueue = !1;
|
|
2098
2100
|
function flushSyncCallbacks() {
|
|
@@ -2121,10 +2123,6 @@ function flushSyncCallbacks() {
|
|
|
2121
2123
|
return null;
|
|
2122
2124
|
}
|
|
2123
2125
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2124
|
-
function is(x, y) {
|
|
2125
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2126
|
-
}
|
|
2127
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
2128
2126
|
function shallowEqual(objA, objB) {
|
|
2129
2127
|
if (objectIs(objA, objB)) return !0;
|
|
2130
2128
|
if (
|
|
@@ -2421,7 +2419,7 @@ function processUpdateQueue(
|
|
|
2421
2419
|
newState = workInProgress;
|
|
2422
2420
|
break a;
|
|
2423
2421
|
case 3:
|
|
2424
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2422
|
+
workInProgress.flags = (workInProgress.flags & -65537) | 128;
|
|
2425
2423
|
case 0:
|
|
2426
2424
|
workInProgress = update.payload;
|
|
2427
2425
|
updateLane =
|
|
@@ -2674,7 +2672,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2674
2672
|
returnFiber +
|
|
2675
2673
|
". This error is likely caused by a bug in React. Please file an issue."
|
|
2676
2674
|
);
|
|
2677
|
-
var
|
|
2675
|
+
var resolvedInst = inst,
|
|
2676
|
+
stringRef = "" + returnFiber;
|
|
2678
2677
|
if (
|
|
2679
2678
|
null !== current &&
|
|
2680
2679
|
null !== current.ref &&
|
|
@@ -2683,8 +2682,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2683
2682
|
)
|
|
2684
2683
|
return current.ref;
|
|
2685
2684
|
current = function(value) {
|
|
2686
|
-
var refs =
|
|
2687
|
-
refs === emptyRefsObject && (refs =
|
|
2685
|
+
var refs = resolvedInst.refs;
|
|
2686
|
+
refs === emptyRefsObject && (refs = resolvedInst.refs = {});
|
|
2688
2687
|
null === value ? delete refs[stringRef] : (refs[stringRef] = value);
|
|
2689
2688
|
};
|
|
2690
2689
|
current._stringRef = stringRef;
|
|
@@ -3383,7 +3382,7 @@ function renderWithHooks(
|
|
|
3383
3382
|
nextRenderLanes = 0;
|
|
3384
3383
|
do {
|
|
3385
3384
|
didScheduleRenderPhaseUpdateDuringThisPass = !1;
|
|
3386
|
-
if (
|
|
3385
|
+
if (25 <= nextRenderLanes)
|
|
3387
3386
|
throw Error(
|
|
3388
3387
|
"Too many re-renders. React limits the number of renders to prevent an infinite loop."
|
|
3389
3388
|
);
|
|
@@ -3484,19 +3483,18 @@ function updateReducer(reducer) {
|
|
|
3484
3483
|
(newBaseQueueLast = newBaseQueueLast.next = {
|
|
3485
3484
|
lane: 0,
|
|
3486
3485
|
action: update.action,
|
|
3487
|
-
|
|
3486
|
+
hasEagerState: update.hasEagerState,
|
|
3488
3487
|
eagerState: update.eagerState,
|
|
3489
3488
|
next: null
|
|
3490
3489
|
}),
|
|
3491
|
-
(current =
|
|
3492
|
-
update.
|
|
3493
|
-
|
|
3494
|
-
: reducer(current, update.action));
|
|
3490
|
+
(current = update.hasEagerState
|
|
3491
|
+
? update.eagerState
|
|
3492
|
+
: reducer(current, update.action));
|
|
3495
3493
|
else {
|
|
3496
3494
|
var clone = {
|
|
3497
3495
|
lane: updateLane,
|
|
3498
3496
|
action: update.action,
|
|
3499
|
-
|
|
3497
|
+
hasEagerState: update.hasEagerState,
|
|
3500
3498
|
eagerState: update.eagerState,
|
|
3501
3499
|
next: null
|
|
3502
3500
|
};
|
|
@@ -3636,7 +3634,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3636
3634
|
lastRenderedReducer: basicStateReducer,
|
|
3637
3635
|
lastRenderedState: snapshot
|
|
3638
3636
|
}),
|
|
3639
|
-
(hook.dispatch = setSnapshot =
|
|
3637
|
+
(hook.dispatch = setSnapshot = dispatchSetState.bind(
|
|
3640
3638
|
null,
|
|
3641
3639
|
currentlyRenderingFiber$1,
|
|
3642
3640
|
hook
|
|
@@ -3651,11 +3649,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3651
3649
|
var hook = updateWorkInProgressHook();
|
|
3652
3650
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3653
3651
|
}
|
|
3652
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3653
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3654
|
+
hook = mountWorkInProgressHook();
|
|
3655
|
+
var nextSnapshot = getSnapshot();
|
|
3656
|
+
var root = workInProgressRoot;
|
|
3657
|
+
if (null === root)
|
|
3658
|
+
throw Error(
|
|
3659
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3660
|
+
);
|
|
3661
|
+
includesBlockingLane(root, renderLanes) ||
|
|
3662
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3663
|
+
hook.memoizedState = nextSnapshot;
|
|
3664
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3665
|
+
hook.queue = root;
|
|
3666
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [subscribe]);
|
|
3667
|
+
fiber.flags |= 2048;
|
|
3668
|
+
pushEffect(
|
|
3669
|
+
9,
|
|
3670
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3671
|
+
void 0,
|
|
3672
|
+
null
|
|
3673
|
+
);
|
|
3674
|
+
return nextSnapshot;
|
|
3675
|
+
}
|
|
3676
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3677
|
+
fiber.flags |= 16384;
|
|
3678
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3679
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3680
|
+
null === getSnapshot
|
|
3681
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3682
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3683
|
+
(getSnapshot.stores = [fiber]))
|
|
3684
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3685
|
+
null === renderedSnapshot
|
|
3686
|
+
? (getSnapshot.stores = [fiber])
|
|
3687
|
+
: renderedSnapshot.push(fiber));
|
|
3688
|
+
}
|
|
3689
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3690
|
+
inst.value = nextSnapshot;
|
|
3691
|
+
inst.getSnapshot = getSnapshot;
|
|
3692
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3693
|
+
}
|
|
3694
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3695
|
+
return subscribe(function() {
|
|
3696
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3697
|
+
});
|
|
3698
|
+
}
|
|
3699
|
+
function checkIfSnapshotChanged(inst) {
|
|
3700
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3701
|
+
inst = inst.value;
|
|
3702
|
+
try {
|
|
3703
|
+
var nextValue = latestGetSnapshot();
|
|
3704
|
+
return !objectIs(inst, nextValue);
|
|
3705
|
+
} catch (error) {
|
|
3706
|
+
return !0;
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3654
3709
|
function mountState(initialState) {
|
|
3655
3710
|
var hook = mountWorkInProgressHook();
|
|
3656
3711
|
"function" === typeof initialState && (initialState = initialState());
|
|
3657
3712
|
hook.memoizedState = hook.baseState = initialState;
|
|
3658
|
-
initialState =
|
|
3713
|
+
initialState = {
|
|
3659
3714
|
pending: null,
|
|
3660
3715
|
interleaved: null,
|
|
3661
3716
|
lanes: 0,
|
|
@@ -3663,7 +3718,8 @@ function mountState(initialState) {
|
|
|
3663
3718
|
lastRenderedReducer: basicStateReducer,
|
|
3664
3719
|
lastRenderedState: initialState
|
|
3665
3720
|
};
|
|
3666
|
-
|
|
3721
|
+
hook.queue = initialState;
|
|
3722
|
+
initialState = initialState.dispatch = dispatchSetState.bind(
|
|
3667
3723
|
null,
|
|
3668
3724
|
currentlyRenderingFiber$1,
|
|
3669
3725
|
initialState
|
|
@@ -3674,7 +3730,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3674
3730
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3675
3731
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3676
3732
|
null === create
|
|
3677
|
-
? ((create = { lastEffect: null }),
|
|
3733
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3678
3734
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3679
3735
|
(create.lastEffect = tag.next = tag))
|
|
3680
3736
|
: ((destroy = create.lastEffect),
|
|
@@ -3715,14 +3771,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3715
3771
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3716
3772
|
}
|
|
3717
3773
|
function mountEffect(create, deps) {
|
|
3718
|
-
return mountEffectImpl(
|
|
3774
|
+
return mountEffectImpl(4196352, 8, create, deps);
|
|
3719
3775
|
}
|
|
3720
3776
|
function updateEffect(create, deps) {
|
|
3721
|
-
return updateEffectImpl(
|
|
3777
|
+
return updateEffectImpl(2048, 8, create, deps);
|
|
3722
3778
|
}
|
|
3723
|
-
function
|
|
3779
|
+
function updateInsertionEffect(create, deps) {
|
|
3724
3780
|
return updateEffectImpl(4, 2, create, deps);
|
|
3725
3781
|
}
|
|
3782
|
+
function updateLayoutEffect(create, deps) {
|
|
3783
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3784
|
+
}
|
|
3726
3785
|
function imperativeHandleEffect(create, ref) {
|
|
3727
3786
|
if ("function" === typeof ref)
|
|
3728
3787
|
return (
|
|
@@ -3745,7 +3804,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3745
3804
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3746
3805
|
return updateEffectImpl(
|
|
3747
3806
|
4,
|
|
3748
|
-
|
|
3807
|
+
4,
|
|
3749
3808
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3750
3809
|
deps
|
|
3751
3810
|
);
|
|
@@ -3792,47 +3851,35 @@ function startTransition(setPending, callback) {
|
|
|
3792
3851
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3793
3852
|
}
|
|
3794
3853
|
}
|
|
3795
|
-
function
|
|
3796
|
-
var
|
|
3797
|
-
|
|
3854
|
+
function dispatchReducerAction(fiber, queue, action) {
|
|
3855
|
+
var lane = requestUpdateLane(fiber);
|
|
3856
|
+
action = {
|
|
3857
|
+
lane: lane,
|
|
3858
|
+
action: action,
|
|
3859
|
+
hasEagerState: !1,
|
|
3860
|
+
eagerState: null,
|
|
3861
|
+
next: null
|
|
3862
|
+
};
|
|
3863
|
+
isRenderPhaseUpdate(fiber)
|
|
3864
|
+
? enqueueRenderPhaseUpdate(queue, action)
|
|
3865
|
+
: (enqueueUpdate$1(fiber, queue, action),
|
|
3866
|
+
(action = requestEventTime()),
|
|
3867
|
+
(fiber = scheduleUpdateOnFiber(fiber, lane, action)),
|
|
3868
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane));
|
|
3869
|
+
}
|
|
3870
|
+
function dispatchSetState(fiber, queue, action) {
|
|
3871
|
+
var lane = requestUpdateLane(fiber),
|
|
3798
3872
|
update = {
|
|
3799
3873
|
lane: lane,
|
|
3800
3874
|
action: action,
|
|
3801
|
-
|
|
3875
|
+
hasEagerState: !1,
|
|
3802
3876
|
eagerState: null,
|
|
3803
3877
|
next: null
|
|
3804
|
-
}
|
|
3805
|
-
|
|
3806
|
-
if (
|
|
3807
|
-
fiber === currentlyRenderingFiber$1 ||
|
|
3808
|
-
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3809
|
-
)
|
|
3810
|
-
(didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0),
|
|
3811
|
-
(lane = queue.pending),
|
|
3812
|
-
null === lane
|
|
3813
|
-
? (update.next = update)
|
|
3814
|
-
: ((update.next = lane.next), (lane.next = update)),
|
|
3815
|
-
(queue.pending = update);
|
|
3878
|
+
};
|
|
3879
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3816
3880
|
else {
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
0 !== (fiber.mode & 1) &&
|
|
3820
|
-
0 === (executionContext & 2)
|
|
3821
|
-
) {
|
|
3822
|
-
var interleaved = queue.interleaved;
|
|
3823
|
-
null === interleaved
|
|
3824
|
-
? ((update.next = update),
|
|
3825
|
-
null === interleavedQueues
|
|
3826
|
-
? (interleavedQueues = [queue])
|
|
3827
|
-
: interleavedQueues.push(queue))
|
|
3828
|
-
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
3829
|
-
queue.interleaved = update;
|
|
3830
|
-
} else
|
|
3831
|
-
(interleaved = queue.pending),
|
|
3832
|
-
null === interleaved
|
|
3833
|
-
? (update.next = update)
|
|
3834
|
-
: ((update.next = interleaved.next), (interleaved.next = update)),
|
|
3835
|
-
(queue.pending = update);
|
|
3881
|
+
enqueueUpdate$1(fiber, queue, update);
|
|
3882
|
+
var alternate = fiber.alternate;
|
|
3836
3883
|
if (
|
|
3837
3884
|
0 === fiber.lanes &&
|
|
3838
3885
|
(null === alternate || 0 === alternate.lanes) &&
|
|
@@ -3841,20 +3888,57 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3841
3888
|
try {
|
|
3842
3889
|
var currentState = queue.lastRenderedState,
|
|
3843
3890
|
eagerState = alternate(currentState, action);
|
|
3844
|
-
update.
|
|
3891
|
+
update.hasEagerState = !0;
|
|
3845
3892
|
update.eagerState = eagerState;
|
|
3846
3893
|
if (objectIs(eagerState, currentState)) return;
|
|
3847
3894
|
} catch (error) {
|
|
3848
3895
|
} finally {
|
|
3849
3896
|
}
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3897
|
+
action = requestEventTime();
|
|
3898
|
+
fiber = scheduleUpdateOnFiber(fiber, lane, action);
|
|
3899
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane);
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
function isRenderPhaseUpdate(fiber) {
|
|
3903
|
+
var alternate = fiber.alternate;
|
|
3904
|
+
return (
|
|
3905
|
+
fiber === currentlyRenderingFiber$1 ||
|
|
3906
|
+
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3907
|
+
);
|
|
3908
|
+
}
|
|
3909
|
+
function enqueueRenderPhaseUpdate(queue, update) {
|
|
3910
|
+
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
|
|
3911
|
+
var pending = queue.pending;
|
|
3912
|
+
null === pending
|
|
3913
|
+
? (update.next = update)
|
|
3914
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
3915
|
+
queue.pending = update;
|
|
3916
|
+
}
|
|
3917
|
+
function enqueueUpdate$1(fiber, queue, update) {
|
|
3918
|
+
null !== workInProgressRoot &&
|
|
3919
|
+
0 !== (fiber.mode & 1) &&
|
|
3920
|
+
0 === (executionContext & 2)
|
|
3921
|
+
? ((fiber = queue.interleaved),
|
|
3922
|
+
null === fiber
|
|
3923
|
+
? ((update.next = update),
|
|
3924
|
+
null === interleavedQueues
|
|
3925
|
+
? (interleavedQueues = [queue])
|
|
3926
|
+
: interleavedQueues.push(queue))
|
|
3927
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3928
|
+
(queue.interleaved = update))
|
|
3929
|
+
: ((fiber = queue.pending),
|
|
3930
|
+
null === fiber
|
|
3931
|
+
? (update.next = update)
|
|
3932
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3933
|
+
(queue.pending = update));
|
|
3934
|
+
}
|
|
3935
|
+
function entangleTransitionUpdate(root, queue, lane) {
|
|
3936
|
+
if (0 !== (lane & 4194240)) {
|
|
3937
|
+
var queueLanes = queue.lanes;
|
|
3938
|
+
queueLanes &= root.pendingLanes;
|
|
3939
|
+
lane |= queueLanes;
|
|
3940
|
+
queue.lanes = lane;
|
|
3941
|
+
markRootEntangled(root, lane);
|
|
3858
3942
|
}
|
|
3859
3943
|
}
|
|
3860
3944
|
var ContextOnlyDispatcher = {
|
|
@@ -3863,6 +3947,7 @@ var ContextOnlyDispatcher = {
|
|
|
3863
3947
|
useContext: throwInvalidHookError,
|
|
3864
3948
|
useEffect: throwInvalidHookError,
|
|
3865
3949
|
useImperativeHandle: throwInvalidHookError,
|
|
3950
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3866
3951
|
useLayoutEffect: throwInvalidHookError,
|
|
3867
3952
|
useMemo: throwInvalidHookError,
|
|
3868
3953
|
useReducer: throwInvalidHookError,
|
|
@@ -3872,6 +3957,7 @@ var ContextOnlyDispatcher = {
|
|
|
3872
3957
|
useDeferredValue: throwInvalidHookError,
|
|
3873
3958
|
useTransition: throwInvalidHookError,
|
|
3874
3959
|
useMutableSource: throwInvalidHookError,
|
|
3960
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3875
3961
|
useOpaqueIdentifier: throwInvalidHookError,
|
|
3876
3962
|
unstable_isNewReconciler: !1
|
|
3877
3963
|
},
|
|
@@ -3890,12 +3976,15 @@ var ContextOnlyDispatcher = {
|
|
|
3890
3976
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3891
3977
|
return mountEffectImpl(
|
|
3892
3978
|
4,
|
|
3893
|
-
|
|
3979
|
+
4,
|
|
3894
3980
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3895
3981
|
deps
|
|
3896
3982
|
);
|
|
3897
3983
|
},
|
|
3898
3984
|
useLayoutEffect: function(create, deps) {
|
|
3985
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3986
|
+
},
|
|
3987
|
+
useInsertionEffect: function(create, deps) {
|
|
3899
3988
|
return mountEffectImpl(4, 2, create, deps);
|
|
3900
3989
|
},
|
|
3901
3990
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3909,7 +3998,7 @@ var ContextOnlyDispatcher = {
|
|
|
3909
3998
|
var hook = mountWorkInProgressHook();
|
|
3910
3999
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3911
4000
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3912
|
-
reducer =
|
|
4001
|
+
reducer = {
|
|
3913
4002
|
pending: null,
|
|
3914
4003
|
interleaved: null,
|
|
3915
4004
|
lanes: 0,
|
|
@@ -3917,7 +4006,8 @@ var ContextOnlyDispatcher = {
|
|
|
3917
4006
|
lastRenderedReducer: reducer,
|
|
3918
4007
|
lastRenderedState: initialArg
|
|
3919
4008
|
};
|
|
3920
|
-
|
|
4009
|
+
hook.queue = reducer;
|
|
4010
|
+
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
3921
4011
|
null,
|
|
3922
4012
|
currentlyRenderingFiber$1,
|
|
3923
4013
|
reducer
|
|
@@ -3965,6 +4055,7 @@ var ContextOnlyDispatcher = {
|
|
|
3965
4055
|
};
|
|
3966
4056
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3967
4057
|
},
|
|
4058
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
3968
4059
|
useOpaqueIdentifier: function() {
|
|
3969
4060
|
throw Error("Not yet implemented");
|
|
3970
4061
|
},
|
|
@@ -3976,6 +4067,7 @@ var ContextOnlyDispatcher = {
|
|
|
3976
4067
|
useContext: readContext,
|
|
3977
4068
|
useEffect: updateEffect,
|
|
3978
4069
|
useImperativeHandle: updateImperativeHandle,
|
|
4070
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3979
4071
|
useLayoutEffect: updateLayoutEffect,
|
|
3980
4072
|
useMemo: updateMemo,
|
|
3981
4073
|
useReducer: updateReducer,
|
|
@@ -4008,6 +4100,46 @@ var ContextOnlyDispatcher = {
|
|
|
4008
4100
|
return [isPending, start];
|
|
4009
4101
|
},
|
|
4010
4102
|
useMutableSource: updateMutableSource,
|
|
4103
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4104
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4105
|
+
hook = updateWorkInProgressHook(),
|
|
4106
|
+
nextSnapshot = getSnapshot(),
|
|
4107
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4108
|
+
snapshotChanged &&
|
|
4109
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4110
|
+
hook = hook.queue;
|
|
4111
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4112
|
+
subscribe
|
|
4113
|
+
]);
|
|
4114
|
+
if (
|
|
4115
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4116
|
+
snapshotChanged ||
|
|
4117
|
+
(null !== workInProgressHook &&
|
|
4118
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4119
|
+
) {
|
|
4120
|
+
fiber.flags |= 2048;
|
|
4121
|
+
pushEffect(
|
|
4122
|
+
9,
|
|
4123
|
+
updateStoreInstance.bind(
|
|
4124
|
+
null,
|
|
4125
|
+
fiber,
|
|
4126
|
+
hook,
|
|
4127
|
+
nextSnapshot,
|
|
4128
|
+
getSnapshot
|
|
4129
|
+
),
|
|
4130
|
+
void 0,
|
|
4131
|
+
null
|
|
4132
|
+
);
|
|
4133
|
+
subscribe = workInProgressRoot;
|
|
4134
|
+
if (null === subscribe)
|
|
4135
|
+
throw Error(
|
|
4136
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4137
|
+
);
|
|
4138
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4139
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4140
|
+
}
|
|
4141
|
+
return nextSnapshot;
|
|
4142
|
+
},
|
|
4011
4143
|
useOpaqueIdentifier: function() {
|
|
4012
4144
|
return updateReducer(basicStateReducer)[0];
|
|
4013
4145
|
},
|
|
@@ -4019,6 +4151,7 @@ var ContextOnlyDispatcher = {
|
|
|
4019
4151
|
useContext: readContext,
|
|
4020
4152
|
useEffect: updateEffect,
|
|
4021
4153
|
useImperativeHandle: updateImperativeHandle,
|
|
4154
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4022
4155
|
useLayoutEffect: updateLayoutEffect,
|
|
4023
4156
|
useMemo: updateMemo,
|
|
4024
4157
|
useReducer: rerenderReducer,
|
|
@@ -4051,6 +4184,7 @@ var ContextOnlyDispatcher = {
|
|
|
4051
4184
|
return [isPending, start];
|
|
4052
4185
|
},
|
|
4053
4186
|
useMutableSource: updateMutableSource,
|
|
4187
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4054
4188
|
useOpaqueIdentifier: function() {
|
|
4055
4189
|
return rerenderReducer(basicStateReducer)[0];
|
|
4056
4190
|
},
|
|
@@ -4226,14 +4360,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4226
4360
|
break;
|
|
4227
4361
|
case "collapsed":
|
|
4228
4362
|
lastTailNode = renderState.tail;
|
|
4229
|
-
for (var lastTailNode$
|
|
4230
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4363
|
+
for (var lastTailNode$37 = null; null !== lastTailNode; )
|
|
4364
|
+
null !== lastTailNode.alternate && (lastTailNode$37 = lastTailNode),
|
|
4231
4365
|
(lastTailNode = lastTailNode.sibling);
|
|
4232
|
-
null === lastTailNode$
|
|
4366
|
+
null === lastTailNode$37
|
|
4233
4367
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4234
4368
|
? (renderState.tail = null)
|
|
4235
4369
|
: (renderState.tail.sibling = null)
|
|
4236
|
-
: (lastTailNode$
|
|
4370
|
+
: (lastTailNode$37.sibling = null);
|
|
4237
4371
|
}
|
|
4238
4372
|
}
|
|
4239
4373
|
function bubbleProperties(completedWork) {
|
|
@@ -4245,53 +4379,53 @@ function bubbleProperties(completedWork) {
|
|
|
4245
4379
|
if (didBailout)
|
|
4246
4380
|
if (0 !== (completedWork.mode & 2)) {
|
|
4247
4381
|
for (
|
|
4248
|
-
var treeBaseDuration$
|
|
4249
|
-
child$
|
|
4250
|
-
null !== child$
|
|
4382
|
+
var treeBaseDuration$39 = completedWork.selfBaseDuration,
|
|
4383
|
+
child$40 = completedWork.child;
|
|
4384
|
+
null !== child$40;
|
|
4251
4385
|
|
|
4252
4386
|
)
|
|
4253
|
-
(newChildLanes |= child$
|
|
4254
|
-
(subtreeFlags |= child$
|
|
4255
|
-
(subtreeFlags |= child$
|
|
4256
|
-
(treeBaseDuration$
|
|
4257
|
-
(child$
|
|
4258
|
-
completedWork.treeBaseDuration = treeBaseDuration$
|
|
4387
|
+
(newChildLanes |= child$40.lanes | child$40.childLanes),
|
|
4388
|
+
(subtreeFlags |= child$40.subtreeFlags & 7340032),
|
|
4389
|
+
(subtreeFlags |= child$40.flags & 7340032),
|
|
4390
|
+
(treeBaseDuration$39 += child$40.treeBaseDuration),
|
|
4391
|
+
(child$40 = child$40.sibling);
|
|
4392
|
+
completedWork.treeBaseDuration = treeBaseDuration$39;
|
|
4259
4393
|
} else
|
|
4260
4394
|
for (
|
|
4261
|
-
treeBaseDuration$
|
|
4262
|
-
null !== treeBaseDuration$
|
|
4395
|
+
treeBaseDuration$39 = completedWork.child;
|
|
4396
|
+
null !== treeBaseDuration$39;
|
|
4263
4397
|
|
|
4264
4398
|
)
|
|
4265
4399
|
(newChildLanes |=
|
|
4266
|
-
treeBaseDuration$
|
|
4267
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4268
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4269
|
-
(treeBaseDuration$
|
|
4270
|
-
(treeBaseDuration$
|
|
4400
|
+
treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
|
|
4401
|
+
(subtreeFlags |= treeBaseDuration$39.subtreeFlags & 7340032),
|
|
4402
|
+
(subtreeFlags |= treeBaseDuration$39.flags & 7340032),
|
|
4403
|
+
(treeBaseDuration$39.return = completedWork),
|
|
4404
|
+
(treeBaseDuration$39 = treeBaseDuration$39.sibling);
|
|
4271
4405
|
else if (0 !== (completedWork.mode & 2)) {
|
|
4272
|
-
treeBaseDuration$
|
|
4273
|
-
child$
|
|
4406
|
+
treeBaseDuration$39 = completedWork.actualDuration;
|
|
4407
|
+
child$40 = completedWork.selfBaseDuration;
|
|
4274
4408
|
for (var child = completedWork.child; null !== child; )
|
|
4275
4409
|
(newChildLanes |= child.lanes | child.childLanes),
|
|
4276
4410
|
(subtreeFlags |= child.subtreeFlags),
|
|
4277
4411
|
(subtreeFlags |= child.flags),
|
|
4278
|
-
(treeBaseDuration$
|
|
4279
|
-
(child$
|
|
4412
|
+
(treeBaseDuration$39 += child.actualDuration),
|
|
4413
|
+
(child$40 += child.treeBaseDuration),
|
|
4280
4414
|
(child = child.sibling);
|
|
4281
|
-
completedWork.actualDuration = treeBaseDuration$
|
|
4282
|
-
completedWork.treeBaseDuration = child$
|
|
4415
|
+
completedWork.actualDuration = treeBaseDuration$39;
|
|
4416
|
+
completedWork.treeBaseDuration = child$40;
|
|
4283
4417
|
} else
|
|
4284
4418
|
for (
|
|
4285
|
-
treeBaseDuration$
|
|
4286
|
-
null !== treeBaseDuration$
|
|
4419
|
+
treeBaseDuration$39 = completedWork.child;
|
|
4420
|
+
null !== treeBaseDuration$39;
|
|
4287
4421
|
|
|
4288
4422
|
)
|
|
4289
4423
|
(newChildLanes |=
|
|
4290
|
-
treeBaseDuration$
|
|
4291
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4292
|
-
(subtreeFlags |= treeBaseDuration$
|
|
4293
|
-
(treeBaseDuration$
|
|
4294
|
-
(treeBaseDuration$
|
|
4424
|
+
treeBaseDuration$39.lanes | treeBaseDuration$39.childLanes),
|
|
4425
|
+
(subtreeFlags |= treeBaseDuration$39.subtreeFlags),
|
|
4426
|
+
(subtreeFlags |= treeBaseDuration$39.flags),
|
|
4427
|
+
(treeBaseDuration$39.return = completedWork),
|
|
4428
|
+
(treeBaseDuration$39 = treeBaseDuration$39.sibling);
|
|
4295
4429
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4296
4430
|
completedWork.childLanes = newChildLanes;
|
|
4297
4431
|
return didBailout;
|
|
@@ -4327,8 +4461,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4327
4461
|
((newProps.context = newProps.pendingContext),
|
|
4328
4462
|
(newProps.pendingContext = null)),
|
|
4329
4463
|
(null !== current && null !== current.child) ||
|
|
4330
|
-
newProps.
|
|
4331
|
-
(workInProgress.flags |=
|
|
4464
|
+
newProps.isDehydrated ||
|
|
4465
|
+
(workInProgress.flags |= 1024),
|
|
4332
4466
|
updateHostContainer(current, workInProgress),
|
|
4333
4467
|
bubbleProperties(workInProgress),
|
|
4334
4468
|
null
|
|
@@ -4345,7 +4479,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4345
4479
|
newProps,
|
|
4346
4480
|
renderLanes
|
|
4347
4481
|
),
|
|
4348
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |=
|
|
4482
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4349
4483
|
else {
|
|
4350
4484
|
if (!newProps) {
|
|
4351
4485
|
if (null === workInProgress.stateNode)
|
|
@@ -4380,7 +4514,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4380
4514
|
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4381
4515
|
workInProgress.stateNode = renderLanes;
|
|
4382
4516
|
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4383
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4517
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4384
4518
|
}
|
|
4385
4519
|
bubbleProperties(workInProgress);
|
|
4386
4520
|
return null;
|
|
@@ -4430,7 +4564,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4430
4564
|
if (
|
|
4431
4565
|
newProps &&
|
|
4432
4566
|
!renderLanes &&
|
|
4433
|
-
((workInProgress.child.flags |=
|
|
4567
|
+
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4434
4568
|
)
|
|
4435
4569
|
if (
|
|
4436
4570
|
(null === current &&
|
|
@@ -4442,7 +4576,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4442
4576
|
else {
|
|
4443
4577
|
if (
|
|
4444
4578
|
0 === workInProgressRootExitStatus ||
|
|
4445
|
-
3 === workInProgressRootExitStatus
|
|
4579
|
+
3 === workInProgressRootExitStatus ||
|
|
4580
|
+
2 === workInProgressRootExitStatus
|
|
4446
4581
|
)
|
|
4447
4582
|
workInProgressRootExitStatus = 4;
|
|
4448
4583
|
null === workInProgressRoot ||
|
|
@@ -4507,7 +4642,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4507
4642
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4508
4643
|
(renderLanes = newProps),
|
|
4509
4644
|
(updatePayload = current),
|
|
4510
|
-
(renderLanes.flags &=
|
|
4645
|
+
(renderLanes.flags &= 7340034),
|
|
4511
4646
|
(type = renderLanes.alternate),
|
|
4512
4647
|
null === type
|
|
4513
4648
|
? ((renderLanes.childLanes = 0),
|
|
@@ -4613,14 +4748,14 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4613
4748
|
(null !== current.memoizedState) !== renderLanes &&
|
|
4614
4749
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4615
4750
|
23 !== workInProgress.tag &&
|
|
4616
|
-
(workInProgress.flags |=
|
|
4751
|
+
(workInProgress.flags |= 8192),
|
|
4617
4752
|
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4618
4753
|
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4619
4754
|
(bubbleProperties(workInProgress),
|
|
4620
4755
|
23 !== workInProgress.tag &&
|
|
4621
4756
|
workInProgress.subtreeFlags & 6 &&
|
|
4622
4757
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4623
|
-
(workInProgress.flags |=
|
|
4758
|
+
(workInProgress.flags |= 8192))
|
|
4624
4759
|
: bubbleProperties(workInProgress),
|
|
4625
4760
|
null
|
|
4626
4761
|
);
|
|
@@ -4665,7 +4800,7 @@ function updateForwardRef(
|
|
|
4665
4800
|
if (null !== current && !didReceiveUpdate)
|
|
4666
4801
|
return (
|
|
4667
4802
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4668
|
-
(workInProgress.flags &= -
|
|
4803
|
+
(workInProgress.flags &= -2053),
|
|
4669
4804
|
(current.lanes &= ~renderLanes),
|
|
4670
4805
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4671
4806
|
);
|
|
@@ -4739,7 +4874,7 @@ function updateSimpleMemoComponent(
|
|
|
4739
4874
|
current.ref === workInProgress.ref
|
|
4740
4875
|
)
|
|
4741
4876
|
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4742
|
-
0 !== (current.flags &
|
|
4877
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4743
4878
|
else
|
|
4744
4879
|
return (
|
|
4745
4880
|
(workInProgress.lanes = current.lanes),
|
|
@@ -4803,7 +4938,7 @@ function markRef$1(current, workInProgress) {
|
|
|
4803
4938
|
(null === current && null !== ref) ||
|
|
4804
4939
|
(null !== current && current.ref !== ref)
|
|
4805
4940
|
)
|
|
4806
|
-
workInProgress.flags |=
|
|
4941
|
+
workInProgress.flags |= 512;
|
|
4807
4942
|
}
|
|
4808
4943
|
function updateFunctionComponent(
|
|
4809
4944
|
current,
|
|
@@ -4828,7 +4963,7 @@ function updateFunctionComponent(
|
|
|
4828
4963
|
if (null !== current && !didReceiveUpdate)
|
|
4829
4964
|
return (
|
|
4830
4965
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4831
|
-
(workInProgress.flags &= -
|
|
4966
|
+
(workInProgress.flags &= -2053),
|
|
4832
4967
|
(current.lanes &= ~renderLanes),
|
|
4833
4968
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4834
4969
|
);
|
|
@@ -5004,7 +5139,7 @@ function updateClassComponent(
|
|
|
5004
5139
|
"function" === typeof instance.componentDidUpdate &&
|
|
5005
5140
|
(workInProgress.flags |= 4),
|
|
5006
5141
|
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
5007
|
-
(workInProgress.flags |=
|
|
5142
|
+
(workInProgress.flags |= 1024))
|
|
5008
5143
|
: ("function" !== typeof instance.componentDidUpdate ||
|
|
5009
5144
|
(oldProps === current.memoizedProps &&
|
|
5010
5145
|
oldState === current.memoizedState) ||
|
|
@@ -5012,7 +5147,7 @@ function updateClassComponent(
|
|
|
5012
5147
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5013
5148
|
(oldProps === current.memoizedProps &&
|
|
5014
5149
|
oldState === current.memoizedState) ||
|
|
5015
|
-
(workInProgress.flags |=
|
|
5150
|
+
(workInProgress.flags |= 1024),
|
|
5016
5151
|
(workInProgress.memoizedProps = nextProps),
|
|
5017
5152
|
(workInProgress.memoizedState = newState)),
|
|
5018
5153
|
(instance.props = nextProps),
|
|
@@ -5026,7 +5161,7 @@ function updateClassComponent(
|
|
|
5026
5161
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5027
5162
|
(oldProps === current.memoizedProps &&
|
|
5028
5163
|
oldState === current.memoizedState) ||
|
|
5029
|
-
(workInProgress.flags |=
|
|
5164
|
+
(workInProgress.flags |= 1024),
|
|
5030
5165
|
(nextProps = !1));
|
|
5031
5166
|
}
|
|
5032
5167
|
return finishClassComponent(
|
|
@@ -5297,7 +5432,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5297
5432
|
(primaryChildren.treeBaseDuration = current.treeBaseDuration)),
|
|
5298
5433
|
(workInProgress.deletions = null))
|
|
5299
5434
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
5300
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5435
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 7340032));
|
|
5301
5436
|
null !== currentFallbackChildFragment
|
|
5302
5437
|
? (fallbackChildren = createWorkInProgress(
|
|
5303
5438
|
currentFallbackChildFragment,
|
|
@@ -5533,8 +5668,8 @@ function unwindWork(workInProgress) {
|
|
|
5533
5668
|
case 1:
|
|
5534
5669
|
isContextProvider(workInProgress.type) && popContext();
|
|
5535
5670
|
var flags = workInProgress.flags;
|
|
5536
|
-
return flags &
|
|
5537
|
-
? ((workInProgress.flags = (flags & -
|
|
5671
|
+
return flags & 65536
|
|
5672
|
+
? ((workInProgress.flags = (flags & -65537) | 128),
|
|
5538
5673
|
0 !== (workInProgress.mode & 2) &&
|
|
5539
5674
|
transferActualDuration(workInProgress),
|
|
5540
5675
|
workInProgress)
|
|
@@ -5549,7 +5684,7 @@ function unwindWork(workInProgress) {
|
|
|
5549
5684
|
throw Error(
|
|
5550
5685
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5551
5686
|
);
|
|
5552
|
-
workInProgress.flags = (flags & -
|
|
5687
|
+
workInProgress.flags = (flags & -65537) | 128;
|
|
5553
5688
|
return workInProgress;
|
|
5554
5689
|
case 5:
|
|
5555
5690
|
return popHostContext(workInProgress), null;
|
|
@@ -5557,8 +5692,8 @@ function unwindWork(workInProgress) {
|
|
|
5557
5692
|
return (
|
|
5558
5693
|
pop(suspenseStackCursor),
|
|
5559
5694
|
(flags = workInProgress.flags),
|
|
5560
|
-
flags &
|
|
5561
|
-
? ((workInProgress.flags = (flags & -
|
|
5695
|
+
flags & 65536
|
|
5696
|
+
? ((workInProgress.flags = (flags & -65537) | 128),
|
|
5562
5697
|
0 !== (workInProgress.mode & 2) &&
|
|
5563
5698
|
transferActualDuration(workInProgress),
|
|
5564
5699
|
workInProgress)
|
|
@@ -5613,7 +5748,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5613
5748
|
if (
|
|
5614
5749
|
((root = nextEffect),
|
|
5615
5750
|
(firstChild = root.child),
|
|
5616
|
-
0 !== (root.subtreeFlags &
|
|
5751
|
+
0 !== (root.subtreeFlags & 1028) && null !== firstChild)
|
|
5617
5752
|
)
|
|
5618
5753
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5619
5754
|
else
|
|
@@ -5621,7 +5756,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5621
5756
|
root = nextEffect;
|
|
5622
5757
|
try {
|
|
5623
5758
|
var current = root.alternate;
|
|
5624
|
-
if (0 !== (root.flags &
|
|
5759
|
+
if (0 !== (root.flags & 1024))
|
|
5625
5760
|
switch (root.tag) {
|
|
5626
5761
|
case 0:
|
|
5627
5762
|
case 11:
|
|
@@ -5695,8 +5830,8 @@ function commitHookEffectListMount(tag, finishedWork) {
|
|
|
5695
5830
|
var effect = (finishedWork = finishedWork.next);
|
|
5696
5831
|
do {
|
|
5697
5832
|
if ((effect.tag & tag) === tag) {
|
|
5698
|
-
var create$
|
|
5699
|
-
effect.destroy = create$
|
|
5833
|
+
var create$86 = effect.create;
|
|
5834
|
+
effect.destroy = create$86();
|
|
5700
5835
|
}
|
|
5701
5836
|
effect = effect.next;
|
|
5702
5837
|
} while (effect !== finishedWork);
|
|
@@ -5722,8 +5857,8 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
5722
5857
|
var _effect = effect,
|
|
5723
5858
|
destroy = _effect.destroy;
|
|
5724
5859
|
_effect = _effect.tag;
|
|
5725
|
-
void 0
|
|
5726
|
-
0
|
|
5860
|
+
void 0 === destroy ||
|
|
5861
|
+
(0 === (_effect & 2) && 0 === (_effect & 4)) ||
|
|
5727
5862
|
(current.mode & 2
|
|
5728
5863
|
? (startLayoutEffectTimer(),
|
|
5729
5864
|
safelyCallDestroy(current, nearestMountedAncestor, destroy),
|
|
@@ -6046,14 +6181,16 @@ function commitWork(current, finishedWork) {
|
|
|
6046
6181
|
case 11:
|
|
6047
6182
|
case 14:
|
|
6048
6183
|
case 15:
|
|
6184
|
+
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
6185
|
+
commitHookEffectListMount(3, finishedWork);
|
|
6049
6186
|
if (finishedWork.mode & 2)
|
|
6050
6187
|
try {
|
|
6051
6188
|
startLayoutEffectTimer(),
|
|
6052
|
-
commitHookEffectListUnmount(
|
|
6189
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6053
6190
|
} finally {
|
|
6054
6191
|
recordLayoutEffectDuration(finishedWork);
|
|
6055
6192
|
}
|
|
6056
|
-
else commitHookEffectListUnmount(
|
|
6193
|
+
else commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6057
6194
|
return;
|
|
6058
6195
|
case 1:
|
|
6059
6196
|
return;
|
|
@@ -6151,14 +6288,14 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6151
6288
|
}
|
|
6152
6289
|
}
|
|
6153
6290
|
committedLanes = firstChild.child;
|
|
6154
|
-
if (0 !== (firstChild.subtreeFlags &
|
|
6291
|
+
if (0 !== (firstChild.subtreeFlags & 12854) && null !== committedLanes)
|
|
6155
6292
|
(committedLanes.return = firstChild), (nextEffect = committedLanes);
|
|
6156
6293
|
else
|
|
6157
6294
|
for (; null !== nextEffect; ) {
|
|
6158
6295
|
firstChild = nextEffect;
|
|
6159
6296
|
try {
|
|
6160
6297
|
var flags = firstChild.flags;
|
|
6161
|
-
if (flags &
|
|
6298
|
+
if (flags & 512) {
|
|
6162
6299
|
var current = firstChild.alternate;
|
|
6163
6300
|
if (null !== current) {
|
|
6164
6301
|
committedLanes = current;
|
|
@@ -6175,12 +6312,12 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6175
6312
|
else currentRef.current = null;
|
|
6176
6313
|
}
|
|
6177
6314
|
}
|
|
6178
|
-
if (flags &
|
|
6315
|
+
if (flags & 8192)
|
|
6179
6316
|
switch (firstChild.tag) {
|
|
6180
6317
|
case 13:
|
|
6181
6318
|
if (null !== firstChild.memoizedState) {
|
|
6182
|
-
var current$
|
|
6183
|
-
if (null === current$
|
|
6319
|
+
var current$93 = firstChild.alternate;
|
|
6320
|
+
if (null === current$93 || null === current$93.memoizedState)
|
|
6184
6321
|
globalMostRecentFallbackTime = now();
|
|
6185
6322
|
}
|
|
6186
6323
|
break;
|
|
@@ -6256,7 +6393,7 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6256
6393
|
}
|
|
6257
6394
|
}
|
|
6258
6395
|
}
|
|
6259
|
-
switch (flags &
|
|
6396
|
+
switch (flags & 4102) {
|
|
6260
6397
|
case 2:
|
|
6261
6398
|
commitPlacement(firstChild);
|
|
6262
6399
|
firstChild.flags &= -3;
|
|
@@ -6266,11 +6403,11 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6266
6403
|
firstChild.flags &= -3;
|
|
6267
6404
|
commitWork(firstChild.alternate, firstChild);
|
|
6268
6405
|
break;
|
|
6269
|
-
case
|
|
6270
|
-
firstChild.flags &= -
|
|
6406
|
+
case 4096:
|
|
6407
|
+
firstChild.flags &= -4097;
|
|
6271
6408
|
break;
|
|
6272
|
-
case
|
|
6273
|
-
firstChild.flags &= -
|
|
6409
|
+
case 4100:
|
|
6410
|
+
firstChild.flags &= -4097;
|
|
6274
6411
|
commitWork(firstChild.alternate, firstChild);
|
|
6275
6412
|
break;
|
|
6276
6413
|
case 4:
|
|
@@ -6297,16 +6434,16 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6297
6434
|
if (
|
|
6298
6435
|
((root = nextEffect),
|
|
6299
6436
|
(committedLanes = root.child),
|
|
6300
|
-
0 !== (root.subtreeFlags &
|
|
6437
|
+
0 !== (root.subtreeFlags & 8772) && null !== committedLanes)
|
|
6301
6438
|
)
|
|
6302
6439
|
(committedLanes.return = root), (nextEffect = committedLanes);
|
|
6303
6440
|
else
|
|
6304
6441
|
for (root = finishedWork; null !== nextEffect; ) {
|
|
6305
6442
|
committedLanes = nextEffect;
|
|
6306
|
-
if (0 !== (committedLanes.flags &
|
|
6443
|
+
if (0 !== (committedLanes.flags & 8772)) {
|
|
6307
6444
|
var current = committedLanes.alternate;
|
|
6308
6445
|
try {
|
|
6309
|
-
if (0 !== (committedLanes.flags &
|
|
6446
|
+
if (0 !== (committedLanes.flags & 8772))
|
|
6310
6447
|
switch (committedLanes.tag) {
|
|
6311
6448
|
case 0:
|
|
6312
6449
|
case 11:
|
|
@@ -6314,11 +6451,11 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6314
6451
|
if (committedLanes.mode & 2)
|
|
6315
6452
|
try {
|
|
6316
6453
|
startLayoutEffectTimer(),
|
|
6317
|
-
commitHookEffectListMount(
|
|
6454
|
+
commitHookEffectListMount(5, committedLanes);
|
|
6318
6455
|
} finally {
|
|
6319
6456
|
recordLayoutEffectDuration(committedLanes);
|
|
6320
6457
|
}
|
|
6321
|
-
else commitHookEffectListMount(
|
|
6458
|
+
else commitHookEffectListMount(5, committedLanes);
|
|
6322
6459
|
break;
|
|
6323
6460
|
case 1:
|
|
6324
6461
|
var instance = committedLanes.stateNode;
|
|
@@ -6364,21 +6501,21 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6364
6501
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6365
6502
|
break;
|
|
6366
6503
|
case 3:
|
|
6367
|
-
var updateQueue$
|
|
6368
|
-
if (null !== updateQueue$
|
|
6369
|
-
var instance$
|
|
6504
|
+
var updateQueue$88 = committedLanes.updateQueue;
|
|
6505
|
+
if (null !== updateQueue$88) {
|
|
6506
|
+
var instance$89 = null;
|
|
6370
6507
|
if (null !== committedLanes.child)
|
|
6371
6508
|
switch (committedLanes.child.tag) {
|
|
6372
6509
|
case 5:
|
|
6373
|
-
instance$
|
|
6510
|
+
instance$89 = committedLanes.child.stateNode;
|
|
6374
6511
|
break;
|
|
6375
6512
|
case 1:
|
|
6376
|
-
instance$
|
|
6513
|
+
instance$89 = committedLanes.child.stateNode;
|
|
6377
6514
|
}
|
|
6378
6515
|
commitUpdateQueue(
|
|
6379
6516
|
committedLanes,
|
|
6380
|
-
updateQueue$
|
|
6381
|
-
instance$
|
|
6517
|
+
updateQueue$88,
|
|
6518
|
+
instance$89
|
|
6382
6519
|
);
|
|
6383
6520
|
}
|
|
6384
6521
|
break;
|
|
@@ -6393,7 +6530,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6393
6530
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6394
6531
|
onRender = _finishedWork$memoize2.onRender,
|
|
6395
6532
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6396
|
-
instance$
|
|
6533
|
+
instance$89 = commitTime;
|
|
6397
6534
|
current = null === current ? "mount" : "update";
|
|
6398
6535
|
currentUpdateIsNested && (current = "nested-update");
|
|
6399
6536
|
"function" === typeof onRender &&
|
|
@@ -6403,14 +6540,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6403
6540
|
committedLanes.actualDuration,
|
|
6404
6541
|
committedLanes.treeBaseDuration,
|
|
6405
6542
|
committedLanes.actualStartTime,
|
|
6406
|
-
instance$
|
|
6543
|
+
instance$89
|
|
6407
6544
|
);
|
|
6408
6545
|
"function" === typeof onCommit &&
|
|
6409
6546
|
onCommit(
|
|
6410
6547
|
committedLanes.memoizedProps.id,
|
|
6411
6548
|
current,
|
|
6412
6549
|
effectDuration,
|
|
6413
|
-
instance$
|
|
6550
|
+
instance$89
|
|
6414
6551
|
);
|
|
6415
6552
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6416
6553
|
var parentFiber = committedLanes.return;
|
|
@@ -6439,28 +6576,28 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6439
6576
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6440
6577
|
);
|
|
6441
6578
|
}
|
|
6442
|
-
if (committedLanes.flags &
|
|
6443
|
-
instance$
|
|
6579
|
+
if (committedLanes.flags & 512) {
|
|
6580
|
+
instance$89 = void 0;
|
|
6444
6581
|
current = committedLanes;
|
|
6445
6582
|
var ref = current.ref;
|
|
6446
6583
|
if (null !== ref) {
|
|
6447
6584
|
var instance$jscomp$0 = current.stateNode;
|
|
6448
6585
|
switch (current.tag) {
|
|
6449
6586
|
case 5:
|
|
6450
|
-
instance$
|
|
6587
|
+
instance$89 = instance$jscomp$0;
|
|
6451
6588
|
break;
|
|
6452
6589
|
default:
|
|
6453
|
-
instance$
|
|
6590
|
+
instance$89 = instance$jscomp$0;
|
|
6454
6591
|
}
|
|
6455
6592
|
if ("function" === typeof ref)
|
|
6456
6593
|
if (current.mode & 2)
|
|
6457
6594
|
try {
|
|
6458
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6595
|
+
startLayoutEffectTimer(), ref(instance$89);
|
|
6459
6596
|
} finally {
|
|
6460
6597
|
recordLayoutEffectDuration(current);
|
|
6461
6598
|
}
|
|
6462
|
-
else ref(instance$
|
|
6463
|
-
else ref.current = instance$
|
|
6599
|
+
else ref(instance$89);
|
|
6600
|
+
else ref.current = instance$89;
|
|
6464
6601
|
}
|
|
6465
6602
|
}
|
|
6466
6603
|
} catch (error) {
|
|
@@ -6475,10 +6612,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6475
6612
|
nextEffect = null;
|
|
6476
6613
|
break;
|
|
6477
6614
|
}
|
|
6478
|
-
instance$
|
|
6479
|
-
if (null !== instance$
|
|
6480
|
-
instance$
|
|
6481
|
-
nextEffect = instance$
|
|
6615
|
+
instance$89 = committedLanes.sibling;
|
|
6616
|
+
if (null !== instance$89) {
|
|
6617
|
+
instance$89.return = committedLanes.return;
|
|
6618
|
+
nextEffect = instance$89;
|
|
6482
6619
|
break;
|
|
6483
6620
|
}
|
|
6484
6621
|
nextEffect = committedLanes.return;
|
|
@@ -6657,15 +6794,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6657
6794
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6658
6795
|
);
|
|
6659
6796
|
if (0 === lanes) return null;
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6797
|
+
if (
|
|
6798
|
+
includesBlockingLane(root, lanes) ||
|
|
6799
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6800
|
+
didTimeout
|
|
6801
|
+
)
|
|
6802
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6803
|
+
else {
|
|
6667
6804
|
didTimeout = lanes;
|
|
6668
|
-
|
|
6805
|
+
var prevExecutionContext = executionContext;
|
|
6669
6806
|
executionContext |= 2;
|
|
6670
6807
|
var prevDispatcher = pushDispatcher();
|
|
6671
6808
|
if (
|
|
@@ -6692,30 +6829,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6692
6829
|
while (1);
|
|
6693
6830
|
resetContextDependencies();
|
|
6694
6831
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6695
|
-
executionContext =
|
|
6832
|
+
executionContext = prevExecutionContext;
|
|
6696
6833
|
null !== workInProgress
|
|
6697
6834
|
? (didTimeout = 0)
|
|
6698
6835
|
: ((workInProgressRoot = null),
|
|
6699
6836
|
(workInProgressRootRenderLanes = 0),
|
|
6700
6837
|
(didTimeout = workInProgressRootExitStatus));
|
|
6701
|
-
}
|
|
6838
|
+
}
|
|
6702
6839
|
if (0 !== didTimeout) {
|
|
6703
6840
|
2 === didTimeout &&
|
|
6704
|
-
((
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
0 !== prevDispatcher &&
|
|
6709
|
-
((lanes = prevDispatcher),
|
|
6710
|
-
(didTimeout = renderRootSync(root, prevDispatcher))),
|
|
6711
|
-
(executionContext = JSCompiler_inline_result));
|
|
6841
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6842
|
+
0 !== prevExecutionContext &&
|
|
6843
|
+
((lanes = prevExecutionContext),
|
|
6844
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6712
6845
|
if (1 === didTimeout)
|
|
6713
6846
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6714
6847
|
prepareFreshStack(root, 0),
|
|
6715
6848
|
markRootSuspended$1(root, lanes),
|
|
6716
6849
|
ensureRootIsScheduled(root, now()),
|
|
6717
6850
|
originalCallbackNode);
|
|
6718
|
-
|
|
6851
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6852
|
+
prevExecutionContext = root.current.alternate;
|
|
6853
|
+
if (
|
|
6854
|
+
prevDispatcher &&
|
|
6855
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6856
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6857
|
+
2 === didTimeout &&
|
|
6858
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6859
|
+
0 !== prevDispatcher &&
|
|
6860
|
+
((lanes = prevDispatcher),
|
|
6861
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6862
|
+
1 === didTimeout)
|
|
6863
|
+
)
|
|
6864
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6865
|
+
prepareFreshStack(root, 0),
|
|
6866
|
+
markRootSuspended$1(root, lanes),
|
|
6867
|
+
ensureRootIsScheduled(root, now()),
|
|
6868
|
+
originalCallbackNode);
|
|
6869
|
+
root.finishedWork = prevExecutionContext;
|
|
6719
6870
|
root.finishedLanes = lanes;
|
|
6720
6871
|
switch (didTimeout) {
|
|
6721
6872
|
case 0:
|
|
@@ -6732,10 +6883,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6732
6883
|
10 < didTimeout)
|
|
6733
6884
|
) {
|
|
6734
6885
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6735
|
-
|
|
6736
|
-
if ((
|
|
6886
|
+
prevExecutionContext = root.suspendedLanes;
|
|
6887
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6737
6888
|
requestEventTime();
|
|
6738
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
6889
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6739
6890
|
break;
|
|
6740
6891
|
}
|
|
6741
6892
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6750,14 +6901,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6750
6901
|
markRootSuspended$1(root, lanes);
|
|
6751
6902
|
if ((lanes & 4194240) === lanes) break;
|
|
6752
6903
|
didTimeout = root.eventTimes;
|
|
6753
|
-
for (
|
|
6904
|
+
for (prevExecutionContext = -1; 0 < lanes; )
|
|
6754
6905
|
(memoizedUpdaters = 31 - clz32(lanes)),
|
|
6755
6906
|
(prevDispatcher = 1 << memoizedUpdaters),
|
|
6756
6907
|
(memoizedUpdaters = didTimeout[memoizedUpdaters]),
|
|
6757
|
-
memoizedUpdaters >
|
|
6758
|
-
(
|
|
6908
|
+
memoizedUpdaters > prevExecutionContext &&
|
|
6909
|
+
(prevExecutionContext = memoizedUpdaters),
|
|
6759
6910
|
(lanes &= ~prevDispatcher);
|
|
6760
|
-
lanes =
|
|
6911
|
+
lanes = prevExecutionContext;
|
|
6761
6912
|
lanes = now() - lanes;
|
|
6762
6913
|
lanes =
|
|
6763
6914
|
(120 > lanes
|
|
@@ -6794,6 +6945,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6794
6945
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6795
6946
|
: null;
|
|
6796
6947
|
}
|
|
6948
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6949
|
+
var prevExecutionContext = executionContext;
|
|
6950
|
+
executionContext |= 8;
|
|
6951
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
6952
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6953
|
+
executionContext = prevExecutionContext;
|
|
6954
|
+
return root;
|
|
6955
|
+
}
|
|
6956
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6957
|
+
for (var node = finishedWork; ; ) {
|
|
6958
|
+
if (node.flags & 16384) {
|
|
6959
|
+
var updateQueue = node.updateQueue;
|
|
6960
|
+
if (
|
|
6961
|
+
null !== updateQueue &&
|
|
6962
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6963
|
+
)
|
|
6964
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6965
|
+
var check = updateQueue[i],
|
|
6966
|
+
getSnapshot = check.getSnapshot;
|
|
6967
|
+
check = check.value;
|
|
6968
|
+
try {
|
|
6969
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6970
|
+
} catch (error) {
|
|
6971
|
+
return !1;
|
|
6972
|
+
}
|
|
6973
|
+
}
|
|
6974
|
+
}
|
|
6975
|
+
updateQueue = node.child;
|
|
6976
|
+
if (node.subtreeFlags & 16384 && null !== updateQueue)
|
|
6977
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6978
|
+
else {
|
|
6979
|
+
if (node === finishedWork) break;
|
|
6980
|
+
for (; null === node.sibling; ) {
|
|
6981
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6982
|
+
node = node.return;
|
|
6983
|
+
}
|
|
6984
|
+
node.sibling.return = node.return;
|
|
6985
|
+
node = node.sibling;
|
|
6986
|
+
}
|
|
6987
|
+
}
|
|
6988
|
+
return !0;
|
|
6989
|
+
}
|
|
6797
6990
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6798
6991
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6799
6992
|
suspendedLanes &= ~workInProgressRootUpdatedLanes;
|
|
@@ -6818,7 +7011,7 @@ function performSyncWorkOnRoot(root) {
|
|
|
6818
7011
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6819
7012
|
var prevExecutionContext = executionContext;
|
|
6820
7013
|
executionContext |= 8;
|
|
6821
|
-
root.
|
|
7014
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
6822
7015
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6823
7016
|
0 !== errorRetryLanes &&
|
|
6824
7017
|
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
|
|
@@ -6945,7 +7138,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6945
7138
|
sourceFiber = erroredWork,
|
|
6946
7139
|
value = thrownValue;
|
|
6947
7140
|
thrownValue = workInProgressRootRenderLanes;
|
|
6948
|
-
sourceFiber.flags |=
|
|
7141
|
+
sourceFiber.flags |= 32768;
|
|
6949
7142
|
isDevToolsPresent && restorePendingUpdaters(root, thrownValue);
|
|
6950
7143
|
if (
|
|
6951
7144
|
null !== value &&
|
|
@@ -6953,64 +7146,76 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6953
7146
|
"function" === typeof value.then
|
|
6954
7147
|
) {
|
|
6955
7148
|
var wakeable = value,
|
|
6956
|
-
|
|
7149
|
+
sourceFiber$jscomp$0 = sourceFiber,
|
|
7150
|
+
tag = sourceFiber$jscomp$0.tag;
|
|
6957
7151
|
if (
|
|
6958
|
-
0 === (sourceFiber.mode & 1) &&
|
|
7152
|
+
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
6959
7153
|
(0 === tag || 11 === tag || 15 === tag)
|
|
6960
7154
|
) {
|
|
6961
|
-
var currentSource = sourceFiber.alternate;
|
|
7155
|
+
var currentSource = sourceFiber$jscomp$0.alternate;
|
|
6962
7156
|
currentSource
|
|
6963
|
-
? ((sourceFiber.updateQueue = currentSource.updateQueue),
|
|
6964
|
-
(sourceFiber.memoizedState =
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
7157
|
+
? ((sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue),
|
|
7158
|
+
(sourceFiber$jscomp$0.memoizedState =
|
|
7159
|
+
currentSource.memoizedState),
|
|
7160
|
+
(sourceFiber$jscomp$0.lanes = currentSource.lanes))
|
|
7161
|
+
: ((sourceFiber$jscomp$0.updateQueue = null),
|
|
7162
|
+
(sourceFiber$jscomp$0.memoizedState = null));
|
|
6968
7163
|
}
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
7164
|
+
b: {
|
|
7165
|
+
sourceFiber$jscomp$0 = returnFiber;
|
|
7166
|
+
var sourceFiber$jscomp$1 = sourceFiber,
|
|
7167
|
+
rootRenderLanes = thrownValue,
|
|
7168
|
+
hasInvisibleParentBoundary =
|
|
7169
|
+
0 !== (suspenseStackCursor.current & 1),
|
|
7170
|
+
node = sourceFiber$jscomp$0;
|
|
7171
|
+
do {
|
|
7172
|
+
var JSCompiler_temp;
|
|
7173
|
+
if ((JSCompiler_temp = 13 === node.tag)) {
|
|
7174
|
+
var nextState = node.memoizedState;
|
|
7175
|
+
JSCompiler_temp =
|
|
7176
|
+
null !== nextState
|
|
7177
|
+
? null !== nextState.dehydrated
|
|
7178
|
+
? !0
|
|
7179
|
+
: !1
|
|
7180
|
+
: !0 !== node.memoizedProps.unstable_avoidThisFallback
|
|
6979
7181
|
? !0
|
|
6980
|
-
:
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
}
|
|
6988
|
-
if (JSCompiler_temp) {
|
|
6989
|
-
var wakeables = workInProgress$34.updateQueue;
|
|
6990
|
-
if (null === wakeables) {
|
|
6991
|
-
var updateQueue = new Set();
|
|
6992
|
-
updateQueue.add(wakeable);
|
|
6993
|
-
workInProgress$34.updateQueue = updateQueue;
|
|
6994
|
-
} else wakeables.add(wakeable);
|
|
6995
|
-
if (
|
|
6996
|
-
0 === (workInProgress$34.mode & 1) &&
|
|
6997
|
-
workInProgress$34 !== returnFiber
|
|
6998
|
-
) {
|
|
6999
|
-
workInProgress$34.flags |= 128;
|
|
7000
|
-
sourceFiber.flags |= 32768;
|
|
7001
|
-
sourceFiber.flags &= -10053;
|
|
7002
|
-
if (1 === sourceFiber.tag)
|
|
7003
|
-
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
7182
|
+
: hasInvisibleParentBoundary
|
|
7183
|
+
? !1
|
|
7184
|
+
: !0;
|
|
7185
|
+
}
|
|
7186
|
+
if (JSCompiler_temp) {
|
|
7187
|
+
if (0 === (node.mode & 1)) {
|
|
7188
|
+
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
|
|
7004
7189
|
else {
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7190
|
+
node.flags |= 128;
|
|
7191
|
+
sourceFiber$jscomp$1.flags |= 131072;
|
|
7192
|
+
sourceFiber$jscomp$1.flags &= -52805;
|
|
7193
|
+
if (1 === sourceFiber$jscomp$1.tag)
|
|
7194
|
+
if (null === sourceFiber$jscomp$1.alternate)
|
|
7195
|
+
sourceFiber$jscomp$1.tag = 17;
|
|
7196
|
+
else {
|
|
7197
|
+
var update = createUpdate(-1, 1);
|
|
7198
|
+
update.tag = 2;
|
|
7199
|
+
enqueueUpdate(sourceFiber$jscomp$1, update);
|
|
7200
|
+
}
|
|
7201
|
+
sourceFiber$jscomp$1.lanes |= 1;
|
|
7008
7202
|
}
|
|
7009
|
-
|
|
7010
|
-
|
|
7203
|
+
var suspenseBoundary = node;
|
|
7204
|
+
break b;
|
|
7205
|
+
}
|
|
7206
|
+
node.flags |= 65536;
|
|
7207
|
+
node.lanes = rootRenderLanes;
|
|
7208
|
+
suspenseBoundary = node;
|
|
7209
|
+
break b;
|
|
7011
7210
|
}
|
|
7012
|
-
|
|
7013
|
-
|
|
7211
|
+
node = node.return;
|
|
7212
|
+
} while (null !== node);
|
|
7213
|
+
suspenseBoundary = null;
|
|
7214
|
+
}
|
|
7215
|
+
if (null !== suspenseBoundary) {
|
|
7216
|
+
value = void 0;
|
|
7217
|
+
sourceFiber = suspenseBoundary;
|
|
7218
|
+
if (sourceFiber.mode & 1) {
|
|
7014
7219
|
var pingCache = root.pingCache;
|
|
7015
7220
|
null === pingCache
|
|
7016
7221
|
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
|
|
@@ -7019,72 +7224,75 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7019
7224
|
: ((value = pingCache.get(wakeable)),
|
|
7020
7225
|
void 0 === value &&
|
|
7021
7226
|
((value = new Set()), pingCache.set(wakeable, value)));
|
|
7022
|
-
if (!value.has(
|
|
7023
|
-
value.add(
|
|
7227
|
+
if (!value.has(thrownValue)) {
|
|
7228
|
+
value.add(thrownValue);
|
|
7024
7229
|
var ping = pingSuspendedRoot.bind(
|
|
7025
7230
|
null,
|
|
7026
7231
|
root,
|
|
7027
7232
|
wakeable,
|
|
7028
|
-
|
|
7233
|
+
thrownValue
|
|
7029
7234
|
);
|
|
7030
|
-
isDevToolsPresent && restorePendingUpdaters(root,
|
|
7235
|
+
isDevToolsPresent && restorePendingUpdaters(root, thrownValue);
|
|
7031
7236
|
wakeable.then(ping, ping);
|
|
7032
7237
|
}
|
|
7033
|
-
workInProgress$34.flags |= 16384;
|
|
7034
|
-
workInProgress$34.lanes = thrownValue;
|
|
7035
|
-
break a;
|
|
7036
7238
|
}
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7239
|
+
var wakeables = sourceFiber.updateQueue;
|
|
7240
|
+
if (null === wakeables) {
|
|
7241
|
+
var updateQueue = new Set();
|
|
7242
|
+
updateQueue.add(wakeable);
|
|
7243
|
+
sourceFiber.updateQueue = updateQueue;
|
|
7244
|
+
} else wakeables.add(wakeable);
|
|
7245
|
+
break a;
|
|
7246
|
+
} else
|
|
7247
|
+
value = Error(
|
|
7248
|
+
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
7249
|
+
" 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."
|
|
7250
|
+
);
|
|
7043
7251
|
}
|
|
7044
|
-
|
|
7252
|
+
4 !== workInProgressRootExitStatus &&
|
|
7045
7253
|
(workInProgressRootExitStatus = 2);
|
|
7046
7254
|
value = createCapturedValue(value, sourceFiber);
|
|
7047
|
-
|
|
7255
|
+
root = returnFiber;
|
|
7048
7256
|
do {
|
|
7049
|
-
switch (
|
|
7257
|
+
switch (root.tag) {
|
|
7050
7258
|
case 3:
|
|
7051
|
-
|
|
7052
|
-
|
|
7259
|
+
wakeable = value;
|
|
7260
|
+
root.flags |= 65536;
|
|
7053
7261
|
thrownValue &= -thrownValue;
|
|
7054
|
-
|
|
7055
|
-
var update$
|
|
7056
|
-
workInProgress$34,
|
|
7262
|
+
root.lanes |= thrownValue;
|
|
7263
|
+
var update$jscomp$0 = createRootErrorUpdate(
|
|
7057
7264
|
root,
|
|
7265
|
+
wakeable,
|
|
7058
7266
|
thrownValue
|
|
7059
7267
|
);
|
|
7060
|
-
enqueueCapturedUpdate(
|
|
7268
|
+
enqueueCapturedUpdate(root, update$jscomp$0);
|
|
7061
7269
|
break a;
|
|
7062
7270
|
case 1:
|
|
7063
|
-
|
|
7064
|
-
var ctor =
|
|
7065
|
-
instance =
|
|
7271
|
+
wakeable = value;
|
|
7272
|
+
var ctor = root.type,
|
|
7273
|
+
instance = root.stateNode;
|
|
7066
7274
|
if (
|
|
7067
|
-
0 === (
|
|
7275
|
+
0 === (root.flags & 128) &&
|
|
7068
7276
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
7069
7277
|
(null !== instance &&
|
|
7070
7278
|
"function" === typeof instance.componentDidCatch &&
|
|
7071
7279
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7072
7280
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
7073
7281
|
) {
|
|
7074
|
-
|
|
7282
|
+
root.flags |= 65536;
|
|
7075
7283
|
thrownValue &= -thrownValue;
|
|
7076
|
-
|
|
7077
|
-
var update$
|
|
7078
|
-
workInProgress$34,
|
|
7284
|
+
root.lanes |= thrownValue;
|
|
7285
|
+
var update$35 = createClassErrorUpdate(
|
|
7079
7286
|
root,
|
|
7287
|
+
wakeable,
|
|
7080
7288
|
thrownValue
|
|
7081
7289
|
);
|
|
7082
|
-
enqueueCapturedUpdate(
|
|
7290
|
+
enqueueCapturedUpdate(root, update$35);
|
|
7083
7291
|
break a;
|
|
7084
7292
|
}
|
|
7085
7293
|
}
|
|
7086
|
-
|
|
7087
|
-
} while (null !==
|
|
7294
|
+
root = root.return;
|
|
7295
|
+
} while (null !== root);
|
|
7088
7296
|
}
|
|
7089
7297
|
completeUnitOfWork(erroredWork);
|
|
7090
7298
|
} catch (yetAnotherThrownValue) {
|
|
@@ -7161,7 +7369,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7161
7369
|
do {
|
|
7162
7370
|
var current = completedWork.alternate;
|
|
7163
7371
|
unitOfWork = completedWork.return;
|
|
7164
|
-
if (0 === (completedWork.flags &
|
|
7372
|
+
if (0 === (completedWork.flags & 32768)) {
|
|
7165
7373
|
if (0 === (completedWork.mode & 2))
|
|
7166
7374
|
current = completeWork(current, completedWork, subtreeRenderLanes);
|
|
7167
7375
|
else {
|
|
@@ -7178,7 +7386,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7178
7386
|
} else {
|
|
7179
7387
|
current = unwindWork(completedWork);
|
|
7180
7388
|
if (null !== current) {
|
|
7181
|
-
current.flags &=
|
|
7389
|
+
current.flags &= 32767;
|
|
7182
7390
|
workInProgress = current;
|
|
7183
7391
|
return;
|
|
7184
7392
|
}
|
|
@@ -7190,7 +7398,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7190
7398
|
completedWork.actualDuration = current;
|
|
7191
7399
|
}
|
|
7192
7400
|
null !== unitOfWork &&
|
|
7193
|
-
((unitOfWork.flags |=
|
|
7401
|
+
((unitOfWork.flags |= 32768),
|
|
7194
7402
|
(unitOfWork.subtreeFlags = 0),
|
|
7195
7403
|
(unitOfWork.deletions = null));
|
|
7196
7404
|
}
|
|
@@ -7237,16 +7445,16 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7237
7445
|
root === workInProgressRoot &&
|
|
7238
7446
|
((workInProgress = workInProgressRoot = null),
|
|
7239
7447
|
(workInProgressRootRenderLanes = 0));
|
|
7240
|
-
(0 === (finishedWork.subtreeFlags &
|
|
7241
|
-
0 === (finishedWork.flags &
|
|
7448
|
+
(0 === (finishedWork.subtreeFlags & 2064) &&
|
|
7449
|
+
0 === (finishedWork.flags & 2064)) ||
|
|
7242
7450
|
rootDoesHavePassiveEffects ||
|
|
7243
7451
|
((rootDoesHavePassiveEffects = !0),
|
|
7244
7452
|
scheduleCallback$1(NormalPriority, function() {
|
|
7245
7453
|
flushPassiveEffects();
|
|
7246
7454
|
return null;
|
|
7247
7455
|
}));
|
|
7248
|
-
remainingLanes = 0 !== (finishedWork.flags &
|
|
7249
|
-
if (0 !== (finishedWork.subtreeFlags &
|
|
7456
|
+
remainingLanes = 0 !== (finishedWork.flags & 15990);
|
|
7457
|
+
if (0 !== (finishedWork.subtreeFlags & 15990) || remainingLanes) {
|
|
7250
7458
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
7251
7459
|
ReactCurrentBatchConfig$2.transition = 0;
|
|
7252
7460
|
var previousPriority = currentUpdatePriority;
|
|
@@ -7270,12 +7478,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7270
7478
|
(pendingPassiveEffectsLanes = lanes));
|
|
7271
7479
|
remainingLanes = root.pendingLanes;
|
|
7272
7480
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
7273
|
-
0 !== (remainingLanes & 1)
|
|
7274
|
-
? ((nestedUpdateScheduled = !0),
|
|
7275
|
-
root === rootWithNestedUpdates
|
|
7276
|
-
? nestedUpdateCount++
|
|
7277
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7278
|
-
: (nestedUpdateCount = 0);
|
|
7279
7481
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
7280
7482
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
|
7281
7483
|
ensureRootIsScheduled(root, now());
|
|
@@ -7287,6 +7489,13 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7287
7489
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
7288
7490
|
0 !== root.tag &&
|
|
7289
7491
|
flushPassiveEffects();
|
|
7492
|
+
remainingLanes = root.pendingLanes;
|
|
7493
|
+
0 !== (remainingLanes & 1)
|
|
7494
|
+
? ((nestedUpdateScheduled = !0),
|
|
7495
|
+
root === rootWithNestedUpdates
|
|
7496
|
+
? nestedUpdateCount++
|
|
7497
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7498
|
+
: (nestedUpdateCount = 0);
|
|
7290
7499
|
flushSyncCallbacks();
|
|
7291
7500
|
return null;
|
|
7292
7501
|
}
|
|
@@ -7325,9 +7534,9 @@ function flushPassiveEffects() {
|
|
|
7325
7534
|
case 15:
|
|
7326
7535
|
current.mode & 2
|
|
7327
7536
|
? ((passiveEffectStartTime = now$1()),
|
|
7328
|
-
commitHookEffectListUnmount(
|
|
7537
|
+
commitHookEffectListUnmount(8, current, fiber),
|
|
7329
7538
|
recordPassiveEffectDuration(current))
|
|
7330
|
-
: commitHookEffectListUnmount(
|
|
7539
|
+
: commitHookEffectListUnmount(8, current, fiber);
|
|
7331
7540
|
}
|
|
7332
7541
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
7333
7542
|
if (null !== child$jscomp$0)
|
|
@@ -7367,21 +7576,21 @@ function flushPassiveEffects() {
|
|
|
7367
7576
|
nextEffect = fiber;
|
|
7368
7577
|
}
|
|
7369
7578
|
}
|
|
7370
|
-
if (0 !== (fiber.subtreeFlags &
|
|
7579
|
+
if (0 !== (fiber.subtreeFlags & 2064) && null !== child)
|
|
7371
7580
|
(child.return = fiber), (nextEffect = child);
|
|
7372
7581
|
else
|
|
7373
7582
|
b: for (; null !== nextEffect; ) {
|
|
7374
7583
|
fiber = nextEffect;
|
|
7375
|
-
if (0 !== (fiber.flags &
|
|
7584
|
+
if (0 !== (fiber.flags & 2048))
|
|
7376
7585
|
switch (((i = fiber), i.tag)) {
|
|
7377
7586
|
case 0:
|
|
7378
7587
|
case 11:
|
|
7379
7588
|
case 15:
|
|
7380
7589
|
i.mode & 2
|
|
7381
7590
|
? ((passiveEffectStartTime = now$1()),
|
|
7382
|
-
commitHookEffectListUnmount(
|
|
7591
|
+
commitHookEffectListUnmount(9, i, i.return),
|
|
7383
7592
|
recordPassiveEffectDuration(i))
|
|
7384
|
-
: commitHookEffectListUnmount(
|
|
7593
|
+
: commitHookEffectListUnmount(9, i, i.return);
|
|
7385
7594
|
}
|
|
7386
7595
|
var sibling$jscomp$0 = fiber.sibling;
|
|
7387
7596
|
if (null !== sibling$jscomp$0) {
|
|
@@ -7396,12 +7605,12 @@ function flushPassiveEffects() {
|
|
|
7396
7605
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
7397
7606
|
child = nextEffect;
|
|
7398
7607
|
var firstChild = child.child;
|
|
7399
|
-
if (0 !== (child.subtreeFlags &
|
|
7608
|
+
if (0 !== (child.subtreeFlags & 2064) && null !== firstChild)
|
|
7400
7609
|
(firstChild.return = child), (nextEffect = firstChild);
|
|
7401
7610
|
else
|
|
7402
7611
|
b: for (child = finishedWork; null !== nextEffect; ) {
|
|
7403
7612
|
deletions = nextEffect;
|
|
7404
|
-
if (0 !== (deletions.flags &
|
|
7613
|
+
if (0 !== (deletions.flags & 2048))
|
|
7405
7614
|
try {
|
|
7406
7615
|
switch (((fiberToDelete = deletions), fiberToDelete.tag)) {
|
|
7407
7616
|
case 0:
|
|
@@ -7410,11 +7619,11 @@ function flushPassiveEffects() {
|
|
|
7410
7619
|
if (fiberToDelete.mode & 2) {
|
|
7411
7620
|
passiveEffectStartTime = now$1();
|
|
7412
7621
|
try {
|
|
7413
|
-
commitHookEffectListMount(
|
|
7622
|
+
commitHookEffectListMount(9, fiberToDelete);
|
|
7414
7623
|
} finally {
|
|
7415
7624
|
recordPassiveEffectDuration(fiberToDelete);
|
|
7416
7625
|
}
|
|
7417
|
-
} else commitHookEffectListMount(
|
|
7626
|
+
} else commitHookEffectListMount(9, fiberToDelete);
|
|
7418
7627
|
}
|
|
7419
7628
|
} catch (error) {
|
|
7420
7629
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -7609,7 +7818,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7609
7818
|
renderLanes
|
|
7610
7819
|
)
|
|
7611
7820
|
);
|
|
7612
|
-
didReceiveUpdate = 0 !== (current.flags &
|
|
7821
|
+
didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
|
|
7613
7822
|
}
|
|
7614
7823
|
else didReceiveUpdate = !1;
|
|
7615
7824
|
workInProgress.lanes = 0;
|
|
@@ -8090,7 +8299,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
8090
8299
|
(workInProgress.deletions = null),
|
|
8091
8300
|
(workInProgress.actualDuration = 0),
|
|
8092
8301
|
(workInProgress.actualStartTime = -1));
|
|
8093
|
-
workInProgress.flags = current.flags &
|
|
8302
|
+
workInProgress.flags = current.flags & 7340032;
|
|
8094
8303
|
workInProgress.childLanes = current.childLanes;
|
|
8095
8304
|
workInProgress.lanes = current.lanes;
|
|
8096
8305
|
workInProgress.child = current.child;
|
|
@@ -8186,8 +8395,7 @@ function createFiberFromTypeAndProps(
|
|
|
8186
8395
|
}
|
|
8187
8396
|
throw Error(
|
|
8188
8397
|
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
8189
|
-
(null == type ? type : typeof type) +
|
|
8190
|
-
"."
|
|
8398
|
+
((null == type ? type : typeof type) + ".")
|
|
8191
8399
|
);
|
|
8192
8400
|
}
|
|
8193
8401
|
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
@@ -8233,7 +8441,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
8233
8441
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
8234
8442
|
this.timeoutHandle = -1;
|
|
8235
8443
|
this.pendingContext = this.context = null;
|
|
8236
|
-
this.
|
|
8444
|
+
this.isDehydrated = hydrate;
|
|
8237
8445
|
this.callbackNode = null;
|
|
8238
8446
|
this.callbackPriority = 0;
|
|
8239
8447
|
this.eventTimes = createLaneMap(0);
|
|
@@ -8261,9 +8469,9 @@ function findHostInstance(component) {
|
|
|
8261
8469
|
if (void 0 === fiber) {
|
|
8262
8470
|
if ("function" === typeof component.render)
|
|
8263
8471
|
throw Error("Unable to find node on an unmounted component.");
|
|
8472
|
+
component = Object.keys(component).join(",");
|
|
8264
8473
|
throw Error(
|
|
8265
|
-
"Argument appears to not be a ReactComponent. Keys: " +
|
|
8266
|
-
Object.keys(component)
|
|
8474
|
+
"Argument appears to not be a ReactComponent. Keys: " + component
|
|
8267
8475
|
);
|
|
8268
8476
|
}
|
|
8269
8477
|
component = findCurrentHostFiber(fiber);
|
|
@@ -8454,10 +8662,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8454
8662
|
}
|
|
8455
8663
|
};
|
|
8456
8664
|
var roots = new Map(),
|
|
8457
|
-
devToolsConfig$jscomp$
|
|
8665
|
+
devToolsConfig$jscomp$inline_1006 = {
|
|
8458
8666
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8459
8667
|
bundleType: 0,
|
|
8460
|
-
version: "18.0.0-
|
|
8668
|
+
version: "18.0.0-afcb9cdc9-20211008",
|
|
8461
8669
|
rendererPackageName: "react-native-renderer",
|
|
8462
8670
|
rendererConfig: {
|
|
8463
8671
|
getInspectorDataForViewTag: function() {
|
|
@@ -8472,11 +8680,11 @@ var roots = new Map(),
|
|
|
8472
8680
|
}.bind(null, findNodeHandle)
|
|
8473
8681
|
}
|
|
8474
8682
|
};
|
|
8475
|
-
var internals$jscomp$
|
|
8476
|
-
bundleType: devToolsConfig$jscomp$
|
|
8477
|
-
version: devToolsConfig$jscomp$
|
|
8478
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8479
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8683
|
+
var internals$jscomp$inline_1290 = {
|
|
8684
|
+
bundleType: devToolsConfig$jscomp$inline_1006.bundleType,
|
|
8685
|
+
version: devToolsConfig$jscomp$inline_1006.version,
|
|
8686
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1006.rendererPackageName,
|
|
8687
|
+
rendererConfig: devToolsConfig$jscomp$inline_1006.rendererConfig,
|
|
8480
8688
|
overrideHookState: null,
|
|
8481
8689
|
overrideHookStateDeletePath: null,
|
|
8482
8690
|
overrideHookStateRenamePath: null,
|
|
@@ -8492,26 +8700,26 @@ var internals$jscomp$inline_1287 = {
|
|
|
8492
8700
|
return null === fiber ? null : fiber.stateNode;
|
|
8493
8701
|
},
|
|
8494
8702
|
findFiberByHostInstance:
|
|
8495
|
-
devToolsConfig$jscomp$
|
|
8703
|
+
devToolsConfig$jscomp$inline_1006.findFiberByHostInstance ||
|
|
8496
8704
|
emptyFindFiberByHostInstance,
|
|
8497
8705
|
findHostInstancesForRefresh: null,
|
|
8498
8706
|
scheduleRefresh: null,
|
|
8499
8707
|
scheduleRoot: null,
|
|
8500
8708
|
setRefreshHandler: null,
|
|
8501
8709
|
getCurrentFiber: null,
|
|
8502
|
-
reconcilerVersion: "18.0.0-
|
|
8710
|
+
reconcilerVersion: "18.0.0-afcb9cdc9-20211008"
|
|
8503
8711
|
};
|
|
8504
8712
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8505
|
-
var hook$jscomp$
|
|
8713
|
+
var hook$jscomp$inline_1291 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8506
8714
|
if (
|
|
8507
|
-
!hook$jscomp$
|
|
8508
|
-
hook$jscomp$
|
|
8715
|
+
!hook$jscomp$inline_1291.isDisabled &&
|
|
8716
|
+
hook$jscomp$inline_1291.supportsFiber
|
|
8509
8717
|
)
|
|
8510
8718
|
try {
|
|
8511
|
-
(rendererID = hook$jscomp$
|
|
8512
|
-
internals$jscomp$
|
|
8719
|
+
(rendererID = hook$jscomp$inline_1291.inject(
|
|
8720
|
+
internals$jscomp$inline_1290
|
|
8513
8721
|
)),
|
|
8514
|
-
(injectedHook = hook$jscomp$
|
|
8722
|
+
(injectedHook = hook$jscomp$inline_1291);
|
|
8515
8723
|
} catch (err) {}
|
|
8516
8724
|
}
|
|
8517
8725
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|