@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<<0641813b146d4710c4029f156d65891e>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -783,18 +783,16 @@ function recomputePluginOrdering() {
|
|
|
783
783
|
for (var pluginName in namesToPlugins) {
|
|
784
784
|
var pluginModule = namesToPlugins[pluginName],
|
|
785
785
|
pluginIndex = eventPluginOrder.indexOf(pluginName);
|
|
786
|
-
if (
|
|
786
|
+
if (-1 >= pluginIndex)
|
|
787
787
|
throw Error(
|
|
788
788
|
"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" +
|
|
789
|
-
pluginName +
|
|
790
|
-
"`."
|
|
789
|
+
(pluginName + "`.")
|
|
791
790
|
);
|
|
792
791
|
if (!plugins[pluginIndex]) {
|
|
793
792
|
if (!pluginModule.extractEvents)
|
|
794
793
|
throw Error(
|
|
795
794
|
"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" +
|
|
796
|
-
pluginName +
|
|
797
|
-
"` does not."
|
|
795
|
+
(pluginName + "` does not.")
|
|
798
796
|
);
|
|
799
797
|
plugins[pluginIndex] = pluginModule;
|
|
800
798
|
pluginIndex = pluginModule.eventTypes;
|
|
@@ -805,8 +803,7 @@ function recomputePluginOrdering() {
|
|
|
805
803
|
if (eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0))
|
|
806
804
|
throw Error(
|
|
807
805
|
"EventPluginRegistry: More than one plugin attempted to publish the same event name, `" +
|
|
808
|
-
eventName$jscomp$0 +
|
|
809
|
-
"`."
|
|
806
|
+
(eventName$jscomp$0 + "`.")
|
|
810
807
|
);
|
|
811
808
|
eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;
|
|
812
809
|
var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
|
|
@@ -846,8 +843,7 @@ function publishRegistrationName(registrationName, pluginModule) {
|
|
|
846
843
|
if (registrationNameModules[registrationName])
|
|
847
844
|
throw Error(
|
|
848
845
|
"EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" +
|
|
849
|
-
registrationName +
|
|
850
|
-
"`."
|
|
846
|
+
(registrationName + "`.")
|
|
851
847
|
);
|
|
852
848
|
registrationNameModules[registrationName] = pluginModule;
|
|
853
849
|
}
|
|
@@ -931,7 +927,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
931
927
|
"ReactNativeBridgeEventPlugin"
|
|
932
928
|
]);
|
|
933
929
|
recomputePluginOrdering();
|
|
934
|
-
var injectedNamesToPlugins$jscomp$
|
|
930
|
+
var injectedNamesToPlugins$jscomp$inline_219 = {
|
|
935
931
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
936
932
|
ReactNativeBridgeEventPlugin: {
|
|
937
933
|
eventTypes: {},
|
|
@@ -966,34 +962,33 @@ var injectedNamesToPlugins$jscomp$inline_221 = {
|
|
|
966
962
|
}
|
|
967
963
|
}
|
|
968
964
|
},
|
|
969
|
-
isOrderingDirty$jscomp$
|
|
970
|
-
pluginName$jscomp$
|
|
971
|
-
for (pluginName$jscomp$
|
|
965
|
+
isOrderingDirty$jscomp$inline_220 = !1,
|
|
966
|
+
pluginName$jscomp$inline_221;
|
|
967
|
+
for (pluginName$jscomp$inline_221 in injectedNamesToPlugins$jscomp$inline_219)
|
|
972
968
|
if (
|
|
973
|
-
injectedNamesToPlugins$jscomp$
|
|
974
|
-
pluginName$jscomp$
|
|
969
|
+
injectedNamesToPlugins$jscomp$inline_219.hasOwnProperty(
|
|
970
|
+
pluginName$jscomp$inline_221
|
|
975
971
|
)
|
|
976
972
|
) {
|
|
977
|
-
var pluginModule$jscomp$
|
|
978
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
+
var pluginModule$jscomp$inline_222 =
|
|
974
|
+
injectedNamesToPlugins$jscomp$inline_219[pluginName$jscomp$inline_221];
|
|
979
975
|
if (
|
|
980
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
981
|
-
namesToPlugins[pluginName$jscomp$
|
|
982
|
-
pluginModule$jscomp$
|
|
976
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_221) ||
|
|
977
|
+
namesToPlugins[pluginName$jscomp$inline_221] !==
|
|
978
|
+
pluginModule$jscomp$inline_222
|
|
983
979
|
) {
|
|
984
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
980
|
+
if (namesToPlugins[pluginName$jscomp$inline_221])
|
|
985
981
|
throw Error(
|
|
986
982
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
987
|
-
pluginName$jscomp$
|
|
988
|
-
"`."
|
|
983
|
+
(pluginName$jscomp$inline_221 + "`.")
|
|
989
984
|
);
|
|
990
985
|
namesToPlugins[
|
|
991
|
-
pluginName$jscomp$
|
|
992
|
-
] = pluginModule$jscomp$
|
|
993
|
-
isOrderingDirty$jscomp$
|
|
986
|
+
pluginName$jscomp$inline_221
|
|
987
|
+
] = pluginModule$jscomp$inline_222;
|
|
988
|
+
isOrderingDirty$jscomp$inline_220 = !0;
|
|
994
989
|
}
|
|
995
990
|
}
|
|
996
|
-
isOrderingDirty$jscomp$
|
|
991
|
+
isOrderingDirty$jscomp$inline_220 && recomputePluginOrdering();
|
|
997
992
|
function getInstanceFromInstance(instanceHandle) {
|
|
998
993
|
return instanceHandle;
|
|
999
994
|
}
|
|
@@ -1192,7 +1187,7 @@ function getNearestMountedFiber(fiber) {
|
|
|
1192
1187
|
fiber = node;
|
|
1193
1188
|
do
|
|
1194
1189
|
(node = fiber),
|
|
1195
|
-
0 !== (node.flags &
|
|
1190
|
+
0 !== (node.flags & 4098) && (nearestMounted = node.return),
|
|
1196
1191
|
(fiber = node.return);
|
|
1197
1192
|
while (fiber);
|
|
1198
1193
|
}
|
|
@@ -1763,6 +1758,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1763
1758
|
root = root.pendingLanes & -1073741825;
|
|
1764
1759
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1765
1760
|
}
|
|
1761
|
+
function includesBlockingLane(root, lanes) {
|
|
1762
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1763
|
+
}
|
|
1766
1764
|
function createLaneMap(initial) {
|
|
1767
1765
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1768
1766
|
return laneMap;
|
|
@@ -2085,7 +2083,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2085
2083
|
: pop(didPerformWorkStackCursor);
|
|
2086
2084
|
push(didPerformWorkStackCursor, didChange);
|
|
2087
2085
|
}
|
|
2088
|
-
|
|
2086
|
+
function is(x, y) {
|
|
2087
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2088
|
+
}
|
|
2089
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2090
|
+
syncQueue = null,
|
|
2089
2091
|
includesLegacySyncCallbacks = !1,
|
|
2090
2092
|
isFlushingSyncQueue = !1;
|
|
2091
2093
|
function flushSyncCallbacks() {
|
|
@@ -2114,10 +2116,6 @@ function flushSyncCallbacks() {
|
|
|
2114
2116
|
return null;
|
|
2115
2117
|
}
|
|
2116
2118
|
var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
2117
|
-
function is(x, y) {
|
|
2118
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2119
|
-
}
|
|
2120
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
2121
2119
|
function shallowEqual(objA, objB) {
|
|
2122
2120
|
if (objectIs(objA, objB)) return !0;
|
|
2123
2121
|
if (
|
|
@@ -2402,7 +2400,7 @@ function processUpdateQueue(
|
|
|
2402
2400
|
newState = workInProgress;
|
|
2403
2401
|
break a;
|
|
2404
2402
|
case 3:
|
|
2405
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2403
|
+
workInProgress.flags = (workInProgress.flags & -65537) | 128;
|
|
2406
2404
|
case 0:
|
|
2407
2405
|
workInProgress = update.payload;
|
|
2408
2406
|
updateLane =
|
|
@@ -2655,7 +2653,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2655
2653
|
returnFiber +
|
|
2656
2654
|
". This error is likely caused by a bug in React. Please file an issue."
|
|
2657
2655
|
);
|
|
2658
|
-
var
|
|
2656
|
+
var resolvedInst = inst,
|
|
2657
|
+
stringRef = "" + returnFiber;
|
|
2659
2658
|
if (
|
|
2660
2659
|
null !== current &&
|
|
2661
2660
|
null !== current.ref &&
|
|
@@ -2664,8 +2663,8 @@ function coerceRef(returnFiber, current, element) {
|
|
|
2664
2663
|
)
|
|
2665
2664
|
return current.ref;
|
|
2666
2665
|
current = function(value) {
|
|
2667
|
-
var refs =
|
|
2668
|
-
refs === emptyRefsObject && (refs =
|
|
2666
|
+
var refs = resolvedInst.refs;
|
|
2667
|
+
refs === emptyRefsObject && (refs = resolvedInst.refs = {});
|
|
2669
2668
|
null === value ? delete refs[stringRef] : (refs[stringRef] = value);
|
|
2670
2669
|
};
|
|
2671
2670
|
current._stringRef = stringRef;
|
|
@@ -3364,7 +3363,7 @@ function renderWithHooks(
|
|
|
3364
3363
|
nextRenderLanes = 0;
|
|
3365
3364
|
do {
|
|
3366
3365
|
didScheduleRenderPhaseUpdateDuringThisPass = !1;
|
|
3367
|
-
if (
|
|
3366
|
+
if (25 <= nextRenderLanes)
|
|
3368
3367
|
throw Error(
|
|
3369
3368
|
"Too many re-renders. React limits the number of renders to prevent an infinite loop."
|
|
3370
3369
|
);
|
|
@@ -3465,19 +3464,18 @@ function updateReducer(reducer) {
|
|
|
3465
3464
|
(newBaseQueueLast = newBaseQueueLast.next = {
|
|
3466
3465
|
lane: 0,
|
|
3467
3466
|
action: update.action,
|
|
3468
|
-
|
|
3467
|
+
hasEagerState: update.hasEagerState,
|
|
3469
3468
|
eagerState: update.eagerState,
|
|
3470
3469
|
next: null
|
|
3471
3470
|
}),
|
|
3472
|
-
(current =
|
|
3473
|
-
update.
|
|
3474
|
-
|
|
3475
|
-
: reducer(current, update.action));
|
|
3471
|
+
(current = update.hasEagerState
|
|
3472
|
+
? update.eagerState
|
|
3473
|
+
: reducer(current, update.action));
|
|
3476
3474
|
else {
|
|
3477
3475
|
var clone = {
|
|
3478
3476
|
lane: updateLane,
|
|
3479
3477
|
action: update.action,
|
|
3480
|
-
|
|
3478
|
+
hasEagerState: update.hasEagerState,
|
|
3481
3479
|
eagerState: update.eagerState,
|
|
3482
3480
|
next: null
|
|
3483
3481
|
};
|
|
@@ -3617,7 +3615,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3617
3615
|
lastRenderedReducer: basicStateReducer,
|
|
3618
3616
|
lastRenderedState: snapshot
|
|
3619
3617
|
}),
|
|
3620
|
-
(hook.dispatch = setSnapshot =
|
|
3618
|
+
(hook.dispatch = setSnapshot = dispatchSetState.bind(
|
|
3621
3619
|
null,
|
|
3622
3620
|
currentlyRenderingFiber$1,
|
|
3623
3621
|
hook
|
|
@@ -3632,11 +3630,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3632
3630
|
var hook = updateWorkInProgressHook();
|
|
3633
3631
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3634
3632
|
}
|
|
3633
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3634
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3635
|
+
hook = mountWorkInProgressHook();
|
|
3636
|
+
var nextSnapshot = getSnapshot();
|
|
3637
|
+
var root = workInProgressRoot;
|
|
3638
|
+
if (null === root)
|
|
3639
|
+
throw Error(
|
|
3640
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3641
|
+
);
|
|
3642
|
+
includesBlockingLane(root, renderLanes) ||
|
|
3643
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3644
|
+
hook.memoizedState = nextSnapshot;
|
|
3645
|
+
root = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3646
|
+
hook.queue = root;
|
|
3647
|
+
mountEffect(subscribeToStore.bind(null, fiber, root, subscribe), [subscribe]);
|
|
3648
|
+
fiber.flags |= 2048;
|
|
3649
|
+
pushEffect(
|
|
3650
|
+
9,
|
|
3651
|
+
updateStoreInstance.bind(null, fiber, root, nextSnapshot, getSnapshot),
|
|
3652
|
+
void 0,
|
|
3653
|
+
null
|
|
3654
|
+
);
|
|
3655
|
+
return nextSnapshot;
|
|
3656
|
+
}
|
|
3657
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3658
|
+
fiber.flags |= 16384;
|
|
3659
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3660
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3661
|
+
null === getSnapshot
|
|
3662
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3663
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3664
|
+
(getSnapshot.stores = [fiber]))
|
|
3665
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3666
|
+
null === renderedSnapshot
|
|
3667
|
+
? (getSnapshot.stores = [fiber])
|
|
3668
|
+
: renderedSnapshot.push(fiber));
|
|
3669
|
+
}
|
|
3670
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3671
|
+
inst.value = nextSnapshot;
|
|
3672
|
+
inst.getSnapshot = getSnapshot;
|
|
3673
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3674
|
+
}
|
|
3675
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3676
|
+
return subscribe(function() {
|
|
3677
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3678
|
+
});
|
|
3679
|
+
}
|
|
3680
|
+
function checkIfSnapshotChanged(inst) {
|
|
3681
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3682
|
+
inst = inst.value;
|
|
3683
|
+
try {
|
|
3684
|
+
var nextValue = latestGetSnapshot();
|
|
3685
|
+
return !objectIs(inst, nextValue);
|
|
3686
|
+
} catch (error) {
|
|
3687
|
+
return !0;
|
|
3688
|
+
}
|
|
3689
|
+
}
|
|
3635
3690
|
function mountState(initialState) {
|
|
3636
3691
|
var hook = mountWorkInProgressHook();
|
|
3637
3692
|
"function" === typeof initialState && (initialState = initialState());
|
|
3638
3693
|
hook.memoizedState = hook.baseState = initialState;
|
|
3639
|
-
initialState =
|
|
3694
|
+
initialState = {
|
|
3640
3695
|
pending: null,
|
|
3641
3696
|
interleaved: null,
|
|
3642
3697
|
lanes: 0,
|
|
@@ -3644,7 +3699,8 @@ function mountState(initialState) {
|
|
|
3644
3699
|
lastRenderedReducer: basicStateReducer,
|
|
3645
3700
|
lastRenderedState: initialState
|
|
3646
3701
|
};
|
|
3647
|
-
|
|
3702
|
+
hook.queue = initialState;
|
|
3703
|
+
initialState = initialState.dispatch = dispatchSetState.bind(
|
|
3648
3704
|
null,
|
|
3649
3705
|
currentlyRenderingFiber$1,
|
|
3650
3706
|
initialState
|
|
@@ -3655,7 +3711,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3655
3711
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3656
3712
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3657
3713
|
null === create
|
|
3658
|
-
? ((create = { lastEffect: null }),
|
|
3714
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3659
3715
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3660
3716
|
(create.lastEffect = tag.next = tag))
|
|
3661
3717
|
: ((destroy = create.lastEffect),
|
|
@@ -3696,14 +3752,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3696
3752
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3697
3753
|
}
|
|
3698
3754
|
function mountEffect(create, deps) {
|
|
3699
|
-
return mountEffectImpl(
|
|
3755
|
+
return mountEffectImpl(4196352, 8, create, deps);
|
|
3700
3756
|
}
|
|
3701
3757
|
function updateEffect(create, deps) {
|
|
3702
|
-
return updateEffectImpl(
|
|
3758
|
+
return updateEffectImpl(2048, 8, create, deps);
|
|
3703
3759
|
}
|
|
3704
|
-
function
|
|
3760
|
+
function updateInsertionEffect(create, deps) {
|
|
3705
3761
|
return updateEffectImpl(4, 2, create, deps);
|
|
3706
3762
|
}
|
|
3763
|
+
function updateLayoutEffect(create, deps) {
|
|
3764
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3765
|
+
}
|
|
3707
3766
|
function imperativeHandleEffect(create, ref) {
|
|
3708
3767
|
if ("function" === typeof ref)
|
|
3709
3768
|
return (
|
|
@@ -3726,7 +3785,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3726
3785
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3727
3786
|
return updateEffectImpl(
|
|
3728
3787
|
4,
|
|
3729
|
-
|
|
3788
|
+
4,
|
|
3730
3789
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3731
3790
|
deps
|
|
3732
3791
|
);
|
|
@@ -3773,47 +3832,35 @@ function startTransition(setPending, callback) {
|
|
|
3773
3832
|
(ReactCurrentBatchConfig$1.transition = prevTransition);
|
|
3774
3833
|
}
|
|
3775
3834
|
}
|
|
3776
|
-
function
|
|
3777
|
-
var
|
|
3778
|
-
|
|
3835
|
+
function dispatchReducerAction(fiber, queue, action) {
|
|
3836
|
+
var lane = requestUpdateLane(fiber);
|
|
3837
|
+
action = {
|
|
3838
|
+
lane: lane,
|
|
3839
|
+
action: action,
|
|
3840
|
+
hasEagerState: !1,
|
|
3841
|
+
eagerState: null,
|
|
3842
|
+
next: null
|
|
3843
|
+
};
|
|
3844
|
+
isRenderPhaseUpdate(fiber)
|
|
3845
|
+
? enqueueRenderPhaseUpdate(queue, action)
|
|
3846
|
+
: (enqueueUpdate$1(fiber, queue, action),
|
|
3847
|
+
(action = requestEventTime()),
|
|
3848
|
+
(fiber = scheduleUpdateOnFiber(fiber, lane, action)),
|
|
3849
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane));
|
|
3850
|
+
}
|
|
3851
|
+
function dispatchSetState(fiber, queue, action) {
|
|
3852
|
+
var lane = requestUpdateLane(fiber),
|
|
3779
3853
|
update = {
|
|
3780
3854
|
lane: lane,
|
|
3781
3855
|
action: action,
|
|
3782
|
-
|
|
3856
|
+
hasEagerState: !1,
|
|
3783
3857
|
eagerState: null,
|
|
3784
3858
|
next: null
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
if (
|
|
3788
|
-
fiber === currentlyRenderingFiber$1 ||
|
|
3789
|
-
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3790
|
-
)
|
|
3791
|
-
(didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0),
|
|
3792
|
-
(lane = queue.pending),
|
|
3793
|
-
null === lane
|
|
3794
|
-
? (update.next = update)
|
|
3795
|
-
: ((update.next = lane.next), (lane.next = update)),
|
|
3796
|
-
(queue.pending = update);
|
|
3859
|
+
};
|
|
3860
|
+
if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
|
|
3797
3861
|
else {
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
0 !== (fiber.mode & 1) &&
|
|
3801
|
-
0 === (executionContext & 2)
|
|
3802
|
-
) {
|
|
3803
|
-
var interleaved = queue.interleaved;
|
|
3804
|
-
null === interleaved
|
|
3805
|
-
? ((update.next = update),
|
|
3806
|
-
null === interleavedQueues
|
|
3807
|
-
? (interleavedQueues = [queue])
|
|
3808
|
-
: interleavedQueues.push(queue))
|
|
3809
|
-
: ((update.next = interleaved.next), (interleaved.next = update));
|
|
3810
|
-
queue.interleaved = update;
|
|
3811
|
-
} else
|
|
3812
|
-
(interleaved = queue.pending),
|
|
3813
|
-
null === interleaved
|
|
3814
|
-
? (update.next = update)
|
|
3815
|
-
: ((update.next = interleaved.next), (interleaved.next = update)),
|
|
3816
|
-
(queue.pending = update);
|
|
3862
|
+
enqueueUpdate$1(fiber, queue, update);
|
|
3863
|
+
var alternate = fiber.alternate;
|
|
3817
3864
|
if (
|
|
3818
3865
|
0 === fiber.lanes &&
|
|
3819
3866
|
(null === alternate || 0 === alternate.lanes) &&
|
|
@@ -3822,20 +3869,57 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3822
3869
|
try {
|
|
3823
3870
|
var currentState = queue.lastRenderedState,
|
|
3824
3871
|
eagerState = alternate(currentState, action);
|
|
3825
|
-
update.
|
|
3872
|
+
update.hasEagerState = !0;
|
|
3826
3873
|
update.eagerState = eagerState;
|
|
3827
3874
|
if (objectIs(eagerState, currentState)) return;
|
|
3828
3875
|
} catch (error) {
|
|
3829
3876
|
} finally {
|
|
3830
3877
|
}
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3878
|
+
action = requestEventTime();
|
|
3879
|
+
fiber = scheduleUpdateOnFiber(fiber, lane, action);
|
|
3880
|
+
null !== fiber && entangleTransitionUpdate(fiber, queue, lane);
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
function isRenderPhaseUpdate(fiber) {
|
|
3884
|
+
var alternate = fiber.alternate;
|
|
3885
|
+
return (
|
|
3886
|
+
fiber === currentlyRenderingFiber$1 ||
|
|
3887
|
+
(null !== alternate && alternate === currentlyRenderingFiber$1)
|
|
3888
|
+
);
|
|
3889
|
+
}
|
|
3890
|
+
function enqueueRenderPhaseUpdate(queue, update) {
|
|
3891
|
+
didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = !0;
|
|
3892
|
+
var pending = queue.pending;
|
|
3893
|
+
null === pending
|
|
3894
|
+
? (update.next = update)
|
|
3895
|
+
: ((update.next = pending.next), (pending.next = update));
|
|
3896
|
+
queue.pending = update;
|
|
3897
|
+
}
|
|
3898
|
+
function enqueueUpdate$1(fiber, queue, update) {
|
|
3899
|
+
null !== workInProgressRoot &&
|
|
3900
|
+
0 !== (fiber.mode & 1) &&
|
|
3901
|
+
0 === (executionContext & 2)
|
|
3902
|
+
? ((fiber = queue.interleaved),
|
|
3903
|
+
null === fiber
|
|
3904
|
+
? ((update.next = update),
|
|
3905
|
+
null === interleavedQueues
|
|
3906
|
+
? (interleavedQueues = [queue])
|
|
3907
|
+
: interleavedQueues.push(queue))
|
|
3908
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3909
|
+
(queue.interleaved = update))
|
|
3910
|
+
: ((fiber = queue.pending),
|
|
3911
|
+
null === fiber
|
|
3912
|
+
? (update.next = update)
|
|
3913
|
+
: ((update.next = fiber.next), (fiber.next = update)),
|
|
3914
|
+
(queue.pending = update));
|
|
3915
|
+
}
|
|
3916
|
+
function entangleTransitionUpdate(root, queue, lane) {
|
|
3917
|
+
if (0 !== (lane & 4194240)) {
|
|
3918
|
+
var queueLanes = queue.lanes;
|
|
3919
|
+
queueLanes &= root.pendingLanes;
|
|
3920
|
+
lane |= queueLanes;
|
|
3921
|
+
queue.lanes = lane;
|
|
3922
|
+
markRootEntangled(root, lane);
|
|
3839
3923
|
}
|
|
3840
3924
|
}
|
|
3841
3925
|
var ContextOnlyDispatcher = {
|
|
@@ -3844,6 +3928,7 @@ var ContextOnlyDispatcher = {
|
|
|
3844
3928
|
useContext: throwInvalidHookError,
|
|
3845
3929
|
useEffect: throwInvalidHookError,
|
|
3846
3930
|
useImperativeHandle: throwInvalidHookError,
|
|
3931
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3847
3932
|
useLayoutEffect: throwInvalidHookError,
|
|
3848
3933
|
useMemo: throwInvalidHookError,
|
|
3849
3934
|
useReducer: throwInvalidHookError,
|
|
@@ -3853,6 +3938,7 @@ var ContextOnlyDispatcher = {
|
|
|
3853
3938
|
useDeferredValue: throwInvalidHookError,
|
|
3854
3939
|
useTransition: throwInvalidHookError,
|
|
3855
3940
|
useMutableSource: throwInvalidHookError,
|
|
3941
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3856
3942
|
useOpaqueIdentifier: throwInvalidHookError,
|
|
3857
3943
|
unstable_isNewReconciler: !1
|
|
3858
3944
|
},
|
|
@@ -3871,12 +3957,15 @@ var ContextOnlyDispatcher = {
|
|
|
3871
3957
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3872
3958
|
return mountEffectImpl(
|
|
3873
3959
|
4,
|
|
3874
|
-
|
|
3960
|
+
4,
|
|
3875
3961
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3876
3962
|
deps
|
|
3877
3963
|
);
|
|
3878
3964
|
},
|
|
3879
3965
|
useLayoutEffect: function(create, deps) {
|
|
3966
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3967
|
+
},
|
|
3968
|
+
useInsertionEffect: function(create, deps) {
|
|
3880
3969
|
return mountEffectImpl(4, 2, create, deps);
|
|
3881
3970
|
},
|
|
3882
3971
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3890,7 +3979,7 @@ var ContextOnlyDispatcher = {
|
|
|
3890
3979
|
var hook = mountWorkInProgressHook();
|
|
3891
3980
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3892
3981
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3893
|
-
reducer =
|
|
3982
|
+
reducer = {
|
|
3894
3983
|
pending: null,
|
|
3895
3984
|
interleaved: null,
|
|
3896
3985
|
lanes: 0,
|
|
@@ -3898,7 +3987,8 @@ var ContextOnlyDispatcher = {
|
|
|
3898
3987
|
lastRenderedReducer: reducer,
|
|
3899
3988
|
lastRenderedState: initialArg
|
|
3900
3989
|
};
|
|
3901
|
-
|
|
3990
|
+
hook.queue = reducer;
|
|
3991
|
+
reducer = reducer.dispatch = dispatchReducerAction.bind(
|
|
3902
3992
|
null,
|
|
3903
3993
|
currentlyRenderingFiber$1,
|
|
3904
3994
|
reducer
|
|
@@ -3946,6 +4036,7 @@ var ContextOnlyDispatcher = {
|
|
|
3946
4036
|
};
|
|
3947
4037
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3948
4038
|
},
|
|
4039
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
3949
4040
|
useOpaqueIdentifier: function() {
|
|
3950
4041
|
throw Error("Not yet implemented");
|
|
3951
4042
|
},
|
|
@@ -3957,6 +4048,7 @@ var ContextOnlyDispatcher = {
|
|
|
3957
4048
|
useContext: readContext,
|
|
3958
4049
|
useEffect: updateEffect,
|
|
3959
4050
|
useImperativeHandle: updateImperativeHandle,
|
|
4051
|
+
useInsertionEffect: updateInsertionEffect,
|
|
3960
4052
|
useLayoutEffect: updateLayoutEffect,
|
|
3961
4053
|
useMemo: updateMemo,
|
|
3962
4054
|
useReducer: updateReducer,
|
|
@@ -3989,6 +4081,46 @@ var ContextOnlyDispatcher = {
|
|
|
3989
4081
|
return [isPending, start];
|
|
3990
4082
|
},
|
|
3991
4083
|
useMutableSource: updateMutableSource,
|
|
4084
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4085
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4086
|
+
hook = updateWorkInProgressHook(),
|
|
4087
|
+
nextSnapshot = getSnapshot(),
|
|
4088
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4089
|
+
snapshotChanged &&
|
|
4090
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4091
|
+
hook = hook.queue;
|
|
4092
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4093
|
+
subscribe
|
|
4094
|
+
]);
|
|
4095
|
+
if (
|
|
4096
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4097
|
+
snapshotChanged ||
|
|
4098
|
+
(null !== workInProgressHook &&
|
|
4099
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4100
|
+
) {
|
|
4101
|
+
fiber.flags |= 2048;
|
|
4102
|
+
pushEffect(
|
|
4103
|
+
9,
|
|
4104
|
+
updateStoreInstance.bind(
|
|
4105
|
+
null,
|
|
4106
|
+
fiber,
|
|
4107
|
+
hook,
|
|
4108
|
+
nextSnapshot,
|
|
4109
|
+
getSnapshot
|
|
4110
|
+
),
|
|
4111
|
+
void 0,
|
|
4112
|
+
null
|
|
4113
|
+
);
|
|
4114
|
+
subscribe = workInProgressRoot;
|
|
4115
|
+
if (null === subscribe)
|
|
4116
|
+
throw Error(
|
|
4117
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4118
|
+
);
|
|
4119
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4120
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4121
|
+
}
|
|
4122
|
+
return nextSnapshot;
|
|
4123
|
+
},
|
|
3992
4124
|
useOpaqueIdentifier: function() {
|
|
3993
4125
|
return updateReducer(basicStateReducer)[0];
|
|
3994
4126
|
},
|
|
@@ -4000,6 +4132,7 @@ var ContextOnlyDispatcher = {
|
|
|
4000
4132
|
useContext: readContext,
|
|
4001
4133
|
useEffect: updateEffect,
|
|
4002
4134
|
useImperativeHandle: updateImperativeHandle,
|
|
4135
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4003
4136
|
useLayoutEffect: updateLayoutEffect,
|
|
4004
4137
|
useMemo: updateMemo,
|
|
4005
4138
|
useReducer: rerenderReducer,
|
|
@@ -4032,6 +4165,7 @@ var ContextOnlyDispatcher = {
|
|
|
4032
4165
|
return [isPending, start];
|
|
4033
4166
|
},
|
|
4034
4167
|
useMutableSource: updateMutableSource,
|
|
4168
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4035
4169
|
useOpaqueIdentifier: function() {
|
|
4036
4170
|
return rerenderReducer(basicStateReducer)[0];
|
|
4037
4171
|
},
|
|
@@ -4117,7 +4251,7 @@ function hadNoMutationsEffects(current, completedWork) {
|
|
|
4117
4251
|
if (null !== current && current.child === completedWork.child) return !0;
|
|
4118
4252
|
if (0 !== (completedWork.flags & 16)) return !1;
|
|
4119
4253
|
for (current = completedWork.child; null !== current; ) {
|
|
4120
|
-
if (0 !== (current.flags &
|
|
4254
|
+
if (0 !== (current.flags & 12854) || 0 !== (current.subtreeFlags & 12854))
|
|
4121
4255
|
return !1;
|
|
4122
4256
|
current = current.sibling;
|
|
4123
4257
|
}
|
|
@@ -4281,14 +4415,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
|
4281
4415
|
break;
|
|
4282
4416
|
case "collapsed":
|
|
4283
4417
|
lastTailNode = renderState.tail;
|
|
4284
|
-
for (var lastTailNode$
|
|
4285
|
-
null !== lastTailNode.alternate && (lastTailNode$
|
|
4418
|
+
for (var lastTailNode$35 = null; null !== lastTailNode; )
|
|
4419
|
+
null !== lastTailNode.alternate && (lastTailNode$35 = lastTailNode),
|
|
4286
4420
|
(lastTailNode = lastTailNode.sibling);
|
|
4287
|
-
null === lastTailNode$
|
|
4421
|
+
null === lastTailNode$35
|
|
4288
4422
|
? hasRenderedATailFallback || null === renderState.tail
|
|
4289
4423
|
? (renderState.tail = null)
|
|
4290
4424
|
: (renderState.tail.sibling = null)
|
|
4291
|
-
: (lastTailNode$
|
|
4425
|
+
: (lastTailNode$35.sibling = null);
|
|
4292
4426
|
}
|
|
4293
4427
|
}
|
|
4294
4428
|
function bubbleProperties(completedWork) {
|
|
@@ -4298,19 +4432,19 @@ function bubbleProperties(completedWork) {
|
|
|
4298
4432
|
newChildLanes = 0,
|
|
4299
4433
|
subtreeFlags = 0;
|
|
4300
4434
|
if (didBailout)
|
|
4301
|
-
for (var child$
|
|
4302
|
-
(newChildLanes |= child$
|
|
4303
|
-
(subtreeFlags |= child$
|
|
4304
|
-
(subtreeFlags |= child$
|
|
4305
|
-
(child$
|
|
4306
|
-
(child$
|
|
4435
|
+
for (var child$36 = completedWork.child; null !== child$36; )
|
|
4436
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4437
|
+
(subtreeFlags |= child$36.subtreeFlags & 7340032),
|
|
4438
|
+
(subtreeFlags |= child$36.flags & 7340032),
|
|
4439
|
+
(child$36.return = completedWork),
|
|
4440
|
+
(child$36 = child$36.sibling);
|
|
4307
4441
|
else
|
|
4308
|
-
for (child$
|
|
4309
|
-
(newChildLanes |= child$
|
|
4310
|
-
(subtreeFlags |= child$
|
|
4311
|
-
(subtreeFlags |= child$
|
|
4312
|
-
(child$
|
|
4313
|
-
(child$
|
|
4442
|
+
for (child$36 = completedWork.child; null !== child$36; )
|
|
4443
|
+
(newChildLanes |= child$36.lanes | child$36.childLanes),
|
|
4444
|
+
(subtreeFlags |= child$36.subtreeFlags),
|
|
4445
|
+
(subtreeFlags |= child$36.flags),
|
|
4446
|
+
(child$36.return = completedWork),
|
|
4447
|
+
(child$36 = child$36.sibling);
|
|
4314
4448
|
completedWork.subtreeFlags |= subtreeFlags;
|
|
4315
4449
|
completedWork.childLanes = newChildLanes;
|
|
4316
4450
|
return didBailout;
|
|
@@ -4337,7 +4471,7 @@ function completeSuspendedOffscreenHostContainer(current, workInProgress) {
|
|
|
4337
4471
|
)),
|
|
4338
4472
|
appendAllChildren(rootContainerInstance, workInProgress, !1, !1),
|
|
4339
4473
|
(workInProgress.stateNode = rootContainerInstance),
|
|
4340
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4474
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512));
|
|
4341
4475
|
bubbleProperties(workInProgress);
|
|
4342
4476
|
}
|
|
4343
4477
|
function completeWork(current, workInProgress, renderLanes) {
|
|
@@ -4371,8 +4505,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4371
4505
|
((newProps.context = newProps.pendingContext),
|
|
4372
4506
|
(newProps.pendingContext = null)),
|
|
4373
4507
|
(null !== current && null !== current.child) ||
|
|
4374
|
-
newProps.
|
|
4375
|
-
(workInProgress.flags |=
|
|
4508
|
+
newProps.isDehydrated ||
|
|
4509
|
+
(workInProgress.flags |= 1024),
|
|
4376
4510
|
updateHostContainer(current, workInProgress),
|
|
4377
4511
|
bubbleProperties(workInProgress),
|
|
4378
4512
|
null
|
|
@@ -4389,7 +4523,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4389
4523
|
newProps,
|
|
4390
4524
|
renderLanes
|
|
4391
4525
|
),
|
|
4392
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |=
|
|
4526
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4393
4527
|
else {
|
|
4394
4528
|
if (!newProps) {
|
|
4395
4529
|
if (null === workInProgress.stateNode)
|
|
@@ -4409,7 +4543,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4409
4543
|
);
|
|
4410
4544
|
appendAllChildren(current, workInProgress, !1, !1);
|
|
4411
4545
|
workInProgress.stateNode = current;
|
|
4412
|
-
null !== workInProgress.ref && (workInProgress.flags |=
|
|
4546
|
+
null !== workInProgress.ref && (workInProgress.flags |= 512);
|
|
4413
4547
|
}
|
|
4414
4548
|
bubbleProperties(workInProgress);
|
|
4415
4549
|
return null;
|
|
@@ -4447,7 +4581,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4447
4581
|
if (
|
|
4448
4582
|
null !== newProps &&
|
|
4449
4583
|
!renderLanes &&
|
|
4450
|
-
((workInProgress.child.flags |=
|
|
4584
|
+
((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
|
|
4451
4585
|
)
|
|
4452
4586
|
if (
|
|
4453
4587
|
(null === current &&
|
|
@@ -4459,7 +4593,8 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4459
4593
|
else {
|
|
4460
4594
|
if (
|
|
4461
4595
|
0 === workInProgressRootExitStatus ||
|
|
4462
|
-
3 === workInProgressRootExitStatus
|
|
4596
|
+
3 === workInProgressRootExitStatus ||
|
|
4597
|
+
2 === workInProgressRootExitStatus
|
|
4463
4598
|
)
|
|
4464
4599
|
workInProgressRootExitStatus = 4;
|
|
4465
4600
|
null === workInProgressRoot ||
|
|
@@ -4519,7 +4654,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4519
4654
|
for (newProps = workInProgress.child; null !== newProps; )
|
|
4520
4655
|
(renderLanes = newProps),
|
|
4521
4656
|
(type = current),
|
|
4522
|
-
(renderLanes.flags &=
|
|
4657
|
+
(renderLanes.flags &= 7340034),
|
|
4523
4658
|
(renderedTail = renderLanes.alternate),
|
|
4524
4659
|
null === renderedTail
|
|
4525
4660
|
? ((renderLanes.childLanes = 0),
|
|
@@ -4623,7 +4758,7 @@ function completeWork(current, workInProgress, renderLanes) {
|
|
|
4623
4758
|
(null !== current.memoizedState) !== renderLanes &&
|
|
4624
4759
|
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4625
4760
|
23 !== workInProgress.tag &&
|
|
4626
|
-
(workInProgress.flags |=
|
|
4761
|
+
(workInProgress.flags |= 8192),
|
|
4627
4762
|
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4628
4763
|
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4629
4764
|
bubbleProperties(workInProgress)
|
|
@@ -4671,7 +4806,7 @@ function updateForwardRef(
|
|
|
4671
4806
|
if (null !== current && !didReceiveUpdate)
|
|
4672
4807
|
return (
|
|
4673
4808
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4674
|
-
(workInProgress.flags &= -
|
|
4809
|
+
(workInProgress.flags &= -2053),
|
|
4675
4810
|
(current.lanes &= ~renderLanes),
|
|
4676
4811
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4677
4812
|
);
|
|
@@ -4745,7 +4880,7 @@ function updateSimpleMemoComponent(
|
|
|
4745
4880
|
current.ref === workInProgress.ref
|
|
4746
4881
|
)
|
|
4747
4882
|
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4748
|
-
0 !== (current.flags &
|
|
4883
|
+
0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
|
|
4749
4884
|
else
|
|
4750
4885
|
return (
|
|
4751
4886
|
(workInProgress.lanes = current.lanes),
|
|
@@ -4848,7 +4983,7 @@ function markRef$1(current, workInProgress) {
|
|
|
4848
4983
|
(null === current && null !== ref) ||
|
|
4849
4984
|
(null !== current && current.ref !== ref)
|
|
4850
4985
|
)
|
|
4851
|
-
workInProgress.flags |=
|
|
4986
|
+
workInProgress.flags |= 512;
|
|
4852
4987
|
}
|
|
4853
4988
|
function updateFunctionComponent(
|
|
4854
4989
|
current,
|
|
@@ -4873,7 +5008,7 @@ function updateFunctionComponent(
|
|
|
4873
5008
|
if (null !== current && !didReceiveUpdate)
|
|
4874
5009
|
return (
|
|
4875
5010
|
(workInProgress.updateQueue = current.updateQueue),
|
|
4876
|
-
(workInProgress.flags &= -
|
|
5011
|
+
(workInProgress.flags &= -2053),
|
|
4877
5012
|
(current.lanes &= ~renderLanes),
|
|
4878
5013
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4879
5014
|
);
|
|
@@ -5049,7 +5184,7 @@ function updateClassComponent(
|
|
|
5049
5184
|
"function" === typeof instance.componentDidUpdate &&
|
|
5050
5185
|
(workInProgress.flags |= 4),
|
|
5051
5186
|
"function" === typeof instance.getSnapshotBeforeUpdate &&
|
|
5052
|
-
(workInProgress.flags |=
|
|
5187
|
+
(workInProgress.flags |= 1024))
|
|
5053
5188
|
: ("function" !== typeof instance.componentDidUpdate ||
|
|
5054
5189
|
(oldProps === current.memoizedProps &&
|
|
5055
5190
|
oldState === current.memoizedState) ||
|
|
@@ -5057,7 +5192,7 @@ function updateClassComponent(
|
|
|
5057
5192
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5058
5193
|
(oldProps === current.memoizedProps &&
|
|
5059
5194
|
oldState === current.memoizedState) ||
|
|
5060
|
-
(workInProgress.flags |=
|
|
5195
|
+
(workInProgress.flags |= 1024),
|
|
5061
5196
|
(workInProgress.memoizedProps = nextProps),
|
|
5062
5197
|
(workInProgress.memoizedState = newState)),
|
|
5063
5198
|
(instance.props = nextProps),
|
|
@@ -5071,7 +5206,7 @@ function updateClassComponent(
|
|
|
5071
5206
|
"function" !== typeof instance.getSnapshotBeforeUpdate ||
|
|
5072
5207
|
(oldProps === current.memoizedProps &&
|
|
5073
5208
|
oldState === current.memoizedState) ||
|
|
5074
|
-
(workInProgress.flags |=
|
|
5209
|
+
(workInProgress.flags |= 1024),
|
|
5075
5210
|
(nextProps = !1));
|
|
5076
5211
|
}
|
|
5077
5212
|
return finishClassComponent(
|
|
@@ -5360,7 +5495,7 @@ function updateSuspenseFallbackChildren(
|
|
|
5360
5495
|
primaryChildren
|
|
5361
5496
|
))),
|
|
5362
5497
|
(current.subtreeFlags =
|
|
5363
|
-
currentPrimaryChildFragment.subtreeFlags &
|
|
5498
|
+
currentPrimaryChildFragment.subtreeFlags & 7340032));
|
|
5364
5499
|
null !== currentFallbackChildFragment
|
|
5365
5500
|
? (fallbackChildren = createWorkInProgress(
|
|
5366
5501
|
currentFallbackChildFragment,
|
|
@@ -5588,8 +5723,8 @@ function unwindWork(workInProgress) {
|
|
|
5588
5723
|
case 1:
|
|
5589
5724
|
isContextProvider(workInProgress.type) && popContext();
|
|
5590
5725
|
var flags = workInProgress.flags;
|
|
5591
|
-
return flags &
|
|
5592
|
-
? ((workInProgress.flags = (flags & -
|
|
5726
|
+
return flags & 65536
|
|
5727
|
+
? ((workInProgress.flags = (flags & -65537) | 128), workInProgress)
|
|
5593
5728
|
: null;
|
|
5594
5729
|
case 3:
|
|
5595
5730
|
popHostContainer();
|
|
@@ -5601,7 +5736,7 @@ function unwindWork(workInProgress) {
|
|
|
5601
5736
|
throw Error(
|
|
5602
5737
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5603
5738
|
);
|
|
5604
|
-
workInProgress.flags = (flags & -
|
|
5739
|
+
workInProgress.flags = (flags & -65537) | 128;
|
|
5605
5740
|
return workInProgress;
|
|
5606
5741
|
case 5:
|
|
5607
5742
|
return popHostContext(workInProgress), null;
|
|
@@ -5609,8 +5744,8 @@ function unwindWork(workInProgress) {
|
|
|
5609
5744
|
return (
|
|
5610
5745
|
pop(suspenseStackCursor),
|
|
5611
5746
|
(flags = workInProgress.flags),
|
|
5612
|
-
flags &
|
|
5613
|
-
? ((workInProgress.flags = (flags & -
|
|
5747
|
+
flags & 65536
|
|
5748
|
+
? ((workInProgress.flags = (flags & -65537) | 128), workInProgress)
|
|
5614
5749
|
: null
|
|
5615
5750
|
);
|
|
5616
5751
|
case 19:
|
|
@@ -5647,7 +5782,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5647
5782
|
if (
|
|
5648
5783
|
((root = nextEffect),
|
|
5649
5784
|
(firstChild = root.child),
|
|
5650
|
-
0 !== (root.subtreeFlags &
|
|
5785
|
+
0 !== (root.subtreeFlags & 1028) && null !== firstChild)
|
|
5651
5786
|
)
|
|
5652
5787
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5653
5788
|
else
|
|
@@ -5655,7 +5790,7 @@ function commitBeforeMutationEffects(root, firstChild) {
|
|
|
5655
5790
|
root = nextEffect;
|
|
5656
5791
|
try {
|
|
5657
5792
|
var current = root.alternate;
|
|
5658
|
-
if (0 !== (root.flags &
|
|
5793
|
+
if (0 !== (root.flags & 1024))
|
|
5659
5794
|
switch (root.tag) {
|
|
5660
5795
|
case 0:
|
|
5661
5796
|
case 11:
|
|
@@ -5736,8 +5871,8 @@ function commitHookEffectListMount(tag, finishedWork) {
|
|
|
5736
5871
|
var effect = (finishedWork = finishedWork.next);
|
|
5737
5872
|
do {
|
|
5738
5873
|
if ((effect.tag & tag) === tag) {
|
|
5739
|
-
var create$
|
|
5740
|
-
effect.destroy = create$
|
|
5874
|
+
var create$80 = effect.create;
|
|
5875
|
+
effect.destroy = create$80();
|
|
5741
5876
|
}
|
|
5742
5877
|
effect = effect.next;
|
|
5743
5878
|
} while (effect !== finishedWork);
|
|
@@ -5766,6 +5901,8 @@ function commitWork(current, finishedWork) {
|
|
|
5766
5901
|
case 14:
|
|
5767
5902
|
case 15:
|
|
5768
5903
|
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
5904
|
+
commitHookEffectListMount(3, finishedWork);
|
|
5905
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
5769
5906
|
return;
|
|
5770
5907
|
case 12:
|
|
5771
5908
|
return;
|
|
@@ -5840,7 +5977,10 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5840
5977
|
var _effect = effect,
|
|
5841
5978
|
destroy = _effect.destroy,
|
|
5842
5979
|
tag = _effect.tag;
|
|
5843
|
-
if (
|
|
5980
|
+
if (
|
|
5981
|
+
void 0 !== destroy &&
|
|
5982
|
+
(0 !== (tag & 2) || 0 !== (tag & 4))
|
|
5983
|
+
) {
|
|
5844
5984
|
_effect = current;
|
|
5845
5985
|
var nearestMountedAncestor = root;
|
|
5846
5986
|
try {
|
|
@@ -5899,14 +6039,14 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5899
6039
|
}
|
|
5900
6040
|
}
|
|
5901
6041
|
firstChild = root.child;
|
|
5902
|
-
if (0 !== (root.subtreeFlags &
|
|
6042
|
+
if (0 !== (root.subtreeFlags & 12854) && null !== firstChild)
|
|
5903
6043
|
(firstChild.return = root), (nextEffect = firstChild);
|
|
5904
6044
|
else
|
|
5905
6045
|
for (; null !== nextEffect; ) {
|
|
5906
6046
|
root = nextEffect;
|
|
5907
6047
|
try {
|
|
5908
6048
|
var flags = root.flags;
|
|
5909
|
-
if (flags &
|
|
6049
|
+
if (flags & 512) {
|
|
5910
6050
|
var current$jscomp$0 = root.alternate;
|
|
5911
6051
|
if (null !== current$jscomp$0) {
|
|
5912
6052
|
var currentRef = current$jscomp$0.ref;
|
|
@@ -5916,16 +6056,16 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5916
6056
|
: (currentRef.current = null));
|
|
5917
6057
|
}
|
|
5918
6058
|
}
|
|
5919
|
-
if (flags &
|
|
6059
|
+
if (flags & 8192)
|
|
5920
6060
|
switch (root.tag) {
|
|
5921
6061
|
case 13:
|
|
5922
6062
|
if (null !== root.memoizedState) {
|
|
5923
|
-
var current$
|
|
5924
|
-
if (null === current$
|
|
6063
|
+
var current$84 = root.alternate;
|
|
6064
|
+
if (null === current$84 || null === current$84.memoizedState)
|
|
5925
6065
|
globalMostRecentFallbackTime = now();
|
|
5926
6066
|
}
|
|
5927
6067
|
}
|
|
5928
|
-
switch (flags &
|
|
6068
|
+
switch (flags & 4102) {
|
|
5929
6069
|
case 2:
|
|
5930
6070
|
root.flags &= -3;
|
|
5931
6071
|
break;
|
|
@@ -5933,11 +6073,11 @@ function commitMutationEffects(root, firstChild) {
|
|
|
5933
6073
|
root.flags &= -3;
|
|
5934
6074
|
commitWork(root.alternate, root);
|
|
5935
6075
|
break;
|
|
5936
|
-
case
|
|
5937
|
-
root.flags &= -
|
|
6076
|
+
case 4096:
|
|
6077
|
+
root.flags &= -4097;
|
|
5938
6078
|
break;
|
|
5939
|
-
case
|
|
5940
|
-
root.flags &= -
|
|
6079
|
+
case 4100:
|
|
6080
|
+
root.flags &= -4097;
|
|
5941
6081
|
commitWork(root.alternate, root);
|
|
5942
6082
|
break;
|
|
5943
6083
|
case 4:
|
|
@@ -5960,20 +6100,20 @@ function commitLayoutEffects(finishedWork) {
|
|
|
5960
6100
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
5961
6101
|
var fiber = nextEffect,
|
|
5962
6102
|
firstChild = fiber.child;
|
|
5963
|
-
if (0 !== (fiber.subtreeFlags &
|
|
6103
|
+
if (0 !== (fiber.subtreeFlags & 8772) && null !== firstChild)
|
|
5964
6104
|
(firstChild.return = fiber), (nextEffect = firstChild);
|
|
5965
6105
|
else
|
|
5966
6106
|
for (fiber = finishedWork; null !== nextEffect; ) {
|
|
5967
6107
|
firstChild = nextEffect;
|
|
5968
|
-
if (0 !== (firstChild.flags &
|
|
6108
|
+
if (0 !== (firstChild.flags & 8772)) {
|
|
5969
6109
|
var current = firstChild.alternate;
|
|
5970
6110
|
try {
|
|
5971
|
-
if (0 !== (firstChild.flags &
|
|
6111
|
+
if (0 !== (firstChild.flags & 8772))
|
|
5972
6112
|
switch (firstChild.tag) {
|
|
5973
6113
|
case 0:
|
|
5974
6114
|
case 11:
|
|
5975
6115
|
case 15:
|
|
5976
|
-
commitHookEffectListMount(
|
|
6116
|
+
commitHookEffectListMount(5, firstChild);
|
|
5977
6117
|
break;
|
|
5978
6118
|
case 1:
|
|
5979
6119
|
var instance = firstChild.stateNode;
|
|
@@ -5998,8 +6138,8 @@ function commitLayoutEffects(finishedWork) {
|
|
|
5998
6138
|
commitUpdateQueue(firstChild, updateQueue, instance);
|
|
5999
6139
|
break;
|
|
6000
6140
|
case 3:
|
|
6001
|
-
var updateQueue$
|
|
6002
|
-
if (null !== updateQueue$
|
|
6141
|
+
var updateQueue$81 = firstChild.updateQueue;
|
|
6142
|
+
if (null !== updateQueue$81) {
|
|
6003
6143
|
current = null;
|
|
6004
6144
|
if (null !== firstChild.child)
|
|
6005
6145
|
switch (firstChild.child.tag) {
|
|
@@ -6009,7 +6149,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6009
6149
|
case 1:
|
|
6010
6150
|
current = firstChild.child.stateNode;
|
|
6011
6151
|
}
|
|
6012
|
-
commitUpdateQueue(firstChild, updateQueue$
|
|
6152
|
+
commitUpdateQueue(firstChild, updateQueue$81, current);
|
|
6013
6153
|
}
|
|
6014
6154
|
break;
|
|
6015
6155
|
case 5:
|
|
@@ -6034,7 +6174,7 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6034
6174
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
6035
6175
|
);
|
|
6036
6176
|
}
|
|
6037
|
-
if (firstChild.flags &
|
|
6177
|
+
if (firstChild.flags & 512) {
|
|
6038
6178
|
current = void 0;
|
|
6039
6179
|
var ref = firstChild.ref;
|
|
6040
6180
|
if (null !== ref) {
|
|
@@ -6251,15 +6391,15 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6251
6391
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6252
6392
|
);
|
|
6253
6393
|
if (0 === lanes) return null;
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6394
|
+
if (
|
|
6395
|
+
includesBlockingLane(root, lanes) ||
|
|
6396
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6397
|
+
didTimeout
|
|
6398
|
+
)
|
|
6399
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6400
|
+
else {
|
|
6261
6401
|
didTimeout = lanes;
|
|
6262
|
-
|
|
6402
|
+
var prevExecutionContext = executionContext;
|
|
6263
6403
|
executionContext |= 2;
|
|
6264
6404
|
var prevDispatcher = pushDispatcher();
|
|
6265
6405
|
if (
|
|
@@ -6278,30 +6418,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6278
6418
|
while (1);
|
|
6279
6419
|
resetContextDependencies();
|
|
6280
6420
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6281
|
-
executionContext =
|
|
6421
|
+
executionContext = prevExecutionContext;
|
|
6282
6422
|
null !== workInProgress
|
|
6283
6423
|
? (didTimeout = 0)
|
|
6284
6424
|
: ((workInProgressRoot = null),
|
|
6285
6425
|
(workInProgressRootRenderLanes = 0),
|
|
6286
6426
|
(didTimeout = workInProgressRootExitStatus));
|
|
6287
|
-
}
|
|
6427
|
+
}
|
|
6288
6428
|
if (0 !== didTimeout) {
|
|
6289
6429
|
2 === didTimeout &&
|
|
6290
|
-
((
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
0 !== prevDispatcher &&
|
|
6295
|
-
((lanes = prevDispatcher),
|
|
6296
|
-
(didTimeout = renderRootSync(root, prevDispatcher))),
|
|
6297
|
-
(executionContext = JSCompiler_inline_result));
|
|
6430
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6431
|
+
0 !== prevExecutionContext &&
|
|
6432
|
+
((lanes = prevExecutionContext),
|
|
6433
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6298
6434
|
if (1 === didTimeout)
|
|
6299
6435
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6300
6436
|
prepareFreshStack(root, 0),
|
|
6301
6437
|
markRootSuspended$1(root, lanes),
|
|
6302
6438
|
ensureRootIsScheduled(root, now()),
|
|
6303
6439
|
originalCallbackNode);
|
|
6304
|
-
|
|
6440
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6441
|
+
prevExecutionContext = root.current.alternate;
|
|
6442
|
+
if (
|
|
6443
|
+
prevDispatcher &&
|
|
6444
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6445
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6446
|
+
2 === didTimeout &&
|
|
6447
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6448
|
+
0 !== prevDispatcher &&
|
|
6449
|
+
((lanes = prevDispatcher),
|
|
6450
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6451
|
+
1 === didTimeout)
|
|
6452
|
+
)
|
|
6453
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6454
|
+
prepareFreshStack(root, 0),
|
|
6455
|
+
markRootSuspended$1(root, lanes),
|
|
6456
|
+
ensureRootIsScheduled(root, now()),
|
|
6457
|
+
originalCallbackNode);
|
|
6458
|
+
root.finishedWork = prevExecutionContext;
|
|
6305
6459
|
root.finishedLanes = lanes;
|
|
6306
6460
|
switch (didTimeout) {
|
|
6307
6461
|
case 0:
|
|
@@ -6318,10 +6472,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6318
6472
|
10 < didTimeout)
|
|
6319
6473
|
) {
|
|
6320
6474
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6321
|
-
|
|
6322
|
-
if ((
|
|
6475
|
+
prevExecutionContext = root.suspendedLanes;
|
|
6476
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6323
6477
|
requestEventTime();
|
|
6324
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
6478
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6325
6479
|
break;
|
|
6326
6480
|
}
|
|
6327
6481
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6336,15 +6490,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6336
6490
|
markRootSuspended$1(root, lanes);
|
|
6337
6491
|
if ((lanes & 4194240) === lanes) break;
|
|
6338
6492
|
didTimeout = root.eventTimes;
|
|
6339
|
-
for (
|
|
6493
|
+
for (prevExecutionContext = -1; 0 < lanes; ) {
|
|
6340
6494
|
var index$4 = 31 - clz32(lanes);
|
|
6341
6495
|
prevDispatcher = 1 << index$4;
|
|
6342
6496
|
index$4 = didTimeout[index$4];
|
|
6343
|
-
index$4 >
|
|
6344
|
-
(JSCompiler_inline_result = index$4);
|
|
6497
|
+
index$4 > prevExecutionContext && (prevExecutionContext = index$4);
|
|
6345
6498
|
lanes &= ~prevDispatcher;
|
|
6346
6499
|
}
|
|
6347
|
-
lanes =
|
|
6500
|
+
lanes = prevExecutionContext;
|
|
6348
6501
|
lanes = now() - lanes;
|
|
6349
6502
|
lanes =
|
|
6350
6503
|
(120 > lanes
|
|
@@ -6381,6 +6534,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6381
6534
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6382
6535
|
: null;
|
|
6383
6536
|
}
|
|
6537
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6538
|
+
var prevExecutionContext = executionContext;
|
|
6539
|
+
executionContext |= 8;
|
|
6540
|
+
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
|
|
6541
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6542
|
+
executionContext = prevExecutionContext;
|
|
6543
|
+
return root;
|
|
6544
|
+
}
|
|
6545
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6546
|
+
for (var node = finishedWork; ; ) {
|
|
6547
|
+
if (node.flags & 16384) {
|
|
6548
|
+
var updateQueue = node.updateQueue;
|
|
6549
|
+
if (
|
|
6550
|
+
null !== updateQueue &&
|
|
6551
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6552
|
+
)
|
|
6553
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6554
|
+
var check = updateQueue[i],
|
|
6555
|
+
getSnapshot = check.getSnapshot;
|
|
6556
|
+
check = check.value;
|
|
6557
|
+
try {
|
|
6558
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6559
|
+
} catch (error) {
|
|
6560
|
+
return !1;
|
|
6561
|
+
}
|
|
6562
|
+
}
|
|
6563
|
+
}
|
|
6564
|
+
updateQueue = node.child;
|
|
6565
|
+
if (node.subtreeFlags & 16384 && null !== updateQueue)
|
|
6566
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6567
|
+
else {
|
|
6568
|
+
if (node === finishedWork) break;
|
|
6569
|
+
for (; null === node.sibling; ) {
|
|
6570
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6571
|
+
node = node.return;
|
|
6572
|
+
}
|
|
6573
|
+
node.sibling.return = node.return;
|
|
6574
|
+
node = node.sibling;
|
|
6575
|
+
}
|
|
6576
|
+
}
|
|
6577
|
+
return !0;
|
|
6578
|
+
}
|
|
6384
6579
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6385
6580
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6386
6581
|
suspendedLanes &= ~workInProgressRootUpdatedLanes;
|
|
@@ -6403,7 +6598,7 @@ function performSyncWorkOnRoot(root) {
|
|
|
6403
6598
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6404
6599
|
var prevExecutionContext = executionContext;
|
|
6405
6600
|
executionContext |= 8;
|
|
6406
|
-
root.
|
|
6601
|
+
root.isDehydrated && ((root.isDehydrated = !1), shim(root.containerInfo));
|
|
6407
6602
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6408
6603
|
0 !== errorRetryLanes &&
|
|
6409
6604
|
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
|
|
@@ -6528,85 +6723,97 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6528
6723
|
sourceFiber = erroredWork,
|
|
6529
6724
|
value = thrownValue;
|
|
6530
6725
|
thrownValue = workInProgressRootRenderLanes;
|
|
6531
|
-
sourceFiber.flags |=
|
|
6726
|
+
sourceFiber.flags |= 32768;
|
|
6532
6727
|
if (
|
|
6533
6728
|
null !== value &&
|
|
6534
6729
|
"object" === typeof value &&
|
|
6535
6730
|
"function" === typeof value.then
|
|
6536
6731
|
) {
|
|
6537
6732
|
var wakeable = value,
|
|
6538
|
-
|
|
6733
|
+
sourceFiber$jscomp$0 = sourceFiber,
|
|
6734
|
+
tag = sourceFiber$jscomp$0.tag;
|
|
6539
6735
|
if (
|
|
6540
|
-
0 === (sourceFiber.mode & 1) &&
|
|
6736
|
+
0 === (sourceFiber$jscomp$0.mode & 1) &&
|
|
6541
6737
|
(0 === tag || 11 === tag || 15 === tag)
|
|
6542
6738
|
) {
|
|
6543
|
-
var currentSource = sourceFiber.alternate;
|
|
6739
|
+
var currentSource = sourceFiber$jscomp$0.alternate;
|
|
6544
6740
|
currentSource
|
|
6545
|
-
? ((sourceFiber.updateQueue = currentSource.updateQueue),
|
|
6546
|
-
(sourceFiber.memoizedState =
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6741
|
+
? ((sourceFiber$jscomp$0.updateQueue = currentSource.updateQueue),
|
|
6742
|
+
(sourceFiber$jscomp$0.memoizedState =
|
|
6743
|
+
currentSource.memoizedState),
|
|
6744
|
+
(sourceFiber$jscomp$0.lanes = currentSource.lanes))
|
|
6745
|
+
: ((sourceFiber$jscomp$0.updateQueue = null),
|
|
6746
|
+
(sourceFiber$jscomp$0.memoizedState = null));
|
|
6550
6747
|
}
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6748
|
+
b: {
|
|
6749
|
+
sourceFiber$jscomp$0 = returnFiber;
|
|
6750
|
+
var sourceFiber$jscomp$1 = sourceFiber,
|
|
6751
|
+
rootRenderLanes = thrownValue,
|
|
6752
|
+
hasInvisibleParentBoundary =
|
|
6753
|
+
0 !== (suspenseStackCursor.current & 1),
|
|
6754
|
+
node = sourceFiber$jscomp$0;
|
|
6755
|
+
do {
|
|
6756
|
+
var JSCompiler_temp;
|
|
6757
|
+
if ((JSCompiler_temp = 13 === node.tag)) {
|
|
6758
|
+
var nextState = node.memoizedState;
|
|
6759
|
+
JSCompiler_temp =
|
|
6760
|
+
null !== nextState
|
|
6761
|
+
? null !== nextState.dehydrated
|
|
6762
|
+
? !0
|
|
6763
|
+
: !1
|
|
6764
|
+
: !0 !== node.memoizedProps.unstable_avoidThisFallback
|
|
6561
6765
|
? !0
|
|
6562
|
-
:
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
}
|
|
6570
|
-
if (JSCompiler_temp) {
|
|
6571
|
-
var wakeables = workInProgress$30.updateQueue;
|
|
6572
|
-
if (null === wakeables) {
|
|
6573
|
-
var updateQueue = new Set();
|
|
6574
|
-
updateQueue.add(wakeable);
|
|
6575
|
-
workInProgress$30.updateQueue = updateQueue;
|
|
6576
|
-
} else wakeables.add(wakeable);
|
|
6577
|
-
if (
|
|
6578
|
-
0 === (workInProgress$30.mode & 1) &&
|
|
6579
|
-
workInProgress$30 !== returnFiber
|
|
6580
|
-
) {
|
|
6581
|
-
workInProgress$30.flags |= 128;
|
|
6582
|
-
sourceFiber.flags |= 32768;
|
|
6583
|
-
sourceFiber.flags &= -10053;
|
|
6584
|
-
if (
|
|
6585
|
-
enablePersistentOffscreenHostContainer &&
|
|
6586
|
-
null === workInProgress$30.alternate
|
|
6587
|
-
) {
|
|
6588
|
-
var offscreenContainer = workInProgress$30.child.child;
|
|
6589
|
-
if (null !== offscreenContainer) {
|
|
6590
|
-
var containerProps = getOffscreenContainerProps(
|
|
6591
|
-
"hidden",
|
|
6592
|
-
offscreenContainer.memoizedProps.children
|
|
6593
|
-
);
|
|
6594
|
-
offscreenContainer.pendingProps = containerProps;
|
|
6595
|
-
offscreenContainer.memoizedProps = containerProps;
|
|
6596
|
-
}
|
|
6597
|
-
}
|
|
6598
|
-
if (1 === sourceFiber.tag)
|
|
6599
|
-
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6766
|
+
: hasInvisibleParentBoundary
|
|
6767
|
+
? !1
|
|
6768
|
+
: !0;
|
|
6769
|
+
}
|
|
6770
|
+
if (JSCompiler_temp) {
|
|
6771
|
+
if (0 === (node.mode & 1)) {
|
|
6772
|
+
if (node === sourceFiber$jscomp$0) node.flags |= 65536;
|
|
6600
6773
|
else {
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6774
|
+
node.flags |= 128;
|
|
6775
|
+
sourceFiber$jscomp$1.flags |= 131072;
|
|
6776
|
+
sourceFiber$jscomp$1.flags &= -52805;
|
|
6777
|
+
if (
|
|
6778
|
+
enablePersistentOffscreenHostContainer &&
|
|
6779
|
+
null === node.alternate
|
|
6780
|
+
) {
|
|
6781
|
+
var offscreenContainer = node.child.child;
|
|
6782
|
+
if (null !== offscreenContainer) {
|
|
6783
|
+
var containerProps = getOffscreenContainerProps(
|
|
6784
|
+
"hidden",
|
|
6785
|
+
offscreenContainer.memoizedProps.children
|
|
6786
|
+
);
|
|
6787
|
+
offscreenContainer.pendingProps = containerProps;
|
|
6788
|
+
offscreenContainer.memoizedProps = containerProps;
|
|
6789
|
+
}
|
|
6790
|
+
}
|
|
6791
|
+
if (1 === sourceFiber$jscomp$1.tag)
|
|
6792
|
+
if (null === sourceFiber$jscomp$1.alternate)
|
|
6793
|
+
sourceFiber$jscomp$1.tag = 17;
|
|
6794
|
+
else {
|
|
6795
|
+
var update = createUpdate(-1, 1);
|
|
6796
|
+
update.tag = 2;
|
|
6797
|
+
enqueueUpdate(sourceFiber$jscomp$1, update);
|
|
6798
|
+
}
|
|
6799
|
+
sourceFiber$jscomp$1.lanes |= 1;
|
|
6604
6800
|
}
|
|
6605
|
-
|
|
6606
|
-
|
|
6801
|
+
var suspenseBoundary = node;
|
|
6802
|
+
break b;
|
|
6803
|
+
}
|
|
6804
|
+
node.flags |= 65536;
|
|
6805
|
+
node.lanes = rootRenderLanes;
|
|
6806
|
+
suspenseBoundary = node;
|
|
6807
|
+
break b;
|
|
6607
6808
|
}
|
|
6608
|
-
|
|
6609
|
-
|
|
6809
|
+
node = node.return;
|
|
6810
|
+
} while (null !== node);
|
|
6811
|
+
suspenseBoundary = null;
|
|
6812
|
+
}
|
|
6813
|
+
if (null !== suspenseBoundary) {
|
|
6814
|
+
value = void 0;
|
|
6815
|
+
sourceFiber = suspenseBoundary;
|
|
6816
|
+
if (sourceFiber.mode & 1) {
|
|
6610
6817
|
var pingCache = root.pingCache;
|
|
6611
6818
|
null === pingCache
|
|
6612
6819
|
? ((pingCache = root.pingCache = new PossiblyWeakMap()),
|
|
@@ -6615,71 +6822,74 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6615
6822
|
: ((value = pingCache.get(wakeable)),
|
|
6616
6823
|
void 0 === value &&
|
|
6617
6824
|
((value = new Set()), pingCache.set(wakeable, value)));
|
|
6618
|
-
if (!value.has(
|
|
6619
|
-
value.add(
|
|
6825
|
+
if (!value.has(thrownValue)) {
|
|
6826
|
+
value.add(thrownValue);
|
|
6620
6827
|
var ping = pingSuspendedRoot.bind(
|
|
6621
6828
|
null,
|
|
6622
6829
|
root,
|
|
6623
6830
|
wakeable,
|
|
6624
|
-
|
|
6831
|
+
thrownValue
|
|
6625
6832
|
);
|
|
6626
6833
|
wakeable.then(ping, ping);
|
|
6627
6834
|
}
|
|
6628
|
-
workInProgress$30.flags |= 16384;
|
|
6629
|
-
workInProgress$30.lanes = thrownValue;
|
|
6630
|
-
break a;
|
|
6631
6835
|
}
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6836
|
+
var wakeables = sourceFiber.updateQueue;
|
|
6837
|
+
if (null === wakeables) {
|
|
6838
|
+
var updateQueue = new Set();
|
|
6839
|
+
updateQueue.add(wakeable);
|
|
6840
|
+
sourceFiber.updateQueue = updateQueue;
|
|
6841
|
+
} else wakeables.add(wakeable);
|
|
6842
|
+
break a;
|
|
6843
|
+
} else
|
|
6844
|
+
value = Error(
|
|
6845
|
+
(getComponentNameFromFiber(sourceFiber) || "A React component") +
|
|
6846
|
+
" 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."
|
|
6847
|
+
);
|
|
6638
6848
|
}
|
|
6639
|
-
|
|
6849
|
+
4 !== workInProgressRootExitStatus &&
|
|
6640
6850
|
(workInProgressRootExitStatus = 2);
|
|
6641
6851
|
value = createCapturedValue(value, sourceFiber);
|
|
6642
|
-
|
|
6852
|
+
root = returnFiber;
|
|
6643
6853
|
do {
|
|
6644
|
-
switch (
|
|
6854
|
+
switch (root.tag) {
|
|
6645
6855
|
case 3:
|
|
6646
|
-
|
|
6647
|
-
|
|
6856
|
+
wakeable = value;
|
|
6857
|
+
root.flags |= 65536;
|
|
6648
6858
|
thrownValue &= -thrownValue;
|
|
6649
|
-
|
|
6650
|
-
var update$
|
|
6651
|
-
workInProgress$30,
|
|
6859
|
+
root.lanes |= thrownValue;
|
|
6860
|
+
var update$jscomp$0 = createRootErrorUpdate(
|
|
6652
6861
|
root,
|
|
6862
|
+
wakeable,
|
|
6653
6863
|
thrownValue
|
|
6654
6864
|
);
|
|
6655
|
-
enqueueCapturedUpdate(
|
|
6865
|
+
enqueueCapturedUpdate(root, update$jscomp$0);
|
|
6656
6866
|
break a;
|
|
6657
6867
|
case 1:
|
|
6658
|
-
|
|
6659
|
-
var ctor =
|
|
6660
|
-
instance =
|
|
6868
|
+
wakeable = value;
|
|
6869
|
+
var ctor = root.type,
|
|
6870
|
+
instance = root.stateNode;
|
|
6661
6871
|
if (
|
|
6662
|
-
0 === (
|
|
6872
|
+
0 === (root.flags & 128) &&
|
|
6663
6873
|
("function" === typeof ctor.getDerivedStateFromError ||
|
|
6664
6874
|
(null !== instance &&
|
|
6665
6875
|
"function" === typeof instance.componentDidCatch &&
|
|
6666
6876
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
6667
6877
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
6668
6878
|
) {
|
|
6669
|
-
|
|
6879
|
+
root.flags |= 65536;
|
|
6670
6880
|
thrownValue &= -thrownValue;
|
|
6671
|
-
|
|
6672
|
-
var update$
|
|
6673
|
-
workInProgress$30,
|
|
6881
|
+
root.lanes |= thrownValue;
|
|
6882
|
+
var update$31 = createClassErrorUpdate(
|
|
6674
6883
|
root,
|
|
6884
|
+
wakeable,
|
|
6675
6885
|
thrownValue
|
|
6676
6886
|
);
|
|
6677
|
-
enqueueCapturedUpdate(
|
|
6887
|
+
enqueueCapturedUpdate(root, update$31);
|
|
6678
6888
|
break a;
|
|
6679
6889
|
}
|
|
6680
6890
|
}
|
|
6681
|
-
|
|
6682
|
-
} while (null !==
|
|
6891
|
+
root = root.return;
|
|
6892
|
+
} while (null !== root);
|
|
6683
6893
|
}
|
|
6684
6894
|
completeUnitOfWork(erroredWork);
|
|
6685
6895
|
} catch (yetAnotherThrownValue) {
|
|
@@ -6740,7 +6950,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6740
6950
|
do {
|
|
6741
6951
|
var current = completedWork.alternate;
|
|
6742
6952
|
unitOfWork = completedWork.return;
|
|
6743
|
-
if (0 === (completedWork.flags &
|
|
6953
|
+
if (0 === (completedWork.flags & 32768)) {
|
|
6744
6954
|
if (
|
|
6745
6955
|
((current = completeWork(current, completedWork, subtreeRenderLanes)),
|
|
6746
6956
|
null !== current)
|
|
@@ -6751,12 +6961,12 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
6751
6961
|
} else {
|
|
6752
6962
|
current = unwindWork(completedWork);
|
|
6753
6963
|
if (null !== current) {
|
|
6754
|
-
current.flags &=
|
|
6964
|
+
current.flags &= 32767;
|
|
6755
6965
|
workInProgress = current;
|
|
6756
6966
|
return;
|
|
6757
6967
|
}
|
|
6758
6968
|
null !== unitOfWork &&
|
|
6759
|
-
((unitOfWork.flags |=
|
|
6969
|
+
((unitOfWork.flags |= 32768),
|
|
6760
6970
|
(unitOfWork.subtreeFlags = 0),
|
|
6761
6971
|
(unitOfWork.deletions = null));
|
|
6762
6972
|
}
|
|
@@ -6803,16 +7013,16 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6803
7013
|
root === workInProgressRoot &&
|
|
6804
7014
|
((workInProgress = workInProgressRoot = null),
|
|
6805
7015
|
(workInProgressRootRenderLanes = 0));
|
|
6806
|
-
(0 === (finishedWork.subtreeFlags &
|
|
6807
|
-
0 === (finishedWork.flags &
|
|
7016
|
+
(0 === (finishedWork.subtreeFlags & 2064) &&
|
|
7017
|
+
0 === (finishedWork.flags & 2064)) ||
|
|
6808
7018
|
rootDoesHavePassiveEffects ||
|
|
6809
7019
|
((rootDoesHavePassiveEffects = !0),
|
|
6810
7020
|
scheduleCallback$1(NormalPriority, function() {
|
|
6811
7021
|
flushPassiveEffects();
|
|
6812
7022
|
return null;
|
|
6813
7023
|
}));
|
|
6814
|
-
remainingLanes = 0 !== (finishedWork.flags &
|
|
6815
|
-
if (0 !== (finishedWork.subtreeFlags &
|
|
7024
|
+
remainingLanes = 0 !== (finishedWork.flags & 15990);
|
|
7025
|
+
if (0 !== (finishedWork.subtreeFlags & 15990) || remainingLanes) {
|
|
6816
7026
|
remainingLanes = ReactCurrentBatchConfig$2.transition;
|
|
6817
7027
|
ReactCurrentBatchConfig$2.transition = 0;
|
|
6818
7028
|
var previousPriority = currentUpdatePriority;
|
|
@@ -6835,11 +7045,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6835
7045
|
(pendingPassiveEffectsLanes = lanes));
|
|
6836
7046
|
remainingLanes = root.pendingLanes;
|
|
6837
7047
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
6838
|
-
0 !== (remainingLanes & 1)
|
|
6839
|
-
? root === rootWithNestedUpdates
|
|
6840
|
-
? nestedUpdateCount++
|
|
6841
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
6842
|
-
: (nestedUpdateCount = 0);
|
|
6843
7048
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
6844
7049
|
ensureRootIsScheduled(root, now());
|
|
6845
7050
|
if (hasUncaughtError)
|
|
@@ -6850,6 +7055,12 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
6850
7055
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
6851
7056
|
0 !== root.tag &&
|
|
6852
7057
|
flushPassiveEffects();
|
|
7058
|
+
remainingLanes = root.pendingLanes;
|
|
7059
|
+
0 !== (remainingLanes & 1)
|
|
7060
|
+
? root === rootWithNestedUpdates
|
|
7061
|
+
? nestedUpdateCount++
|
|
7062
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
|
|
7063
|
+
: (nestedUpdateCount = 0);
|
|
6853
7064
|
flushSyncCallbacks();
|
|
6854
7065
|
return null;
|
|
6855
7066
|
}
|
|
@@ -6885,7 +7096,7 @@ function flushPassiveEffects() {
|
|
|
6885
7096
|
case 0:
|
|
6886
7097
|
case 11:
|
|
6887
7098
|
case 15:
|
|
6888
|
-
commitHookEffectListUnmount(
|
|
7099
|
+
commitHookEffectListUnmount(8, fiber$jscomp$0, fiber);
|
|
6889
7100
|
}
|
|
6890
7101
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
6891
7102
|
if (null !== child$jscomp$0)
|
|
@@ -6925,17 +7136,17 @@ function flushPassiveEffects() {
|
|
|
6925
7136
|
nextEffect = fiber;
|
|
6926
7137
|
}
|
|
6927
7138
|
}
|
|
6928
|
-
if (0 !== (fiber.subtreeFlags &
|
|
7139
|
+
if (0 !== (fiber.subtreeFlags & 2064) && null !== child)
|
|
6929
7140
|
(child.return = fiber), (nextEffect = child);
|
|
6930
7141
|
else
|
|
6931
7142
|
b: for (; null !== nextEffect; ) {
|
|
6932
7143
|
fiber = nextEffect;
|
|
6933
|
-
if (0 !== (fiber.flags &
|
|
7144
|
+
if (0 !== (fiber.flags & 2048))
|
|
6934
7145
|
switch (fiber.tag) {
|
|
6935
7146
|
case 0:
|
|
6936
7147
|
case 11:
|
|
6937
7148
|
case 15:
|
|
6938
|
-
commitHookEffectListUnmount(
|
|
7149
|
+
commitHookEffectListUnmount(9, fiber, fiber.return);
|
|
6939
7150
|
}
|
|
6940
7151
|
var sibling$jscomp$0 = fiber.sibling;
|
|
6941
7152
|
if (null !== sibling$jscomp$0) {
|
|
@@ -6950,18 +7161,18 @@ function flushPassiveEffects() {
|
|
|
6950
7161
|
for (nextEffect = finishedWork; null !== nextEffect; ) {
|
|
6951
7162
|
child = nextEffect;
|
|
6952
7163
|
var firstChild = child.child;
|
|
6953
|
-
if (0 !== (child.subtreeFlags &
|
|
7164
|
+
if (0 !== (child.subtreeFlags & 2064) && null !== firstChild)
|
|
6954
7165
|
(firstChild.return = child), (nextEffect = firstChild);
|
|
6955
7166
|
else
|
|
6956
7167
|
b: for (child = finishedWork; null !== nextEffect; ) {
|
|
6957
7168
|
deletions = nextEffect;
|
|
6958
|
-
if (0 !== (deletions.flags &
|
|
7169
|
+
if (0 !== (deletions.flags & 2048))
|
|
6959
7170
|
try {
|
|
6960
7171
|
switch (deletions.tag) {
|
|
6961
7172
|
case 0:
|
|
6962
7173
|
case 11:
|
|
6963
7174
|
case 15:
|
|
6964
|
-
commitHookEffectListMount(
|
|
7175
|
+
commitHookEffectListMount(9, deletions);
|
|
6965
7176
|
}
|
|
6966
7177
|
} catch (error) {
|
|
6967
7178
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -7107,7 +7318,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7107
7318
|
renderLanes
|
|
7108
7319
|
)
|
|
7109
7320
|
);
|
|
7110
|
-
didReceiveUpdate = 0 !== (current.flags &
|
|
7321
|
+
didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;
|
|
7111
7322
|
}
|
|
7112
7323
|
else didReceiveUpdate = !1;
|
|
7113
7324
|
workInProgress.lanes = 0;
|
|
@@ -7573,7 +7784,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
7573
7784
|
(workInProgress.flags = 0),
|
|
7574
7785
|
(workInProgress.subtreeFlags = 0),
|
|
7575
7786
|
(workInProgress.deletions = null));
|
|
7576
|
-
workInProgress.flags = current.flags &
|
|
7787
|
+
workInProgress.flags = current.flags & 7340032;
|
|
7577
7788
|
workInProgress.childLanes = current.childLanes;
|
|
7578
7789
|
workInProgress.lanes = current.lanes;
|
|
7579
7790
|
workInProgress.child = current.child;
|
|
@@ -7666,8 +7877,7 @@ function createFiberFromTypeAndProps(
|
|
|
7666
7877
|
}
|
|
7667
7878
|
throw Error(
|
|
7668
7879
|
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
7669
|
-
(null == type ? type : typeof type) +
|
|
7670
|
-
"."
|
|
7880
|
+
((null == type ? type : typeof type) + ".")
|
|
7671
7881
|
);
|
|
7672
7882
|
}
|
|
7673
7883
|
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
@@ -7720,7 +7930,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
|
|
|
7720
7930
|
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
|
|
7721
7931
|
this.timeoutHandle = -1;
|
|
7722
7932
|
this.pendingContext = this.context = null;
|
|
7723
|
-
this.
|
|
7933
|
+
this.isDehydrated = hydrate;
|
|
7724
7934
|
this.callbackNode = null;
|
|
7725
7935
|
this.callbackPriority = 0;
|
|
7726
7936
|
this.eventTimes = createLaneMap(0);
|
|
@@ -7744,9 +7954,9 @@ function findHostInstance(component) {
|
|
|
7744
7954
|
if (void 0 === fiber) {
|
|
7745
7955
|
if ("function" === typeof component.render)
|
|
7746
7956
|
throw Error("Unable to find node on an unmounted component.");
|
|
7957
|
+
component = Object.keys(component).join(",");
|
|
7747
7958
|
throw Error(
|
|
7748
|
-
"Argument appears to not be a ReactComponent. Keys: " +
|
|
7749
|
-
Object.keys(component)
|
|
7959
|
+
"Argument appears to not be a ReactComponent. Keys: " + component
|
|
7750
7960
|
);
|
|
7751
7961
|
}
|
|
7752
7962
|
component = findCurrentHostFiber(fiber);
|
|
@@ -7930,10 +8140,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
7930
8140
|
}
|
|
7931
8141
|
};
|
|
7932
8142
|
var roots = new Map(),
|
|
7933
|
-
devToolsConfig$jscomp$
|
|
8143
|
+
devToolsConfig$jscomp$inline_935 = {
|
|
7934
8144
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
7935
8145
|
bundleType: 0,
|
|
7936
|
-
version: "18.0.0-
|
|
8146
|
+
version: "18.0.0-afcb9cdc9-20211008",
|
|
7937
8147
|
rendererPackageName: "react-native-renderer",
|
|
7938
8148
|
rendererConfig: {
|
|
7939
8149
|
getInspectorDataForViewTag: function() {
|
|
@@ -7949,10 +8159,10 @@ var roots = new Map(),
|
|
|
7949
8159
|
}
|
|
7950
8160
|
};
|
|
7951
8161
|
var internals$jscomp$inline_1189 = {
|
|
7952
|
-
bundleType: devToolsConfig$jscomp$
|
|
7953
|
-
version: devToolsConfig$jscomp$
|
|
7954
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
7955
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8162
|
+
bundleType: devToolsConfig$jscomp$inline_935.bundleType,
|
|
8163
|
+
version: devToolsConfig$jscomp$inline_935.version,
|
|
8164
|
+
rendererPackageName: devToolsConfig$jscomp$inline_935.rendererPackageName,
|
|
8165
|
+
rendererConfig: devToolsConfig$jscomp$inline_935.rendererConfig,
|
|
7956
8166
|
overrideHookState: null,
|
|
7957
8167
|
overrideHookStateDeletePath: null,
|
|
7958
8168
|
overrideHookStateRenamePath: null,
|
|
@@ -7968,14 +8178,14 @@ var internals$jscomp$inline_1189 = {
|
|
|
7968
8178
|
return null === fiber ? null : fiber.stateNode;
|
|
7969
8179
|
},
|
|
7970
8180
|
findFiberByHostInstance:
|
|
7971
|
-
devToolsConfig$jscomp$
|
|
8181
|
+
devToolsConfig$jscomp$inline_935.findFiberByHostInstance ||
|
|
7972
8182
|
emptyFindFiberByHostInstance,
|
|
7973
8183
|
findHostInstancesForRefresh: null,
|
|
7974
8184
|
scheduleRefresh: null,
|
|
7975
8185
|
scheduleRoot: null,
|
|
7976
8186
|
setRefreshHandler: null,
|
|
7977
8187
|
getCurrentFiber: null,
|
|
7978
|
-
reconcilerVersion: "18.0.0-
|
|
8188
|
+
reconcilerVersion: "18.0.0-afcb9cdc9-20211008"
|
|
7979
8189
|
};
|
|
7980
8190
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
7981
8191
|
var hook$jscomp$inline_1190 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|