react-native 0.0.0-16bb2ae4f → 0.0.0-18697adec
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
- package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
- package/Libraries/Animated/AnimatedEvent.js +23 -4
- package/Libraries/Animated/NativeAnimatedHelper.js +3 -3
- package/Libraries/BatchedBridge/MessageQueue.js +10 -10
- package/Libraries/Blob/FileReader.js +1 -1
- package/Libraries/Blob/React-RCTBlob.podspec +1 -1
- package/Libraries/Blob/URL.js +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/ScrollView/ScrollView.js +14 -5
- package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +1 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
- package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -0
- package/Libraries/Components/StatusBar/StatusBar.js +6 -14
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -3
- package/Libraries/Components/TextInput/AndroidTextInputViewConfig.js +1 -0
- package/Libraries/Components/TextInput/TextInput.js +27 -1
- package/Libraries/Components/TextInput/TextInputState.js +1 -1
- package/Libraries/Components/View/ViewAccessibility.js +1 -0
- package/Libraries/Core/ExceptionsManager.js +3 -1
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +37 -28
- package/Libraries/Core/Timers/immediateShim.js +67 -0
- package/Libraries/Core/Timers/queueMicrotask.js +41 -0
- package/Libraries/Core/polyfillPromise.js +1 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpGlobals.js +2 -0
- package/Libraries/Core/setUpRegeneratorRuntime.js +25 -8
- package/Libraries/Core/setUpTimers.js +65 -6
- package/Libraries/DeprecatedPropTypes/DeprecatedTextInputPropTypes.js +1 -1
- package/Libraries/Image/Image.ios.js +6 -0
- package/Libraries/Image/ImageBackground.js +10 -8
- package/Libraries/Image/ImageProps.js +28 -0
- package/Libraries/Image/ImageSource.js +1 -1
- package/Libraries/Image/React-RCTImage.podspec +1 -1
- package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
- package/Libraries/Lists/FlatList.js +43 -26
- package/Libraries/Lists/VirtualizedList.js +3 -1
- package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +4 -4
- package/Libraries/LogBox/Data/LogBoxData.js +18 -18
- 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/NativeAnimation/Nodes/RCTPropsAnimatedNode.m +0 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +6 -3
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.h +1 -2
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +17 -11
- package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/Network/XMLHttpRequest.js +3 -1
- package/Libraries/NewAppScreen/components/logo.png +0 -0
- package/Libraries/Performance/QuickPerformanceLogger.js +2 -1
- package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
- package/Libraries/Pressability/Pressability.js +1 -0
- package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -0
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +0 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
- package/Libraries/ReactNative/AppRegistry.js +1 -1
- package/Libraries/ReactNative/PaperUIManager.js +1 -0
- package/Libraries/ReactNative/renderApplication.js +1 -1
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -2
- package/Libraries/Reliability/UserFlow.js +7 -0
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +4485 -3842
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +2060 -1709
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +2148 -1796
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +4264 -3695
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +1303 -1063
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +1374 -1139
- package/Libraries/Renderer/shims/ReactFabric.js +3 -1
- package/Libraries/Renderer/shims/ReactFeatureFlags.js +3 -1
- package/Libraries/Renderer/shims/ReactNative.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -1
- package/Libraries/Renderer/shims/createReactNativeComponentClass.js +3 -1
- package/Libraries/Settings/React-RCTSettings.podspec +1 -1
- package/Libraries/StyleSheet/normalizeColor.js +2 -2
- package/Libraries/Text/Text.js +11 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +2 -12
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.m +4 -11
- package/Libraries/Text/TextProps.js +1 -7
- package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
- package/Libraries/TypeSafety/RCTTypeSafety.podspec +1 -1
- package/Libraries/UTFSequence.js +1 -1
- package/Libraries/Utilities/Dimensions.js +9 -14
- package/Libraries/Utilities/FeatureDetection.js +31 -0
- package/Libraries/Utilities/HMRClient.js +10 -6
- package/Libraries/Utilities/MatrixMath.js +1 -1
- package/Libraries/Utilities/NativeDeviceInfo.js +1 -1
- package/Libraries/Utilities/deprecatedPropType.js +2 -2
- package/Libraries/Utilities/useWindowDimensions.js +7 -2
- package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
- package/Libraries/vendor/emitter/_EventSubscriptionVendor.js +1 -1
- package/React/Base/RCTBridge+Private.h +8 -0
- package/React/Base/RCTBridge.h +13 -0
- package/React/Base/RCTBridge.m +30 -7
- package/React/Base/RCTBridgeModule.h +3 -12
- package/React/Base/RCTBundleURLProvider.h +26 -1
- package/React/Base/RCTBundleURLProvider.mm +79 -15
- package/React/Base/RCTConstants.h +6 -7
- package/React/Base/RCTConstants.m +12 -12
- package/React/Base/RCTConvert.h +1 -1
- package/React/Base/RCTConvert.m +1 -1
- package/React/Base/RCTCxxConvert.h +1 -1
- package/React/Base/RCTDefines.h +12 -3
- package/React/Base/RCTEventDispatcherProtocol.h +2 -0
- package/React/Base/RCTJSThread.h +29 -0
- package/React/Base/RCTJSThread.m +19 -0
- package/React/Base/RCTMultipartStreamReader.m +0 -2
- package/React/Base/RCTRootView.h +15 -0
- package/React/Base/RCTRootView.m +15 -0
- package/React/Base/RCTTouchHandler.m +4 -9
- package/React/Base/RCTUtils.h +3 -0
- package/React/Base/RCTUtils.m +14 -7
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.h +11 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +35 -1
- package/React/CoreModules/BUCK +3 -3
- package/React/CoreModules/RCTAccessibilityManager.mm +1 -1
- package/React/CoreModules/RCTActionSheetManager.mm +14 -5
- package/React/CoreModules/RCTAsyncLocalStorage.mm +4 -0
- package/React/CoreModules/RCTDevLoadingView.mm +5 -10
- package/React/CoreModules/RCTDevSettings.mm +12 -10
- package/React/CoreModules/RCTDevSplitBundleLoader.mm +1 -1
- package/React/CoreModules/RCTDeviceInfo.mm +4 -4
- package/React/CoreModules/RCTEventDispatcher.mm +5 -0
- package/React/CoreModules/RCTLogBox.mm +14 -10
- package/React/CoreModules/RCTPerfMonitor.mm +9 -4
- package/React/CoreModules/RCTRedBox.mm +1 -5
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/CxxBridge/RCTCxxBridge.mm +18 -1
- package/React/DevSupport/RCTPackagerConnection.h +3 -0
- package/React/DevSupport/RCTPackagerConnection.mm +19 -8
- package/React/FBReactNativeSpec/FBReactNativeSpec.podspec +12 -4
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +1 -2
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +64 -62
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +31 -11
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.h +6 -0
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +108 -4
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +1 -0
- package/React/Fabric/Mounting/RCTMountingManager.h +3 -0
- package/React/Fabric/Mounting/RCTMountingManager.mm +22 -3
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.h +2 -0
- package/React/Fabric/Mounting/UIView+ComponentViewProtocol.mm +12 -0
- package/React/Fabric/RCTConversions.h +3 -0
- package/React/Fabric/RCTScheduler.mm +12 -5
- package/React/Fabric/RCTSurfacePresenter.mm +6 -7
- package/React/Fabric/RCTSurfacePresenterBridgeAdapter.h +1 -1
- package/React/Fabric/RCTSurfaceRegistry.h +1 -1
- package/React/Fabric/RCTSurfaceTouchHandler.mm +6 -20
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -0
- package/React/Modules/RCTI18nUtil.h +14 -6
- package/React/Modules/RCTI18nUtil.m +1 -47
- package/React/Profiler/RCTProfileTrampoline-arm.S +1 -1
- package/React/Profiler/RCTProfileTrampoline-arm64.S +2 -2
- package/React/React-RCTFabric.podspec +1 -1
- package/React/Views/RCTFont.mm +54 -38
- package/React/Views/RCTModalHostView.h +1 -1
- package/React/Views/RCTModalHostView.m +16 -0
- package/React/Views/RCTModalHostViewManager.m +1 -0
- package/React/Views/RCTView.m +2 -7
- package/React/Views/RCTViewManager.m +4 -2
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +1 -5
- package/React/Views/ScrollView/RCTScrollView.h +1 -0
- package/React/Views/ScrollView/RCTScrollView.m +111 -36
- package/React/Views/ScrollView/RCTScrollViewManager.m +1 -7
- package/React/Views/UIView+React.m +2 -11
- package/React-Core.podspec +1 -1
- package/ReactAndroid/Android-prebuilt.mk +8 -0
- package/ReactAndroid/README.md +1 -1
- package/ReactAndroid/build.gradle +12 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppInstrumentationTestCase.java +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/idledetection/BUCK +1 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/testing/rule/BUCK +5 -5
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/BUCK +0 -1
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/core/BUCK +5 -5
- package/ReactAndroid/src/androidTest/js/BUCK +26 -0
- package/ReactAndroid/src/androidTest/js/TestBundle.js +0 -7
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/Android.mk +4 -4
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/HermesExecutorFactory.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor/RuntimeConfig.java +0 -6
- package/ReactAndroid/src/main/java/com/facebook/react/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +89 -44
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +13 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/animated/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/BackgroundExecutor.java +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +11 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.java +37 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModuleRegistry.java +22 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +3 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContextBaseJavaModule.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/{ReactSoftException.java → ReactSoftExceptionLogger.java} +8 -3
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/RuntimeScheduler.java +21 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.java +8 -7
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManager.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +32 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevSupportManagerFactory.java +97 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java +9 -58
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +14 -9
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerFactory.java +3 -72
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PackagerStatusCheck.java +100 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/Binding.java +10 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricComponents.java +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricJSIModuleProvider.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +64 -31
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.java +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp +54 -10
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.h +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.java +14 -6
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java +40 -11
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/SendAccessibilityEvent.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/Android.mk +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/bundleloader/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/camera/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/{JavaScriptTimerManager.java → JavaScriptTimerExecutor.java} +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaTimerManager.java +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/TimingModule.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/debug/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java +10 -6
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.java +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java +23 -19
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/share/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/sound/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/storage/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/BUCK +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/toast/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/vibration/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.java +11 -9
- package/ReactAndroid/src/main/java/com/facebook/react/shell/BUCK +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +0 -5
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.cpp +39 -11
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.h +9 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.java +7 -28
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.java +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactOverflowView.java +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java +162 -66
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.java +9 -9
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java +6 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +16 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/Event.java +12 -20
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java +14 -13
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchEvent.java +21 -5
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.java +7 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +24 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +4 -7
- package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/BUCK +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextAnchorViewManager.java +0 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +23 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +20 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java +31 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +31 -11
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/BUCK +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java +14 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditTextInputConnectionWrapper.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +114 -62
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +92 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java +39 -8
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +24 -3
- package/ReactAndroid/src/main/jni/react/jni/Android.mk +5 -3
- package/ReactAndroid/src/main/jni/react/jni/BUCK +5 -2
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +61 -0
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +8 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +18 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.h +25 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.cpp +21 -0
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.h +28 -0
- package/{ReactCommon/react/renderer/core/Constants.cpp → ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp} +6 -8
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.h +30 -0
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +1 -1
- package/ReactAndroid/src/main/jni/third-party/libevent/Android.mk +0 -1
- package/ReactAndroid/src/main/third-party/android/androidx/BUCK +63 -2
- package/ReactAndroid/src/main/third-party/java/testing-support-lib/BUCK +0 -31
- package/ReactAndroid/src/test/java/com/facebook/react/bridge/ReactTestHelper.java +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/BUCK +1 -0
- package/ReactAndroid/src/test/java/com/facebook/react/modules/deviceinfo/DeviceInfoModuleTest.java +168 -0
- package/ReactCommon/React-Fabric.podspec +10 -1
- package/ReactCommon/ReactCommon.podspec +2 -1
- package/ReactCommon/callinvoker/BUCK +2 -2
- package/ReactCommon/callinvoker/React-callinvoker.podspec +1 -1
- package/ReactCommon/cxxreact/Android.mk +2 -1
- package/ReactCommon/cxxreact/BUCK +1 -0
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +28 -0
- package/ReactCommon/cxxreact/CxxNativeModule.h +9 -0
- package/ReactCommon/cxxreact/React-cxxreact.podspec +2 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/React-hermes.podspec +1 -1
- package/ReactCommon/hermes/executor/Android.mk +4 -4
- package/ReactCommon/hermes/inspector/Android.mk +1 -2
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +7 -4
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +13 -10
- package/ReactCommon/jsi/Android.mk +1 -1
- package/ReactCommon/jsi/BUCK +0 -2
- package/ReactCommon/jsi/React-jsi.podspec +1 -1
- package/ReactCommon/jsiexecutor/Android.mk +2 -2
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -1
- package/ReactCommon/logger/Android.mk +23 -0
- package/ReactCommon/logger/BUCK +43 -0
- package/ReactCommon/logger/React-logger.podspec +40 -0
- package/ReactCommon/logger/react_native_log.cpp +52 -0
- package/ReactCommon/logger/react_native_log.h +33 -0
- package/ReactCommon/react/nativemodule/core/Android.mk +2 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.cpp +1 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/LongLivedObject.h +3 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +46 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.h +10 -0
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +37 -1
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +24 -22
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.h +11 -8
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.h +7 -5
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModule.mm +51 -29
- package/ReactCommon/react/nativemodule/core/platform/ios/RCTTurboModuleManager.mm +45 -34
- package/ReactCommon/react/nativemodule/samples/BUCK +2 -2
- package/ReactCommon/react/nativemodule/samples/platform/android/Android.mk +1 -1
- package/ReactCommon/react/renderer/animations/BUCK +1 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationCallbackWrapper.h +34 -0
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +5 -27
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.h +8 -14
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +920 -1136
- package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.h +80 -245
- package/ReactCommon/react/renderer/animations/conversions.h +212 -0
- package/ReactCommon/react/renderer/animations/primitives.h +104 -0
- package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +9 -6
- package/ReactCommon/react/renderer/animations/utils.cpp +71 -0
- package/ReactCommon/react/renderer/animations/utils.h +80 -0
- package/ReactCommon/react/renderer/attributedstring/AttributedString.h +0 -1
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +7 -3
- package/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +12 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +7 -2
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.h +3 -1
- package/ReactCommon/react/renderer/attributedstring/conversions.h +162 -11
- package/ReactCommon/react/renderer/attributedstring/primitives.h +34 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.cpp +2 -2
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h +1 -0
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +10 -4
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.h +4 -1
- package/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.cpp +2 -1
- package/ReactCommon/react/renderer/components/image/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +28 -9
- package/ReactCommon/react/renderer/components/image/ImageProps.h +5 -1
- package/ReactCommon/react/renderer/components/image/conversions.h +9 -2
- package/ReactCommon/react/renderer/components/inputaccessory/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/BUCK +1 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm +0 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.cpp +2 -1
- package/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropViewProps.h +2 -0
- package/ReactCommon/react/renderer/components/root/RootProps.cpp +12 -2
- package/ReactCommon/react/renderer/components/root/RootProps.h +6 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +2 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.h +2 -0
- package/ReactCommon/react/renderer/components/root/tests/RootShadowNodeTest.cpp +8 -4
- package/ReactCommon/react/renderer/components/safeareaview/BUCK +1 -1
- package/ReactCommon/react/renderer/components/scrollview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.cpp +45 -4
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h +5 -1
- package/ReactCommon/react/renderer/components/scrollview/conversions.h +5 -0
- package/ReactCommon/react/renderer/components/text/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +32 -0
- package/ReactCommon/react/renderer/components/text/BaseTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/ParagraphComponentDescriptor.h +1 -16
- package/ReactCommon/react/renderer/components/text/ParagraphProps.cpp +10 -4
- package/ReactCommon/react/renderer/components/text/ParagraphProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/RawTextProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/text/RawTextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/RawTextShadowNode.h +0 -6
- package/ReactCommon/react/renderer/components/text/TextProps.cpp +6 -3
- package/ReactCommon/react/renderer/components/text/TextProps.h +5 -1
- package/ReactCommon/react/renderer/components/text/TextShadowNode.h +0 -6
- package/ReactCommon/react/renderer/components/textinput/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.cpp +58 -91
- package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputProps.h +10 -6
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.cpp +46 -22
- package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputProps.h +6 -5
- package/ReactCommon/react/renderer/components/textinput/iostextinput/conversions.h +15 -3
- package/ReactCommon/react/renderer/components/textinput/iostextinput/primitives.h +6 -0
- package/ReactCommon/react/renderer/components/textinput/iostextinput/propsConversions.h +63 -2
- package/ReactCommon/react/renderer/components/unimplementedview/Android.mk +1 -1
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.cpp +4 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/components/unimplementedview/UnimplementedViewProps.h +1 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +21 -0
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +24 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.h +3 -0
- package/ReactCommon/react/renderer/components/view/Android.mk +3 -2
- package/ReactCommon/react/renderer/components/view/BUCK +1 -0
- package/ReactCommon/react/renderer/components/view/Touch.h +1 -32
- package/ReactCommon/react/renderer/components/view/ViewComponentDescriptor.h +0 -22
- package/ReactCommon/react/renderer/components/view/ViewProps.cpp +62 -14
- package/ReactCommon/react/renderer/components/view/ViewProps.h +7 -1
- package/ReactCommon/react/renderer/components/view/ViewPropsInterpolation.h +2 -10
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +5 -4
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -1
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +58 -33
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h +2 -8
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +3 -2
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.h +2 -0
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +62 -8
- package/ReactCommon/react/renderer/components/view/conversions.h +57 -14
- package/ReactCommon/react/renderer/components/view/propsConversions.h +163 -28
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +7 -2
- package/ReactCommon/react/renderer/core/Android.mk +1 -1
- package/ReactCommon/react/renderer/core/ComponentDescriptor.h +5 -2
- package/ReactCommon/react/renderer/core/ConcreteComponentDescriptor.h +19 -21
- package/ReactCommon/react/renderer/core/ConcreteShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/EventDispatcher.cpp +12 -31
- package/ReactCommon/react/renderer/core/EventDispatcher.h +1 -4
- package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +0 -6
- package/ReactCommon/react/renderer/core/Props.cpp +10 -2
- package/ReactCommon/react/renderer/core/Props.h +6 -1
- package/ReactCommon/react/renderer/core/PropsParserContext.h +29 -0
- package/ReactCommon/react/renderer/core/RawProps.cpp +2 -1
- package/ReactCommon/react/renderer/core/RawProps.h +3 -1
- package/ReactCommon/react/renderer/core/RawPropsKey.cpp +10 -2
- package/ReactCommon/react/renderer/core/RawPropsParser.h +11 -2
- package/ReactCommon/react/renderer/core/ReactPrimitives.h +0 -2
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +7 -10
- package/ReactCommon/react/renderer/core/ShadowNode.h +4 -0
- package/ReactCommon/react/renderer/core/ShadowNodeFamily.h +1 -0
- package/ReactCommon/react/renderer/core/ShadowNodeTraits.h +11 -1
- package/ReactCommon/react/renderer/core/propsConversions.h +18 -8
- package/ReactCommon/react/renderer/core/tests/ComponentDescriptorTest.cpp +16 -4
- package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +85 -20
- package/ReactCommon/react/renderer/core/tests/TestComponent.h +6 -2
- package/ReactCommon/react/renderer/graphics/Android.mk +5 -2
- package/ReactCommon/react/renderer/graphics/BUCK +12 -1
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +2 -1
- package/ReactCommon/react/renderer/graphics/Transform.cpp +1 -1
- package/ReactCommon/react/renderer/graphics/Transform.h +1 -1
- package/ReactCommon/react/renderer/graphics/conversions.h +34 -19
- package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +67 -0
- package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/PlatformColorParser.h +29 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/Color.h +42 -1
- package/ReactCommon/react/renderer/graphics/platform/ios/PlatformColorParser.h +34 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.h +12 -0
- package/ReactCommon/react/renderer/graphics/platform/ios/RCTPlatformColorUtils.mm +206 -0
- package/ReactCommon/react/renderer/imagemanager/BUCK +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/ios/RCTSyncImageManager.mm +1 -1
- package/ReactCommon/react/renderer/mapbuffer/BUCK +2 -2
- package/ReactCommon/react/renderer/mounting/Android.mk +2 -1
- package/ReactCommon/react/renderer/mounting/MountingOverrideDelegate.h +1 -1
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +6 -2
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +3 -1
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +12 -0
- package/ReactCommon/react/renderer/mounting/ShadowViewMutation.h +10 -1
- package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +12 -1
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +8 -1
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +10 -3
- package/ReactCommon/react/renderer/runtimescheduler/Android.mk +2 -1
- package/ReactCommon/react/renderer/runtimescheduler/BUCK +1 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.cpp +10 -4
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeScheduler.h +9 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.cpp +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerBinding.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.cpp +30 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h +34 -0
- package/ReactCommon/react/renderer/runtimescheduler/RuntimeSchedulerClock.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriority.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/Task.cpp +11 -5
- package/ReactCommon/react/renderer/runtimescheduler/Task.h +5 -3
- package/ReactCommon/react/renderer/runtimescheduler/primitives.h +4 -2
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +34 -0
- package/ReactCommon/react/renderer/{core/Constants.h → scheduler/InspectorData.h} +9 -8
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +44 -29
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +14 -0
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +49 -29
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +12 -4
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +1 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.h +2 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/RCTAttributedTextUtils.mm +22 -0
- package/ReactCommon/react/renderer/timeline/BUCK +6 -6
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +34 -30
- package/ReactCommon/react/renderer/uimanager/UIManager.h +6 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationDelegate.h +1 -1
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +101 -108
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +4 -7
- package/ReactCommon/react/test_utils/BUCK +3 -0
- package/ReactCommon/react/test_utils/MockSurfaceHandler.h +25 -0
- package/ReactCommon/react/test_utils/shadowTreeGeneration.h +18 -4
- package/ReactCommon/react/utils/Android.mk +3 -1
- package/ReactCommon/react/utils/BUCK +1 -0
- package/ReactCommon/react/utils/ContextContainer.h +0 -27
- package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -1
- package/ReactCommon/runtimeexecutor/React-runtimeexecutor.podspec +1 -1
- package/ReactCommon/runtimeexecutor/ReactCommon/RuntimeExecutor.h +12 -0
- package/android/com/facebook/react/react-native/{0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar → 0.0.0-18697adec/react-native-0.0.0-18697adec.aar} +0 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module → 0.0.0-18697adec/react-native-0.0.0-18697adec.module} +30 -17
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom → 0.0.0-18697adec/react-native-0.0.0-18697adec.pom} +8 -2
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-18697adec/react-native-0.0.0-18697adec.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
- package/flow/HermesInternalType.js +114 -0
- package/flow/global.js +68 -0
- package/index.js +37 -24
- package/jest/renderer.js +3 -7
- package/jest/setup.js +2 -1
- package/package.json +55 -16
- package/react.gradle +19 -13
- package/scripts/generate-specs-cli.js +20 -2
- package/scripts/ios-configure-glog.sh +4 -0
- package/scripts/react-native-xcode.sh +1 -1
- package/scripts/react_native_pods.rb +195 -38
- package/template/_flowconfig +1 -1
- package/template/android/app/build.gradle +2 -2
- package/template/android/build.gradle +1 -2
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +1 -1
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +2 -0
- package/template/ios/Podfile +1 -0
- package/template/package.json +3 -4
- package/third-party-podspecs/RCT-Folly.podspec +6 -3
- package/Libraries/BUCK +0 -26
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
- package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
- package/Libraries/Components/StaticContainer.react.js +0 -51
- package/Libraries/Components/StatusBar/StatusBarIOS.js +0 -38
- package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
- package/Libraries/Interaction/InteractionMixin.js +0 -54
- package/Libraries/ReactNative/queryLayoutByID.js +0 -58
- package/ReactAndroid/src/androidTest/java/com/facebook/react/tests/DatePickerDialogTestCase.java +0 -172
- package/ReactAndroid/src/androidTest/js/DatePickerDialogTestModule.js +0 -45
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/BUCK +0 -27
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogFragment.java +0 -137
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerDialogModule.java +0 -153
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DatePickerMode.java +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/modules/datepicker/DismissableDatePickerDialog.java +0 -117
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/BUCK +0 -20
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/RuntimeSchedulerManager.java +0 -39
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/Android.mk +0 -34
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/BUCK +0 -35
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/OnLoad.cpp +0 -15
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.cpp +0 -46
- package/ReactAndroid/src/main/java/com/facebook/react/runtimescheduler/jni/RuntimeSchedulerManager.h +0 -40
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-16bb2ae4f/react-native-0.0.0-16bb2ae4f.pom.sha512 +0 -1
- package/scripts/generate-specs.sh +0 -100
- package/template/_editorconfig +0 -3
- package/template/_gitattributes +0 -3
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<fde7e13d1ac4bc64f671a420c5af657b>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
14
14
|
require("react-native/Libraries/ReactPrivate/ReactNativePrivateInitializeCore");
|
|
15
15
|
var ReactNativePrivateInterface = require("react-native/Libraries/ReactPrivate/ReactNativePrivateInterface"),
|
|
16
|
-
React = require("react")
|
|
17
|
-
|
|
16
|
+
React = require("react");
|
|
17
|
+
var Scheduler = require("scheduler");
|
|
18
18
|
function invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {
|
|
19
19
|
var funcArgs = Array.prototype.slice.call(arguments, 3);
|
|
20
20
|
try {
|
|
@@ -930,7 +930,7 @@ eventPluginOrder = Array.prototype.slice.call([
|
|
|
930
930
|
"ReactNativeBridgeEventPlugin"
|
|
931
931
|
]);
|
|
932
932
|
recomputePluginOrdering();
|
|
933
|
-
var injectedNamesToPlugins$jscomp$
|
|
933
|
+
var injectedNamesToPlugins$jscomp$inline_233 = {
|
|
934
934
|
ResponderEventPlugin: ResponderEventPlugin,
|
|
935
935
|
ReactNativeBridgeEventPlugin: {
|
|
936
936
|
eventTypes: {},
|
|
@@ -965,34 +965,34 @@ var injectedNamesToPlugins$jscomp$inline_227 = {
|
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
967
|
},
|
|
968
|
-
isOrderingDirty$jscomp$
|
|
969
|
-
pluginName$jscomp$
|
|
970
|
-
for (pluginName$jscomp$
|
|
968
|
+
isOrderingDirty$jscomp$inline_234 = !1,
|
|
969
|
+
pluginName$jscomp$inline_235;
|
|
970
|
+
for (pluginName$jscomp$inline_235 in injectedNamesToPlugins$jscomp$inline_233)
|
|
971
971
|
if (
|
|
972
|
-
injectedNamesToPlugins$jscomp$
|
|
973
|
-
pluginName$jscomp$
|
|
972
|
+
injectedNamesToPlugins$jscomp$inline_233.hasOwnProperty(
|
|
973
|
+
pluginName$jscomp$inline_235
|
|
974
974
|
)
|
|
975
975
|
) {
|
|
976
|
-
var pluginModule$jscomp$
|
|
977
|
-
injectedNamesToPlugins$jscomp$
|
|
976
|
+
var pluginModule$jscomp$inline_236 =
|
|
977
|
+
injectedNamesToPlugins$jscomp$inline_233[pluginName$jscomp$inline_235];
|
|
978
978
|
if (
|
|
979
|
-
!namesToPlugins.hasOwnProperty(pluginName$jscomp$
|
|
980
|
-
namesToPlugins[pluginName$jscomp$
|
|
981
|
-
pluginModule$jscomp$
|
|
979
|
+
!namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_235) ||
|
|
980
|
+
namesToPlugins[pluginName$jscomp$inline_235] !==
|
|
981
|
+
pluginModule$jscomp$inline_236
|
|
982
982
|
) {
|
|
983
|
-
if (namesToPlugins[pluginName$jscomp$
|
|
983
|
+
if (namesToPlugins[pluginName$jscomp$inline_235])
|
|
984
984
|
throw Error(
|
|
985
985
|
"EventPluginRegistry: Cannot inject two different event plugins using the same name, `" +
|
|
986
|
-
pluginName$jscomp$
|
|
986
|
+
pluginName$jscomp$inline_235 +
|
|
987
987
|
"`."
|
|
988
988
|
);
|
|
989
989
|
namesToPlugins[
|
|
990
|
-
pluginName$jscomp$
|
|
991
|
-
] = pluginModule$jscomp$
|
|
992
|
-
isOrderingDirty$jscomp$
|
|
990
|
+
pluginName$jscomp$inline_235
|
|
991
|
+
] = pluginModule$jscomp$inline_236;
|
|
992
|
+
isOrderingDirty$jscomp$inline_234 = !0;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
isOrderingDirty$jscomp$
|
|
995
|
+
isOrderingDirty$jscomp$inline_234 && recomputePluginOrdering();
|
|
996
996
|
var instanceCache = new Map(),
|
|
997
997
|
instanceProps = new Map();
|
|
998
998
|
function getInstanceFromTag(tag) {
|
|
@@ -1859,6 +1859,9 @@ function getLanesToRetrySynchronouslyOnError(root) {
|
|
|
1859
1859
|
root = root.pendingLanes & -1073741825;
|
|
1860
1860
|
return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0;
|
|
1861
1861
|
}
|
|
1862
|
+
function includesBlockingLane(root, lanes) {
|
|
1863
|
+
return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30);
|
|
1864
|
+
}
|
|
1862
1865
|
function createLaneMap(initial) {
|
|
1863
1866
|
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
1864
1867
|
return laneMap;
|
|
@@ -1947,7 +1950,7 @@ function lanesToEventPriority(lanes) {
|
|
|
1947
1950
|
: 4
|
|
1948
1951
|
: 1;
|
|
1949
1952
|
}
|
|
1950
|
-
function shim() {
|
|
1953
|
+
function shim$1() {
|
|
1951
1954
|
throw Error(
|
|
1952
1955
|
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
|
1953
1956
|
);
|
|
@@ -2092,7 +2095,11 @@ function invalidateContextProvider(workInProgress, type, didChange) {
|
|
|
2092
2095
|
: pop(didPerformWorkStackCursor);
|
|
2093
2096
|
push(didPerformWorkStackCursor, didChange);
|
|
2094
2097
|
}
|
|
2095
|
-
|
|
2098
|
+
function is(x, y) {
|
|
2099
|
+
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
2100
|
+
}
|
|
2101
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
2102
|
+
syncQueue = null,
|
|
2096
2103
|
includesLegacySyncCallbacks = !1,
|
|
2097
2104
|
isFlushingSyncQueue = !1;
|
|
2098
2105
|
function flushSyncCallbacks() {
|
|
@@ -2121,10 +2128,6 @@ function flushSyncCallbacks() {
|
|
|
2121
2128
|
return null;
|
|
2122
2129
|
}
|
|
2123
2130
|
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
2131
|
function shallowEqual(objA, objB) {
|
|
2129
2132
|
if (objectIs(objA, objB)) return !0;
|
|
2130
2133
|
if (
|
|
@@ -2284,7 +2287,7 @@ function enqueueUpdate(fiber, update) {
|
|
|
2284
2287
|
((updateQueue = updateQueue.shared),
|
|
2285
2288
|
null !== workInProgressRoot &&
|
|
2286
2289
|
0 !== (fiber.mode & 1) &&
|
|
2287
|
-
0 === (executionContext &
|
|
2290
|
+
0 === (executionContext & 2)
|
|
2288
2291
|
? ((fiber = updateQueue.interleaved),
|
|
2289
2292
|
null === fiber
|
|
2290
2293
|
? ((update.next = update),
|
|
@@ -2421,7 +2424,7 @@ function processUpdateQueue(
|
|
|
2421
2424
|
newState = workInProgress;
|
|
2422
2425
|
break a;
|
|
2423
2426
|
case 3:
|
|
2424
|
-
workInProgress.flags = (workInProgress.flags & -
|
|
2427
|
+
workInProgress.flags = (workInProgress.flags & -32769) | 128;
|
|
2425
2428
|
case 0:
|
|
2426
2429
|
workInProgress = update.payload;
|
|
2427
2430
|
updateLane =
|
|
@@ -3121,60 +3124,49 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3121
3124
|
return iteratorFn;
|
|
3122
3125
|
}
|
|
3123
3126
|
return function(returnFiber, currentFirstChild, newChild, lanes) {
|
|
3124
|
-
|
|
3125
|
-
"object" === typeof newChild &&
|
|
3127
|
+
"object" === typeof newChild &&
|
|
3126
3128
|
null !== newChild &&
|
|
3127
3129
|
newChild.type === REACT_FRAGMENT_TYPE &&
|
|
3128
|
-
null === newChild.key
|
|
3129
|
-
|
|
3130
|
+
null === newChild.key &&
|
|
3131
|
+
(newChild = newChild.props.children);
|
|
3130
3132
|
if ("object" === typeof newChild && null !== newChild) {
|
|
3131
3133
|
switch (newChild.$$typeof) {
|
|
3132
3134
|
case REACT_ELEMENT_TYPE:
|
|
3133
3135
|
a: {
|
|
3134
|
-
var key = newChild.key;
|
|
3135
3136
|
for (
|
|
3136
|
-
|
|
3137
|
-
null !==
|
|
3137
|
+
var key = newChild.key, child = currentFirstChild;
|
|
3138
|
+
null !== child;
|
|
3138
3139
|
|
|
3139
3140
|
) {
|
|
3140
|
-
if (
|
|
3141
|
+
if (child.key === key) {
|
|
3141
3142
|
key = newChild.type;
|
|
3142
3143
|
if (key === REACT_FRAGMENT_TYPE) {
|
|
3143
|
-
if (7 ===
|
|
3144
|
-
deleteRemainingChildren(
|
|
3145
|
-
returnFiber,
|
|
3146
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3147
|
-
);
|
|
3144
|
+
if (7 === child.tag) {
|
|
3145
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3148
3146
|
currentFirstChild = useFiber(
|
|
3149
|
-
|
|
3147
|
+
child,
|
|
3150
3148
|
newChild.props.children
|
|
3151
3149
|
);
|
|
3152
3150
|
currentFirstChild.return = returnFiber;
|
|
3153
3151
|
returnFiber = currentFirstChild;
|
|
3154
3152
|
break a;
|
|
3155
3153
|
}
|
|
3156
|
-
} else if (
|
|
3157
|
-
deleteRemainingChildren(
|
|
3158
|
-
|
|
3159
|
-
isUnkeyedTopLevelFragment.sibling
|
|
3160
|
-
);
|
|
3161
|
-
currentFirstChild = useFiber(
|
|
3162
|
-
isUnkeyedTopLevelFragment,
|
|
3163
|
-
newChild.props
|
|
3164
|
-
);
|
|
3154
|
+
} else if (child.elementType === key) {
|
|
3155
|
+
deleteRemainingChildren(returnFiber, child.sibling);
|
|
3156
|
+
currentFirstChild = useFiber(child, newChild.props);
|
|
3165
3157
|
currentFirstChild.ref = coerceRef(
|
|
3166
3158
|
returnFiber,
|
|
3167
|
-
|
|
3159
|
+
child,
|
|
3168
3160
|
newChild
|
|
3169
3161
|
);
|
|
3170
3162
|
currentFirstChild.return = returnFiber;
|
|
3171
3163
|
returnFiber = currentFirstChild;
|
|
3172
3164
|
break a;
|
|
3173
3165
|
}
|
|
3174
|
-
deleteRemainingChildren(returnFiber,
|
|
3166
|
+
deleteRemainingChildren(returnFiber, child);
|
|
3175
3167
|
break;
|
|
3176
|
-
} else deleteChild(returnFiber,
|
|
3177
|
-
|
|
3168
|
+
} else deleteChild(returnFiber, child);
|
|
3169
|
+
child = child.sibling;
|
|
3178
3170
|
}
|
|
3179
3171
|
newChild.type === REACT_FRAGMENT_TYPE
|
|
3180
3172
|
? ((currentFirstChild = createFiberFromFragment(
|
|
@@ -3204,12 +3196,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3204
3196
|
return placeSingleChild(returnFiber);
|
|
3205
3197
|
case REACT_PORTAL_TYPE:
|
|
3206
3198
|
a: {
|
|
3207
|
-
for (
|
|
3208
|
-
|
|
3209
|
-
null !== currentFirstChild;
|
|
3210
|
-
|
|
3211
|
-
) {
|
|
3212
|
-
if (currentFirstChild.key === isUnkeyedTopLevelFragment)
|
|
3199
|
+
for (child = newChild.key; null !== currentFirstChild; ) {
|
|
3200
|
+
if (currentFirstChild.key === child)
|
|
3213
3201
|
if (
|
|
3214
3202
|
4 === currentFirstChild.tag &&
|
|
3215
3203
|
currentFirstChild.stateNode.containerInfo ===
|
|
@@ -3261,9 +3249,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3261
3249
|
);
|
|
3262
3250
|
throwOnInvalidObjectType(returnFiber, newChild);
|
|
3263
3251
|
}
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
(newChild = "" + newChild),
|
|
3252
|
+
return "string" === typeof newChild || "number" === typeof newChild
|
|
3253
|
+
? ((newChild = "" + newChild),
|
|
3267
3254
|
null !== currentFirstChild && 6 === currentFirstChild.tag
|
|
3268
3255
|
? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),
|
|
3269
3256
|
(currentFirstChild = useFiber(currentFirstChild, newChild)),
|
|
@@ -3277,20 +3264,8 @@ function ChildReconciler(shouldTrackSideEffects) {
|
|
|
3277
3264
|
)),
|
|
3278
3265
|
(currentFirstChild.return = returnFiber),
|
|
3279
3266
|
(returnFiber = currentFirstChild)),
|
|
3280
|
-
placeSingleChild(returnFiber)
|
|
3281
|
-
);
|
|
3282
|
-
if ("undefined" === typeof newChild && !isUnkeyedTopLevelFragment)
|
|
3283
|
-
switch (returnFiber.tag) {
|
|
3284
|
-
case 1:
|
|
3285
|
-
case 0:
|
|
3286
|
-
case 11:
|
|
3287
|
-
case 15:
|
|
3288
|
-
throw Error(
|
|
3289
|
-
(getComponentNameFromFiber(returnFiber) || "Component") +
|
|
3290
|
-
"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
|
|
3291
|
-
);
|
|
3292
|
-
}
|
|
3293
|
-
return deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3267
|
+
placeSingleChild(returnFiber))
|
|
3268
|
+
: deleteRemainingChildren(returnFiber, currentFirstChild);
|
|
3294
3269
|
};
|
|
3295
3270
|
}
|
|
3296
3271
|
var reconcileChildFibers = ChildReconciler(!0),
|
|
@@ -3345,7 +3320,7 @@ function findFirstSuspended(row) {
|
|
|
3345
3320
|
for (var node = row; null !== node; ) {
|
|
3346
3321
|
if (13 === node.tag) {
|
|
3347
3322
|
var state = node.memoizedState;
|
|
3348
|
-
if (null !== state && (null === state.dehydrated || shim() || shim()))
|
|
3323
|
+
if (null !== state && (null === state.dehydrated || shim$1() || shim$1()))
|
|
3349
3324
|
return node;
|
|
3350
3325
|
} else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
|
|
3351
3326
|
if (0 !== (node.flags & 128)) return node;
|
|
@@ -3581,7 +3556,7 @@ function rerenderReducer(reducer) {
|
|
|
3581
3556
|
}
|
|
3582
3557
|
return [newState, dispatch];
|
|
3583
3558
|
}
|
|
3584
|
-
function
|
|
3559
|
+
function readFromUnsubscribedMutableSource(root, source, getSnapshot) {
|
|
3585
3560
|
var getVersion = source._getVersion;
|
|
3586
3561
|
getVersion = getVersion(source._source);
|
|
3587
3562
|
var JSCompiler_inline_result = source._workInProgressVersionPrimary;
|
|
@@ -3608,7 +3583,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3608
3583
|
version = getVersion(source._source),
|
|
3609
3584
|
dispatcher = ReactCurrentDispatcher$1.current,
|
|
3610
3585
|
_dispatcher$useState = dispatcher.useState(function() {
|
|
3611
|
-
return
|
|
3586
|
+
return readFromUnsubscribedMutableSource(root, source, getSnapshot);
|
|
3612
3587
|
}),
|
|
3613
3588
|
setSnapshot = _dispatcher$useState[1],
|
|
3614
3589
|
snapshot = _dispatcher$useState[0];
|
|
@@ -3671,7 +3646,7 @@ function useMutableSource(hook, source, getSnapshot, subscribe) {
|
|
|
3671
3646
|
)),
|
|
3672
3647
|
(_dispatcher$useState.queue = hook),
|
|
3673
3648
|
(_dispatcher$useState.baseQueue = null),
|
|
3674
|
-
(snapshot =
|
|
3649
|
+
(snapshot = readFromUnsubscribedMutableSource(root, source, getSnapshot)),
|
|
3675
3650
|
(_dispatcher$useState.memoizedState = _dispatcher$useState.baseState = snapshot));
|
|
3676
3651
|
return snapshot;
|
|
3677
3652
|
}
|
|
@@ -3679,11 +3654,68 @@ function updateMutableSource(source, getSnapshot, subscribe) {
|
|
|
3679
3654
|
var hook = updateWorkInProgressHook();
|
|
3680
3655
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3681
3656
|
}
|
|
3657
|
+
function mountSyncExternalStore(subscribe, getSnapshot) {
|
|
3658
|
+
var fiber = currentlyRenderingFiber$1,
|
|
3659
|
+
hook = mountWorkInProgressHook(),
|
|
3660
|
+
nextSnapshot = getSnapshot();
|
|
3661
|
+
hook.memoizedState = nextSnapshot;
|
|
3662
|
+
var inst = { value: nextSnapshot, getSnapshot: getSnapshot };
|
|
3663
|
+
hook.queue = inst;
|
|
3664
|
+
mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [subscribe]);
|
|
3665
|
+
fiber.flags |= 1024;
|
|
3666
|
+
pushEffect(
|
|
3667
|
+
9,
|
|
3668
|
+
updateStoreInstance.bind(null, fiber, inst, nextSnapshot, getSnapshot),
|
|
3669
|
+
void 0,
|
|
3670
|
+
null
|
|
3671
|
+
);
|
|
3672
|
+
subscribe = workInProgressRoot;
|
|
3673
|
+
if (null === subscribe)
|
|
3674
|
+
throw Error(
|
|
3675
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
3676
|
+
);
|
|
3677
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
3678
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
3679
|
+
return nextSnapshot;
|
|
3680
|
+
}
|
|
3681
|
+
function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
|
|
3682
|
+
fiber.flags |= 8192;
|
|
3683
|
+
fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };
|
|
3684
|
+
getSnapshot = currentlyRenderingFiber$1.updateQueue;
|
|
3685
|
+
null === getSnapshot
|
|
3686
|
+
? ((getSnapshot = { lastEffect: null, stores: null }),
|
|
3687
|
+
(currentlyRenderingFiber$1.updateQueue = getSnapshot),
|
|
3688
|
+
(getSnapshot.stores = [fiber]))
|
|
3689
|
+
: ((renderedSnapshot = getSnapshot.stores),
|
|
3690
|
+
null === renderedSnapshot
|
|
3691
|
+
? (getSnapshot.stores = [fiber])
|
|
3692
|
+
: renderedSnapshot.push(fiber));
|
|
3693
|
+
}
|
|
3694
|
+
function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
|
|
3695
|
+
inst.value = nextSnapshot;
|
|
3696
|
+
inst.getSnapshot = getSnapshot;
|
|
3697
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3698
|
+
}
|
|
3699
|
+
function subscribeToStore(fiber, inst, subscribe) {
|
|
3700
|
+
return subscribe(function() {
|
|
3701
|
+
checkIfSnapshotChanged(inst) && scheduleUpdateOnFiber(fiber, 1, -1);
|
|
3702
|
+
});
|
|
3703
|
+
}
|
|
3704
|
+
function checkIfSnapshotChanged(inst) {
|
|
3705
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3706
|
+
inst = inst.value;
|
|
3707
|
+
try {
|
|
3708
|
+
var nextValue = latestGetSnapshot();
|
|
3709
|
+
return !objectIs(inst, nextValue);
|
|
3710
|
+
} catch (error) {
|
|
3711
|
+
return !0;
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3682
3714
|
function mountState(initialState) {
|
|
3683
3715
|
var hook = mountWorkInProgressHook();
|
|
3684
3716
|
"function" === typeof initialState && (initialState = initialState());
|
|
3685
3717
|
hook.memoizedState = hook.baseState = initialState;
|
|
3686
|
-
initialState =
|
|
3718
|
+
initialState = {
|
|
3687
3719
|
pending: null,
|
|
3688
3720
|
interleaved: null,
|
|
3689
3721
|
lanes: 0,
|
|
@@ -3691,6 +3723,7 @@ function mountState(initialState) {
|
|
|
3691
3723
|
lastRenderedReducer: basicStateReducer,
|
|
3692
3724
|
lastRenderedState: initialState
|
|
3693
3725
|
};
|
|
3726
|
+
hook.queue = initialState;
|
|
3694
3727
|
initialState = initialState.dispatch = dispatchAction.bind(
|
|
3695
3728
|
null,
|
|
3696
3729
|
currentlyRenderingFiber$1,
|
|
@@ -3702,7 +3735,7 @@ function pushEffect(tag, create, destroy, deps) {
|
|
|
3702
3735
|
tag = { tag: tag, create: create, destroy: destroy, deps: deps, next: null };
|
|
3703
3736
|
create = currentlyRenderingFiber$1.updateQueue;
|
|
3704
3737
|
null === create
|
|
3705
|
-
? ((create = { lastEffect: null }),
|
|
3738
|
+
? ((create = { lastEffect: null, stores: null }),
|
|
3706
3739
|
(currentlyRenderingFiber$1.updateQueue = create),
|
|
3707
3740
|
(create.lastEffect = tag.next = tag))
|
|
3708
3741
|
: ((destroy = create.lastEffect),
|
|
@@ -3743,14 +3776,17 @@ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
|
|
|
3743
3776
|
hook.memoizedState = pushEffect(1 | hookFlags, create, destroy, deps);
|
|
3744
3777
|
}
|
|
3745
3778
|
function mountEffect(create, deps) {
|
|
3746
|
-
return mountEffectImpl(
|
|
3779
|
+
return mountEffectImpl(2098176, 8, create, deps);
|
|
3747
3780
|
}
|
|
3748
3781
|
function updateEffect(create, deps) {
|
|
3749
|
-
return updateEffectImpl(1024,
|
|
3782
|
+
return updateEffectImpl(1024, 8, create, deps);
|
|
3750
3783
|
}
|
|
3751
|
-
function
|
|
3784
|
+
function updateInsertionEffect(create, deps) {
|
|
3752
3785
|
return updateEffectImpl(4, 2, create, deps);
|
|
3753
3786
|
}
|
|
3787
|
+
function updateLayoutEffect(create, deps) {
|
|
3788
|
+
return updateEffectImpl(4, 4, create, deps);
|
|
3789
|
+
}
|
|
3754
3790
|
function imperativeHandleEffect(create, ref) {
|
|
3755
3791
|
if ("function" === typeof ref)
|
|
3756
3792
|
return (
|
|
@@ -3773,7 +3809,7 @@ function updateImperativeHandle(ref, create, deps) {
|
|
|
3773
3809
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3774
3810
|
return updateEffectImpl(
|
|
3775
3811
|
4,
|
|
3776
|
-
|
|
3812
|
+
4,
|
|
3777
3813
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3778
3814
|
deps
|
|
3779
3815
|
);
|
|
@@ -3845,7 +3881,7 @@ function dispatchAction(fiber, queue, action) {
|
|
|
3845
3881
|
if (
|
|
3846
3882
|
null !== workInProgressRoot &&
|
|
3847
3883
|
0 !== (fiber.mode & 1) &&
|
|
3848
|
-
0 === (executionContext &
|
|
3884
|
+
0 === (executionContext & 2)
|
|
3849
3885
|
) {
|
|
3850
3886
|
var interleaved = queue.interleaved;
|
|
3851
3887
|
null === interleaved
|
|
@@ -3891,6 +3927,7 @@ var ContextOnlyDispatcher = {
|
|
|
3891
3927
|
useContext: throwInvalidHookError,
|
|
3892
3928
|
useEffect: throwInvalidHookError,
|
|
3893
3929
|
useImperativeHandle: throwInvalidHookError,
|
|
3930
|
+
useInsertionEffect: throwInvalidHookError,
|
|
3894
3931
|
useLayoutEffect: throwInvalidHookError,
|
|
3895
3932
|
useMemo: throwInvalidHookError,
|
|
3896
3933
|
useReducer: throwInvalidHookError,
|
|
@@ -3900,6 +3937,7 @@ var ContextOnlyDispatcher = {
|
|
|
3900
3937
|
useDeferredValue: throwInvalidHookError,
|
|
3901
3938
|
useTransition: throwInvalidHookError,
|
|
3902
3939
|
useMutableSource: throwInvalidHookError,
|
|
3940
|
+
useSyncExternalStore: throwInvalidHookError,
|
|
3903
3941
|
useOpaqueIdentifier: throwInvalidHookError,
|
|
3904
3942
|
unstable_isNewReconciler: !1
|
|
3905
3943
|
},
|
|
@@ -3918,12 +3956,15 @@ var ContextOnlyDispatcher = {
|
|
|
3918
3956
|
deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
|
|
3919
3957
|
return mountEffectImpl(
|
|
3920
3958
|
4,
|
|
3921
|
-
|
|
3959
|
+
4,
|
|
3922
3960
|
imperativeHandleEffect.bind(null, create, ref),
|
|
3923
3961
|
deps
|
|
3924
3962
|
);
|
|
3925
3963
|
},
|
|
3926
3964
|
useLayoutEffect: function(create, deps) {
|
|
3965
|
+
return mountEffectImpl(4, 4, create, deps);
|
|
3966
|
+
},
|
|
3967
|
+
useInsertionEffect: function(create, deps) {
|
|
3927
3968
|
return mountEffectImpl(4, 2, create, deps);
|
|
3928
3969
|
},
|
|
3929
3970
|
useMemo: function(nextCreate, deps) {
|
|
@@ -3937,7 +3978,7 @@ var ContextOnlyDispatcher = {
|
|
|
3937
3978
|
var hook = mountWorkInProgressHook();
|
|
3938
3979
|
initialArg = void 0 !== init ? init(initialArg) : initialArg;
|
|
3939
3980
|
hook.memoizedState = hook.baseState = initialArg;
|
|
3940
|
-
reducer =
|
|
3981
|
+
reducer = {
|
|
3941
3982
|
pending: null,
|
|
3942
3983
|
interleaved: null,
|
|
3943
3984
|
lanes: 0,
|
|
@@ -3945,6 +3986,7 @@ var ContextOnlyDispatcher = {
|
|
|
3945
3986
|
lastRenderedReducer: reducer,
|
|
3946
3987
|
lastRenderedState: initialArg
|
|
3947
3988
|
};
|
|
3989
|
+
hook.queue = reducer;
|
|
3948
3990
|
reducer = reducer.dispatch = dispatchAction.bind(
|
|
3949
3991
|
null,
|
|
3950
3992
|
currentlyRenderingFiber$1,
|
|
@@ -3993,6 +4035,7 @@ var ContextOnlyDispatcher = {
|
|
|
3993
4035
|
};
|
|
3994
4036
|
return useMutableSource(hook, source, getSnapshot, subscribe);
|
|
3995
4037
|
},
|
|
4038
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
3996
4039
|
useOpaqueIdentifier: function() {
|
|
3997
4040
|
throw Error("Not yet implemented");
|
|
3998
4041
|
},
|
|
@@ -4004,6 +4047,7 @@ var ContextOnlyDispatcher = {
|
|
|
4004
4047
|
useContext: readContext,
|
|
4005
4048
|
useEffect: updateEffect,
|
|
4006
4049
|
useImperativeHandle: updateImperativeHandle,
|
|
4050
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4007
4051
|
useLayoutEffect: updateLayoutEffect,
|
|
4008
4052
|
useMemo: updateMemo,
|
|
4009
4053
|
useReducer: updateReducer,
|
|
@@ -4036,6 +4080,46 @@ var ContextOnlyDispatcher = {
|
|
|
4036
4080
|
return [isPending, start];
|
|
4037
4081
|
},
|
|
4038
4082
|
useMutableSource: updateMutableSource,
|
|
4083
|
+
useSyncExternalStore: function(subscribe, getSnapshot) {
|
|
4084
|
+
var fiber = currentlyRenderingFiber$1,
|
|
4085
|
+
hook = updateWorkInProgressHook(),
|
|
4086
|
+
nextSnapshot = getSnapshot(),
|
|
4087
|
+
snapshotChanged = !objectIs(hook.memoizedState, nextSnapshot);
|
|
4088
|
+
snapshotChanged &&
|
|
4089
|
+
((hook.memoizedState = nextSnapshot), (didReceiveUpdate = !0));
|
|
4090
|
+
hook = hook.queue;
|
|
4091
|
+
updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [
|
|
4092
|
+
subscribe
|
|
4093
|
+
]);
|
|
4094
|
+
if (
|
|
4095
|
+
hook.getSnapshot !== getSnapshot ||
|
|
4096
|
+
snapshotChanged ||
|
|
4097
|
+
(null !== workInProgressHook &&
|
|
4098
|
+
workInProgressHook.memoizedState.tag & 1)
|
|
4099
|
+
) {
|
|
4100
|
+
fiber.flags |= 1024;
|
|
4101
|
+
pushEffect(
|
|
4102
|
+
9,
|
|
4103
|
+
updateStoreInstance.bind(
|
|
4104
|
+
null,
|
|
4105
|
+
fiber,
|
|
4106
|
+
hook,
|
|
4107
|
+
nextSnapshot,
|
|
4108
|
+
getSnapshot
|
|
4109
|
+
),
|
|
4110
|
+
void 0,
|
|
4111
|
+
null
|
|
4112
|
+
);
|
|
4113
|
+
subscribe = workInProgressRoot;
|
|
4114
|
+
if (null === subscribe)
|
|
4115
|
+
throw Error(
|
|
4116
|
+
"Expected a work-in-progress root. This is a bug in React. Please file an issue."
|
|
4117
|
+
);
|
|
4118
|
+
includesBlockingLane(subscribe, renderLanes) ||
|
|
4119
|
+
pushStoreConsistencyCheck(fiber, getSnapshot, nextSnapshot);
|
|
4120
|
+
}
|
|
4121
|
+
return nextSnapshot;
|
|
4122
|
+
},
|
|
4039
4123
|
useOpaqueIdentifier: function() {
|
|
4040
4124
|
return updateReducer(basicStateReducer)[0];
|
|
4041
4125
|
},
|
|
@@ -4047,6 +4131,7 @@ var ContextOnlyDispatcher = {
|
|
|
4047
4131
|
useContext: readContext,
|
|
4048
4132
|
useEffect: updateEffect,
|
|
4049
4133
|
useImperativeHandle: updateImperativeHandle,
|
|
4134
|
+
useInsertionEffect: updateInsertionEffect,
|
|
4050
4135
|
useLayoutEffect: updateLayoutEffect,
|
|
4051
4136
|
useMemo: updateMemo,
|
|
4052
4137
|
useReducer: rerenderReducer,
|
|
@@ -4079,6 +4164,7 @@ var ContextOnlyDispatcher = {
|
|
|
4079
4164
|
return [isPending, start];
|
|
4080
4165
|
},
|
|
4081
4166
|
useMutableSource: updateMutableSource,
|
|
4167
|
+
useSyncExternalStore: mountSyncExternalStore,
|
|
4082
4168
|
useOpaqueIdentifier: function() {
|
|
4083
4169
|
return rerenderReducer(basicStateReducer)[0];
|
|
4084
4170
|
},
|
|
@@ -4190,19 +4276,21 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4190
4276
|
if ("function" === typeof getDerivedStateFromError) {
|
|
4191
4277
|
var error = errorInfo.value;
|
|
4192
4278
|
lane.payload = function() {
|
|
4193
|
-
logCapturedError(fiber, errorInfo);
|
|
4194
4279
|
return getDerivedStateFromError(error);
|
|
4195
4280
|
};
|
|
4281
|
+
lane.callback = function() {
|
|
4282
|
+
logCapturedError(fiber, errorInfo);
|
|
4283
|
+
};
|
|
4196
4284
|
}
|
|
4197
4285
|
var inst = fiber.stateNode;
|
|
4198
4286
|
null !== inst &&
|
|
4199
4287
|
"function" === typeof inst.componentDidCatch &&
|
|
4200
4288
|
(lane.callback = function() {
|
|
4289
|
+
logCapturedError(fiber, errorInfo);
|
|
4201
4290
|
"function" !== typeof getDerivedStateFromError &&
|
|
4202
4291
|
(null === legacyErrorBoundariesThatAlreadyFailed
|
|
4203
4292
|
? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))
|
|
4204
|
-
: legacyErrorBoundariesThatAlreadyFailed.add(this)
|
|
4205
|
-
logCapturedError(fiber, errorInfo));
|
|
4293
|
+
: legacyErrorBoundariesThatAlreadyFailed.add(this));
|
|
4206
4294
|
var stack = errorInfo.stack;
|
|
4207
4295
|
this.componentDidCatch(errorInfo.value, {
|
|
4208
4296
|
componentStack: null !== stack ? stack : ""
|
|
@@ -4210,125 +4298,567 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
|
|
|
4210
4298
|
});
|
|
4211
4299
|
return lane;
|
|
4212
4300
|
}
|
|
4213
|
-
var
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
null
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
) {
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4301
|
+
var appendAllChildren, updateHostContainer, updateHostComponent, updateHostText;
|
|
4302
|
+
appendAllChildren = function(parent, workInProgress) {
|
|
4303
|
+
for (var node = workInProgress.child; null !== node; ) {
|
|
4304
|
+
if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);
|
|
4305
|
+
else if (4 !== node.tag && null !== node.child) {
|
|
4306
|
+
node.child.return = node;
|
|
4307
|
+
node = node.child;
|
|
4308
|
+
continue;
|
|
4309
|
+
}
|
|
4310
|
+
if (node === workInProgress) break;
|
|
4311
|
+
for (; null === node.sibling; ) {
|
|
4312
|
+
if (null === node.return || node.return === workInProgress) return;
|
|
4313
|
+
node = node.return;
|
|
4314
|
+
}
|
|
4315
|
+
node.sibling.return = node.return;
|
|
4316
|
+
node = node.sibling;
|
|
4317
|
+
}
|
|
4318
|
+
};
|
|
4319
|
+
updateHostContainer = function() {};
|
|
4320
|
+
updateHostComponent = function(current, workInProgress, type, newProps) {
|
|
4321
|
+
current.memoizedProps !== newProps &&
|
|
4322
|
+
(requiredContext(contextStackCursor$1.current),
|
|
4323
|
+
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
4324
|
+
(workInProgress.flags |= 4);
|
|
4325
|
+
};
|
|
4326
|
+
updateHostText = function(current, workInProgress, oldText, newText) {
|
|
4327
|
+
oldText !== newText && (workInProgress.flags |= 4);
|
|
4328
|
+
};
|
|
4329
|
+
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
4330
|
+
switch (renderState.tailMode) {
|
|
4331
|
+
case "hidden":
|
|
4332
|
+
hasRenderedATailFallback = renderState.tail;
|
|
4333
|
+
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
4334
|
+
null !== hasRenderedATailFallback.alternate &&
|
|
4335
|
+
(lastTailNode = hasRenderedATailFallback),
|
|
4336
|
+
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
4337
|
+
null === lastTailNode
|
|
4338
|
+
? (renderState.tail = null)
|
|
4339
|
+
: (lastTailNode.sibling = null);
|
|
4340
|
+
break;
|
|
4341
|
+
case "collapsed":
|
|
4342
|
+
lastTailNode = renderState.tail;
|
|
4343
|
+
for (var lastTailNode$40 = null; null !== lastTailNode; )
|
|
4344
|
+
null !== lastTailNode.alternate && (lastTailNode$40 = lastTailNode),
|
|
4345
|
+
(lastTailNode = lastTailNode.sibling);
|
|
4346
|
+
null === lastTailNode$40
|
|
4347
|
+
? hasRenderedATailFallback || null === renderState.tail
|
|
4348
|
+
? (renderState.tail = null)
|
|
4349
|
+
: (renderState.tail.sibling = null)
|
|
4350
|
+
: (lastTailNode$40.sibling = null);
|
|
4351
|
+
}
|
|
4254
4352
|
}
|
|
4255
|
-
function
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
) {
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4353
|
+
function bubbleProperties(completedWork) {
|
|
4354
|
+
var didBailout =
|
|
4355
|
+
null !== completedWork.alternate &&
|
|
4356
|
+
completedWork.alternate.child === completedWork.child,
|
|
4357
|
+
newChildLanes = 0,
|
|
4358
|
+
subtreeFlags = 0;
|
|
4359
|
+
if (didBailout)
|
|
4360
|
+
if (0 !== (completedWork.mode & 2)) {
|
|
4361
|
+
for (
|
|
4362
|
+
var treeBaseDuration$42 = completedWork.selfBaseDuration,
|
|
4363
|
+
child$43 = completedWork.child;
|
|
4364
|
+
null !== child$43;
|
|
4365
|
+
|
|
4366
|
+
)
|
|
4367
|
+
(newChildLanes |= child$43.lanes | child$43.childLanes),
|
|
4368
|
+
(subtreeFlags |= child$43.subtreeFlags & 3670016),
|
|
4369
|
+
(subtreeFlags |= child$43.flags & 3670016),
|
|
4370
|
+
(treeBaseDuration$42 += child$43.treeBaseDuration),
|
|
4371
|
+
(child$43 = child$43.sibling);
|
|
4372
|
+
completedWork.treeBaseDuration = treeBaseDuration$42;
|
|
4373
|
+
} else
|
|
4374
|
+
for (
|
|
4375
|
+
treeBaseDuration$42 = completedWork.child;
|
|
4376
|
+
null !== treeBaseDuration$42;
|
|
4377
|
+
|
|
4378
|
+
)
|
|
4379
|
+
(newChildLanes |=
|
|
4380
|
+
treeBaseDuration$42.lanes | treeBaseDuration$42.childLanes),
|
|
4381
|
+
(subtreeFlags |= treeBaseDuration$42.subtreeFlags & 3670016),
|
|
4382
|
+
(subtreeFlags |= treeBaseDuration$42.flags & 3670016),
|
|
4383
|
+
(treeBaseDuration$42.return = completedWork),
|
|
4384
|
+
(treeBaseDuration$42 = treeBaseDuration$42.sibling);
|
|
4385
|
+
else if (0 !== (completedWork.mode & 2)) {
|
|
4386
|
+
treeBaseDuration$42 = completedWork.actualDuration;
|
|
4387
|
+
child$43 = completedWork.selfBaseDuration;
|
|
4388
|
+
for (var child = completedWork.child; null !== child; )
|
|
4389
|
+
(newChildLanes |= child.lanes | child.childLanes),
|
|
4390
|
+
(subtreeFlags |= child.subtreeFlags),
|
|
4391
|
+
(subtreeFlags |= child.flags),
|
|
4392
|
+
(treeBaseDuration$42 += child.actualDuration),
|
|
4393
|
+
(child$43 += child.treeBaseDuration),
|
|
4394
|
+
(child = child.sibling);
|
|
4395
|
+
completedWork.actualDuration = treeBaseDuration$42;
|
|
4396
|
+
completedWork.treeBaseDuration = child$43;
|
|
4397
|
+
} else
|
|
4398
|
+
for (
|
|
4399
|
+
treeBaseDuration$42 = completedWork.child;
|
|
4400
|
+
null !== treeBaseDuration$42;
|
|
4401
|
+
|
|
4271
4402
|
)
|
|
4403
|
+
(newChildLanes |=
|
|
4404
|
+
treeBaseDuration$42.lanes | treeBaseDuration$42.childLanes),
|
|
4405
|
+
(subtreeFlags |= treeBaseDuration$42.subtreeFlags),
|
|
4406
|
+
(subtreeFlags |= treeBaseDuration$42.flags),
|
|
4407
|
+
(treeBaseDuration$42.return = completedWork),
|
|
4408
|
+
(treeBaseDuration$42 = treeBaseDuration$42.sibling);
|
|
4409
|
+
completedWork.subtreeFlags |= subtreeFlags;
|
|
4410
|
+
completedWork.childLanes = newChildLanes;
|
|
4411
|
+
return didBailout;
|
|
4412
|
+
}
|
|
4413
|
+
function completeWork(current, workInProgress, renderLanes) {
|
|
4414
|
+
var newProps = workInProgress.pendingProps;
|
|
4415
|
+
switch (workInProgress.tag) {
|
|
4416
|
+
case 2:
|
|
4417
|
+
case 16:
|
|
4418
|
+
case 15:
|
|
4419
|
+
case 0:
|
|
4420
|
+
case 11:
|
|
4421
|
+
case 7:
|
|
4422
|
+
case 8:
|
|
4423
|
+
case 12:
|
|
4424
|
+
case 9:
|
|
4425
|
+
case 14:
|
|
4426
|
+
return bubbleProperties(workInProgress), null;
|
|
4427
|
+
case 1:
|
|
4272
4428
|
return (
|
|
4273
|
-
(workInProgress.
|
|
4274
|
-
(workInProgress
|
|
4275
|
-
|
|
4429
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4430
|
+
bubbleProperties(workInProgress),
|
|
4431
|
+
null
|
|
4432
|
+
);
|
|
4433
|
+
case 3:
|
|
4434
|
+
return (
|
|
4435
|
+
(newProps = workInProgress.stateNode),
|
|
4436
|
+
popHostContainer(),
|
|
4437
|
+
pop(didPerformWorkStackCursor),
|
|
4438
|
+
pop(contextStackCursor),
|
|
4439
|
+
resetWorkInProgressVersions(),
|
|
4440
|
+
newProps.pendingContext &&
|
|
4441
|
+
((newProps.context = newProps.pendingContext),
|
|
4442
|
+
(newProps.pendingContext = null)),
|
|
4443
|
+
(null !== current && null !== current.child) ||
|
|
4444
|
+
newProps.hydrate ||
|
|
4445
|
+
(workInProgress.flags |= 512),
|
|
4446
|
+
updateHostContainer(current, workInProgress),
|
|
4447
|
+
bubbleProperties(workInProgress),
|
|
4448
|
+
null
|
|
4449
|
+
);
|
|
4450
|
+
case 5:
|
|
4451
|
+
popHostContext(workInProgress);
|
|
4452
|
+
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
4453
|
+
var type = workInProgress.type;
|
|
4454
|
+
if (null !== current && null != workInProgress.stateNode)
|
|
4455
|
+
updateHostComponent(
|
|
4276
4456
|
current,
|
|
4277
4457
|
workInProgress,
|
|
4278
4458
|
type,
|
|
4279
|
-
|
|
4280
|
-
updateLanes,
|
|
4459
|
+
newProps,
|
|
4281
4460
|
renderLanes
|
|
4282
|
-
)
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4461
|
+
),
|
|
4462
|
+
current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4463
|
+
else {
|
|
4464
|
+
if (!newProps) {
|
|
4465
|
+
if (null === workInProgress.stateNode)
|
|
4466
|
+
throw Error(
|
|
4467
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4468
|
+
);
|
|
4469
|
+
bubbleProperties(workInProgress);
|
|
4470
|
+
return null;
|
|
4471
|
+
}
|
|
4472
|
+
requiredContext(contextStackCursor$1.current);
|
|
4473
|
+
current = allocateTag();
|
|
4474
|
+
type = getViewConfigForType(type);
|
|
4475
|
+
var updatePayload = diffProperties(
|
|
4476
|
+
null,
|
|
4477
|
+
emptyObject,
|
|
4478
|
+
newProps,
|
|
4479
|
+
type.validAttributes
|
|
4480
|
+
);
|
|
4481
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
4482
|
+
current,
|
|
4483
|
+
type.uiViewClassName,
|
|
4484
|
+
renderLanes,
|
|
4485
|
+
updatePayload
|
|
4486
|
+
);
|
|
4487
|
+
renderLanes = new ReactNativeFiberHostComponent(
|
|
4488
|
+
current,
|
|
4489
|
+
type,
|
|
4490
|
+
workInProgress
|
|
4491
|
+
);
|
|
4492
|
+
instanceCache.set(current, workInProgress);
|
|
4493
|
+
instanceProps.set(current, newProps);
|
|
4494
|
+
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
4495
|
+
workInProgress.stateNode = renderLanes;
|
|
4496
|
+
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
4497
|
+
null !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
4498
|
+
}
|
|
4499
|
+
bubbleProperties(workInProgress);
|
|
4500
|
+
return null;
|
|
4501
|
+
case 6:
|
|
4502
|
+
if (current && null != workInProgress.stateNode)
|
|
4503
|
+
updateHostText(
|
|
4504
|
+
current,
|
|
4505
|
+
workInProgress,
|
|
4506
|
+
current.memoizedProps,
|
|
4507
|
+
newProps
|
|
4508
|
+
);
|
|
4509
|
+
else {
|
|
4510
|
+
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
4511
|
+
throw Error(
|
|
4512
|
+
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
4513
|
+
);
|
|
4514
|
+
current = requiredContext(rootInstanceStackCursor.current);
|
|
4515
|
+
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
4516
|
+
throw Error(
|
|
4517
|
+
"Text strings must be rendered within a <Text> component."
|
|
4518
|
+
);
|
|
4519
|
+
renderLanes = allocateTag();
|
|
4520
|
+
ReactNativePrivateInterface.UIManager.createView(
|
|
4521
|
+
renderLanes,
|
|
4522
|
+
"RCTRawText",
|
|
4523
|
+
current,
|
|
4524
|
+
{ text: newProps }
|
|
4525
|
+
);
|
|
4526
|
+
instanceCache.set(renderLanes, workInProgress);
|
|
4527
|
+
workInProgress.stateNode = renderLanes;
|
|
4528
|
+
}
|
|
4529
|
+
bubbleProperties(workInProgress);
|
|
4530
|
+
return null;
|
|
4531
|
+
case 13:
|
|
4532
|
+
pop(suspenseStackCursor);
|
|
4533
|
+
newProps = workInProgress.memoizedState;
|
|
4534
|
+
if (0 !== (workInProgress.flags & 128))
|
|
4535
|
+
return (
|
|
4536
|
+
(workInProgress.lanes = renderLanes),
|
|
4537
|
+
0 !== (workInProgress.mode & 2) &&
|
|
4538
|
+
transferActualDuration(workInProgress),
|
|
4539
|
+
workInProgress
|
|
4540
|
+
);
|
|
4541
|
+
newProps = null !== newProps;
|
|
4542
|
+
renderLanes = !1;
|
|
4543
|
+
null !== current && (renderLanes = null !== current.memoizedState);
|
|
4544
|
+
if (
|
|
4545
|
+
newProps &&
|
|
4546
|
+
!renderLanes &&
|
|
4547
|
+
((workInProgress.child.flags |= 4096), 0 !== (workInProgress.mode & 1))
|
|
4548
|
+
)
|
|
4549
|
+
if (
|
|
4550
|
+
(null === current &&
|
|
4551
|
+
!0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
|
|
4552
|
+
0 !== (suspenseStackCursor.current & 1)
|
|
4553
|
+
)
|
|
4554
|
+
0 === workInProgressRootExitStatus &&
|
|
4555
|
+
(workInProgressRootExitStatus = 3);
|
|
4556
|
+
else {
|
|
4557
|
+
if (
|
|
4558
|
+
0 === workInProgressRootExitStatus ||
|
|
4559
|
+
3 === workInProgressRootExitStatus
|
|
4560
|
+
)
|
|
4561
|
+
workInProgressRootExitStatus = 4;
|
|
4562
|
+
null === workInProgressRoot ||
|
|
4563
|
+
(0 === (workInProgressRootSkippedLanes & 268435455) &&
|
|
4564
|
+
0 === (workInProgressRootUpdatedLanes & 268435455)) ||
|
|
4565
|
+
markRootSuspended$1(
|
|
4566
|
+
workInProgressRoot,
|
|
4567
|
+
workInProgressRootRenderLanes
|
|
4568
|
+
);
|
|
4569
|
+
}
|
|
4570
|
+
null !== workInProgress.updateQueue && (workInProgress.flags |= 4);
|
|
4571
|
+
bubbleProperties(workInProgress);
|
|
4572
|
+
0 !== (workInProgress.mode & 2) &&
|
|
4573
|
+
newProps &&
|
|
4574
|
+
((current = workInProgress.child),
|
|
4575
|
+
null !== current &&
|
|
4576
|
+
(workInProgress.treeBaseDuration -= current.treeBaseDuration));
|
|
4577
|
+
return null;
|
|
4578
|
+
case 4:
|
|
4579
|
+
return (
|
|
4580
|
+
popHostContainer(),
|
|
4581
|
+
updateHostContainer(current, workInProgress),
|
|
4582
|
+
bubbleProperties(workInProgress),
|
|
4583
|
+
null
|
|
4584
|
+
);
|
|
4585
|
+
case 10:
|
|
4586
|
+
return (
|
|
4587
|
+
popProvider(workInProgress.type._context),
|
|
4588
|
+
bubbleProperties(workInProgress),
|
|
4589
|
+
null
|
|
4590
|
+
);
|
|
4591
|
+
case 17:
|
|
4592
|
+
return (
|
|
4593
|
+
isContextProvider(workInProgress.type) && popContext(),
|
|
4594
|
+
bubbleProperties(workInProgress),
|
|
4595
|
+
null
|
|
4596
|
+
);
|
|
4597
|
+
case 19:
|
|
4598
|
+
pop(suspenseStackCursor);
|
|
4599
|
+
type = workInProgress.memoizedState;
|
|
4600
|
+
if (null === type) return bubbleProperties(workInProgress), null;
|
|
4601
|
+
newProps = 0 !== (workInProgress.flags & 128);
|
|
4602
|
+
updatePayload = type.rendering;
|
|
4603
|
+
if (null === updatePayload)
|
|
4604
|
+
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
4605
|
+
else {
|
|
4606
|
+
if (
|
|
4607
|
+
0 !== workInProgressRootExitStatus ||
|
|
4608
|
+
(null !== current && 0 !== (current.flags & 128))
|
|
4609
|
+
)
|
|
4610
|
+
for (current = workInProgress.child; null !== current; ) {
|
|
4611
|
+
updatePayload = findFirstSuspended(current);
|
|
4612
|
+
if (null !== updatePayload) {
|
|
4613
|
+
workInProgress.flags |= 128;
|
|
4614
|
+
cutOffTailIfNeeded(type, !1);
|
|
4615
|
+
current = updatePayload.updateQueue;
|
|
4616
|
+
null !== current &&
|
|
4617
|
+
((workInProgress.updateQueue = current),
|
|
4618
|
+
(workInProgress.flags |= 4));
|
|
4619
|
+
workInProgress.subtreeFlags = 0;
|
|
4620
|
+
current = renderLanes;
|
|
4621
|
+
for (newProps = workInProgress.child; null !== newProps; )
|
|
4622
|
+
(renderLanes = newProps),
|
|
4623
|
+
(updatePayload = current),
|
|
4624
|
+
(renderLanes.flags &= 3670018),
|
|
4625
|
+
(type = renderLanes.alternate),
|
|
4626
|
+
null === type
|
|
4627
|
+
? ((renderLanes.childLanes = 0),
|
|
4628
|
+
(renderLanes.lanes = updatePayload),
|
|
4629
|
+
(renderLanes.child = null),
|
|
4630
|
+
(renderLanes.subtreeFlags = 0),
|
|
4631
|
+
(renderLanes.memoizedProps = null),
|
|
4632
|
+
(renderLanes.memoizedState = null),
|
|
4633
|
+
(renderLanes.updateQueue = null),
|
|
4634
|
+
(renderLanes.dependencies = null),
|
|
4635
|
+
(renderLanes.stateNode = null),
|
|
4636
|
+
(renderLanes.selfBaseDuration = 0),
|
|
4637
|
+
(renderLanes.treeBaseDuration = 0))
|
|
4638
|
+
: ((renderLanes.childLanes = type.childLanes),
|
|
4639
|
+
(renderLanes.lanes = type.lanes),
|
|
4640
|
+
(renderLanes.child = type.child),
|
|
4641
|
+
(renderLanes.subtreeFlags = 0),
|
|
4642
|
+
(renderLanes.deletions = null),
|
|
4643
|
+
(renderLanes.memoizedProps = type.memoizedProps),
|
|
4644
|
+
(renderLanes.memoizedState = type.memoizedState),
|
|
4645
|
+
(renderLanes.updateQueue = type.updateQueue),
|
|
4646
|
+
(renderLanes.type = type.type),
|
|
4647
|
+
(updatePayload = type.dependencies),
|
|
4648
|
+
(renderLanes.dependencies =
|
|
4649
|
+
null === updatePayload
|
|
4650
|
+
? null
|
|
4651
|
+
: {
|
|
4652
|
+
lanes: updatePayload.lanes,
|
|
4653
|
+
firstContext: updatePayload.firstContext
|
|
4654
|
+
}),
|
|
4655
|
+
(renderLanes.selfBaseDuration = type.selfBaseDuration),
|
|
4656
|
+
(renderLanes.treeBaseDuration = type.treeBaseDuration)),
|
|
4657
|
+
(newProps = newProps.sibling);
|
|
4658
|
+
push(
|
|
4659
|
+
suspenseStackCursor,
|
|
4660
|
+
(suspenseStackCursor.current & 1) | 2
|
|
4661
|
+
);
|
|
4662
|
+
return workInProgress.child;
|
|
4663
|
+
}
|
|
4664
|
+
current = current.sibling;
|
|
4665
|
+
}
|
|
4666
|
+
null !== type.tail &&
|
|
4667
|
+
now() > workInProgressRootRenderTargetTime &&
|
|
4668
|
+
((workInProgress.flags |= 128),
|
|
4669
|
+
(newProps = !0),
|
|
4670
|
+
cutOffTailIfNeeded(type, !1),
|
|
4671
|
+
(workInProgress.lanes = 4194304));
|
|
4672
|
+
}
|
|
4673
|
+
else {
|
|
4674
|
+
if (!newProps)
|
|
4675
|
+
if (
|
|
4676
|
+
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
4677
|
+
) {
|
|
4678
|
+
if (
|
|
4679
|
+
((workInProgress.flags |= 128),
|
|
4680
|
+
(newProps = !0),
|
|
4681
|
+
(current = current.updateQueue),
|
|
4682
|
+
null !== current &&
|
|
4683
|
+
((workInProgress.updateQueue = current),
|
|
4684
|
+
(workInProgress.flags |= 4)),
|
|
4685
|
+
cutOffTailIfNeeded(type, !0),
|
|
4686
|
+
null === type.tail &&
|
|
4687
|
+
"hidden" === type.tailMode &&
|
|
4688
|
+
!updatePayload.alternate)
|
|
4689
|
+
)
|
|
4690
|
+
return bubbleProperties(workInProgress), null;
|
|
4691
|
+
} else
|
|
4692
|
+
2 * now() - type.renderingStartTime >
|
|
4693
|
+
workInProgressRootRenderTargetTime &&
|
|
4694
|
+
1073741824 !== renderLanes &&
|
|
4695
|
+
((workInProgress.flags |= 128),
|
|
4696
|
+
(newProps = !0),
|
|
4697
|
+
cutOffTailIfNeeded(type, !1),
|
|
4698
|
+
(workInProgress.lanes = 4194304));
|
|
4699
|
+
type.isBackwards
|
|
4700
|
+
? ((updatePayload.sibling = workInProgress.child),
|
|
4701
|
+
(workInProgress.child = updatePayload))
|
|
4702
|
+
: ((current = type.last),
|
|
4703
|
+
null !== current
|
|
4704
|
+
? (current.sibling = updatePayload)
|
|
4705
|
+
: (workInProgress.child = updatePayload),
|
|
4706
|
+
(type.last = updatePayload));
|
|
4707
|
+
}
|
|
4708
|
+
if (null !== type.tail)
|
|
4709
|
+
return (
|
|
4710
|
+
(workInProgress = type.tail),
|
|
4711
|
+
(type.rendering = workInProgress),
|
|
4712
|
+
(type.tail = workInProgress.sibling),
|
|
4713
|
+
(type.renderingStartTime = now()),
|
|
4714
|
+
(workInProgress.sibling = null),
|
|
4715
|
+
(current = suspenseStackCursor.current),
|
|
4716
|
+
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
4717
|
+
workInProgress
|
|
4718
|
+
);
|
|
4719
|
+
bubbleProperties(workInProgress);
|
|
4720
|
+
return null;
|
|
4721
|
+
case 22:
|
|
4722
|
+
case 23:
|
|
4723
|
+
return (
|
|
4724
|
+
popRenderLanes(),
|
|
4725
|
+
(renderLanes = null !== workInProgress.memoizedState),
|
|
4726
|
+
null !== current &&
|
|
4727
|
+
(null !== current.memoizedState) !== renderLanes &&
|
|
4728
|
+
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4729
|
+
23 !== workInProgress.tag &&
|
|
4730
|
+
(workInProgress.flags |= 4096),
|
|
4731
|
+
renderLanes && 0 !== (workInProgress.mode & 1)
|
|
4732
|
+
? 0 !== (subtreeRenderLanes & 1073741824) &&
|
|
4733
|
+
(bubbleProperties(workInProgress),
|
|
4734
|
+
23 !== workInProgress.tag &&
|
|
4735
|
+
workInProgress.subtreeFlags & 6 &&
|
|
4736
|
+
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
4737
|
+
(workInProgress.flags |= 4096))
|
|
4738
|
+
: bubbleProperties(workInProgress),
|
|
4739
|
+
null
|
|
4740
|
+
);
|
|
4741
|
+
}
|
|
4742
|
+
throw Error(
|
|
4743
|
+
"Unknown unit of work tag (" +
|
|
4744
|
+
workInProgress.tag +
|
|
4745
|
+
"). This error is likely caused by a bug in React. Please file an issue."
|
|
4746
|
+
);
|
|
4747
|
+
}
|
|
4748
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner,
|
|
4749
|
+
didReceiveUpdate = !1;
|
|
4750
|
+
function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
|
|
4751
|
+
workInProgress.child =
|
|
4752
|
+
null === current
|
|
4753
|
+
? mountChildFibers(workInProgress, null, nextChildren, renderLanes)
|
|
4754
|
+
: reconcileChildFibers(
|
|
4755
|
+
workInProgress,
|
|
4756
|
+
current.child,
|
|
4757
|
+
nextChildren,
|
|
4758
|
+
renderLanes
|
|
4759
|
+
);
|
|
4760
|
+
}
|
|
4761
|
+
function updateForwardRef(
|
|
4762
|
+
current,
|
|
4763
|
+
workInProgress,
|
|
4764
|
+
Component,
|
|
4765
|
+
nextProps,
|
|
4766
|
+
renderLanes
|
|
4767
|
+
) {
|
|
4768
|
+
Component = Component.render;
|
|
4769
|
+
var ref = workInProgress.ref;
|
|
4770
|
+
prepareToReadContext(workInProgress, renderLanes);
|
|
4771
|
+
nextProps = renderWithHooks(
|
|
4772
|
+
current,
|
|
4773
|
+
workInProgress,
|
|
4774
|
+
Component,
|
|
4775
|
+
nextProps,
|
|
4776
|
+
ref,
|
|
4777
|
+
renderLanes
|
|
4778
|
+
);
|
|
4779
|
+
if (null !== current && !didReceiveUpdate)
|
|
4780
|
+
return (
|
|
4781
|
+
(workInProgress.updateQueue = current.updateQueue),
|
|
4782
|
+
(workInProgress.flags &= -1029),
|
|
4783
|
+
(current.lanes &= ~renderLanes),
|
|
4784
|
+
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4785
|
+
);
|
|
4786
|
+
workInProgress.flags |= 1;
|
|
4787
|
+
reconcileChildren(current, workInProgress, nextProps, renderLanes);
|
|
4788
|
+
return workInProgress.child;
|
|
4789
|
+
}
|
|
4790
|
+
function updateMemoComponent(
|
|
4791
|
+
current,
|
|
4792
|
+
workInProgress,
|
|
4793
|
+
Component,
|
|
4794
|
+
nextProps,
|
|
4795
|
+
renderLanes
|
|
4796
|
+
) {
|
|
4797
|
+
if (null === current) {
|
|
4798
|
+
var type = Component.type;
|
|
4799
|
+
if (
|
|
4800
|
+
"function" === typeof type &&
|
|
4801
|
+
!shouldConstruct(type) &&
|
|
4802
|
+
void 0 === type.defaultProps &&
|
|
4803
|
+
null === Component.compare &&
|
|
4804
|
+
void 0 === Component.defaultProps
|
|
4805
|
+
)
|
|
4806
|
+
return (
|
|
4807
|
+
(workInProgress.tag = 15),
|
|
4808
|
+
(workInProgress.type = type),
|
|
4809
|
+
updateSimpleMemoComponent(
|
|
4810
|
+
current,
|
|
4811
|
+
workInProgress,
|
|
4812
|
+
type,
|
|
4813
|
+
nextProps,
|
|
4814
|
+
renderLanes
|
|
4815
|
+
)
|
|
4816
|
+
);
|
|
4817
|
+
current = createFiberFromTypeAndProps(
|
|
4818
|
+
Component.type,
|
|
4819
|
+
null,
|
|
4820
|
+
nextProps,
|
|
4821
|
+
workInProgress,
|
|
4822
|
+
workInProgress.mode,
|
|
4823
|
+
renderLanes
|
|
4824
|
+
);
|
|
4825
|
+
current.ref = workInProgress.ref;
|
|
4826
|
+
current.return = workInProgress;
|
|
4827
|
+
return (workInProgress.child = current);
|
|
4828
|
+
}
|
|
4829
|
+
type = current.child;
|
|
4830
|
+
if (0 === (current.lanes & renderLanes)) {
|
|
4831
|
+
var prevProps = type.memoizedProps;
|
|
4832
|
+
Component = Component.compare;
|
|
4833
|
+
Component = null !== Component ? Component : shallowEqual;
|
|
4834
|
+
if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)
|
|
4835
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
4836
|
+
}
|
|
4837
|
+
workInProgress.flags |= 1;
|
|
4838
|
+
current = createWorkInProgress(type, nextProps);
|
|
4839
|
+
current.ref = workInProgress.ref;
|
|
4840
|
+
current.return = workInProgress;
|
|
4841
|
+
return (workInProgress.child = current);
|
|
4842
|
+
}
|
|
4843
|
+
function updateSimpleMemoComponent(
|
|
4312
4844
|
current,
|
|
4313
4845
|
workInProgress,
|
|
4314
4846
|
Component,
|
|
4315
4847
|
nextProps,
|
|
4316
|
-
updateLanes,
|
|
4317
4848
|
renderLanes
|
|
4318
4849
|
) {
|
|
4319
4850
|
if (
|
|
4320
4851
|
null !== current &&
|
|
4321
4852
|
shallowEqual(current.memoizedProps, nextProps) &&
|
|
4322
4853
|
current.ref === workInProgress.ref
|
|
4323
|
-
)
|
|
4324
|
-
didReceiveUpdate = !1
|
|
4325
|
-
|
|
4854
|
+
)
|
|
4855
|
+
if (((didReceiveUpdate = !1), 0 !== (current.lanes & renderLanes)))
|
|
4856
|
+
0 !== (current.flags & 65536) && (didReceiveUpdate = !0);
|
|
4857
|
+
else
|
|
4326
4858
|
return (
|
|
4327
4859
|
(workInProgress.lanes = current.lanes),
|
|
4328
4860
|
bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
|
|
4329
4861
|
);
|
|
4330
|
-
0 !== (current.flags & 32768) && (didReceiveUpdate = !0);
|
|
4331
|
-
}
|
|
4332
4862
|
return updateFunctionComponent(
|
|
4333
4863
|
current,
|
|
4334
4864
|
workInProgress,
|
|
@@ -4381,7 +4911,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) {
|
|
|
4381
4911
|
reconcileChildren(current, workInProgress, nextChildren, renderLanes);
|
|
4382
4912
|
return workInProgress.child;
|
|
4383
4913
|
}
|
|
4384
|
-
function markRef(current, workInProgress) {
|
|
4914
|
+
function markRef$1(current, workInProgress) {
|
|
4385
4915
|
var ref = workInProgress.ref;
|
|
4386
4916
|
if (
|
|
4387
4917
|
(null === current && null !== ref) ||
|
|
@@ -4630,7 +5160,7 @@ function finishClassComponent(
|
|
|
4630
5160
|
hasContext,
|
|
4631
5161
|
renderLanes
|
|
4632
5162
|
) {
|
|
4633
|
-
markRef(current, workInProgress);
|
|
5163
|
+
markRef$1(current, workInProgress);
|
|
4634
5164
|
var didCaptureError = 0 !== (workInProgress.flags & 128);
|
|
4635
5165
|
if (!shouldUpdate && !didCaptureError)
|
|
4636
5166
|
return (
|
|
@@ -4695,7 +5225,6 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
4695
5225
|
JSCompiler_temp
|
|
4696
5226
|
? ((showFallback = !0), (workInProgress.flags &= -129))
|
|
4697
5227
|
: (null !== current && null === current.memoizedState) ||
|
|
4698
|
-
void 0 === nextProps.fallback ||
|
|
4699
5228
|
!0 === nextProps.unstable_avoidThisFallback ||
|
|
4700
5229
|
(suspenseContext |= 1);
|
|
4701
5230
|
push(suspenseStackCursor, suspenseContext & 1);
|
|
@@ -4734,7 +5263,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
|
4734
5263
|
renderLanes = createFiberFromOffscreen(
|
|
4735
5264
|
{ mode: "visible", children: current },
|
|
4736
5265
|
workInProgress.mode,
|
|
4737
|
-
|
|
5266
|
+
0,
|
|
4738
5267
|
null
|
|
4739
5268
|
);
|
|
4740
5269
|
renderLanes.return = workInProgress;
|
|
@@ -4882,7 +5411,7 @@ function updateSuspenseFallbackChildren(
|
|
|
4882
5411
|
(primaryChildren.treeBaseDuration = current.treeBaseDuration)),
|
|
4883
5412
|
(workInProgress.deletions = null))
|
|
4884
5413
|
: ((primaryChildren = createWorkInProgress(current, primaryChildProps)),
|
|
4885
|
-
(primaryChildren.subtreeFlags = current.subtreeFlags &
|
|
5414
|
+
(primaryChildren.subtreeFlags = current.subtreeFlags & 3670016));
|
|
4886
5415
|
null !== currentFallbackChildFragment
|
|
4887
5416
|
? (fallbackChildren = createWorkInProgress(
|
|
4888
5417
|
currentFallbackChildFragment,
|
|
@@ -4944,549 +5473,182 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
|
|
|
4944
5473
|
a: for (current = workInProgress.child; null !== current; ) {
|
|
4945
5474
|
if (13 === current.tag)
|
|
4946
5475
|
null !== current.memoizedState &&
|
|
4947
|
-
scheduleWorkOnFiber(current, renderLanes);
|
|
4948
|
-
else if (19 === current.tag) scheduleWorkOnFiber(current, renderLanes);
|
|
4949
|
-
else if (null !== current.child) {
|
|
4950
|
-
current.child.return = current;
|
|
4951
|
-
current = current.child;
|
|
4952
|
-
continue;
|
|
4953
|
-
}
|
|
4954
|
-
if (current === workInProgress) break a;
|
|
4955
|
-
for (; null === current.sibling; ) {
|
|
4956
|
-
if (null === current.return || current.return === workInProgress)
|
|
4957
|
-
break a;
|
|
4958
|
-
current = current.return;
|
|
4959
|
-
}
|
|
4960
|
-
current.sibling.return = current.return;
|
|
4961
|
-
current = current.sibling;
|
|
4962
|
-
}
|
|
4963
|
-
nextProps &= 1;
|
|
4964
|
-
}
|
|
4965
|
-
push(suspenseStackCursor, nextProps);
|
|
4966
|
-
if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;
|
|
4967
|
-
else
|
|
4968
|
-
switch (revealOrder) {
|
|
4969
|
-
case "forwards":
|
|
4970
|
-
renderLanes = workInProgress.child;
|
|
4971
|
-
for (revealOrder = null; null !== renderLanes; )
|
|
4972
|
-
(current = renderLanes.alternate),
|
|
4973
|
-
null !== current &&
|
|
4974
|
-
null === findFirstSuspended(current) &&
|
|
4975
|
-
(revealOrder = renderLanes),
|
|
4976
|
-
(renderLanes = renderLanes.sibling);
|
|
4977
|
-
renderLanes = revealOrder;
|
|
4978
|
-
null === renderLanes
|
|
4979
|
-
? ((revealOrder = workInProgress.child),
|
|
4980
|
-
(workInProgress.child = null))
|
|
4981
|
-
: ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));
|
|
4982
|
-
initSuspenseListRenderState(
|
|
4983
|
-
workInProgress,
|
|
4984
|
-
!1,
|
|
4985
|
-
revealOrder,
|
|
4986
|
-
renderLanes,
|
|
4987
|
-
tailMode
|
|
4988
|
-
);
|
|
4989
|
-
break;
|
|
4990
|
-
case "backwards":
|
|
4991
|
-
renderLanes = null;
|
|
4992
|
-
revealOrder = workInProgress.child;
|
|
4993
|
-
for (workInProgress.child = null; null !== revealOrder; ) {
|
|
4994
|
-
current = revealOrder.alternate;
|
|
4995
|
-
if (null !== current && null === findFirstSuspended(current)) {
|
|
4996
|
-
workInProgress.child = revealOrder;
|
|
4997
|
-
break;
|
|
4998
|
-
}
|
|
4999
|
-
current = revealOrder.sibling;
|
|
5000
|
-
revealOrder.sibling = renderLanes;
|
|
5001
|
-
renderLanes = revealOrder;
|
|
5002
|
-
revealOrder = current;
|
|
5003
|
-
}
|
|
5004
|
-
initSuspenseListRenderState(
|
|
5005
|
-
workInProgress,
|
|
5006
|
-
!0,
|
|
5007
|
-
renderLanes,
|
|
5008
|
-
null,
|
|
5009
|
-
tailMode
|
|
5010
|
-
);
|
|
5011
|
-
break;
|
|
5012
|
-
case "together":
|
|
5013
|
-
initSuspenseListRenderState(workInProgress, !1, null, null, void 0);
|
|
5014
|
-
break;
|
|
5015
|
-
default:
|
|
5016
|
-
workInProgress.memoizedState = null;
|
|
5017
|
-
}
|
|
5018
|
-
return workInProgress.child;
|
|
5019
|
-
}
|
|
5020
|
-
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
|
|
5021
|
-
null !== current && (workInProgress.dependencies = current.dependencies);
|
|
5022
|
-
profilerStartTime = -1;
|
|
5023
|
-
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
5024
|
-
if (0 === (renderLanes & workInProgress.childLanes)) return null;
|
|
5025
|
-
if (null !== current && workInProgress.child !== current.child)
|
|
5026
|
-
throw Error("Resuming work not yet implemented.");
|
|
5027
|
-
if (null !== workInProgress.child) {
|
|
5028
|
-
current = workInProgress.child;
|
|
5029
|
-
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
5030
|
-
workInProgress.child = renderLanes;
|
|
5031
|
-
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
5032
|
-
(current = current.sibling),
|
|
5033
|
-
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
5034
|
-
current,
|
|
5035
|
-
current.pendingProps
|
|
5036
|
-
)),
|
|
5037
|
-
(renderLanes.return = workInProgress);
|
|
5038
|
-
renderLanes.sibling = null;
|
|
5039
|
-
}
|
|
5040
|
-
return workInProgress.child;
|
|
5041
|
-
}
|
|
5042
|
-
var appendAllChildren,
|
|
5043
|
-
updateHostContainer,
|
|
5044
|
-
updateHostComponent$1,
|
|
5045
|
-
updateHostText$1;
|
|
5046
|
-
appendAllChildren = function(parent, workInProgress) {
|
|
5047
|
-
for (var node = workInProgress.child; null !== node; ) {
|
|
5048
|
-
if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);
|
|
5049
|
-
else if (4 !== node.tag && null !== node.child) {
|
|
5050
|
-
node.child.return = node;
|
|
5051
|
-
node = node.child;
|
|
5052
|
-
continue;
|
|
5053
|
-
}
|
|
5054
|
-
if (node === workInProgress) break;
|
|
5055
|
-
for (; null === node.sibling; ) {
|
|
5056
|
-
if (null === node.return || node.return === workInProgress) return;
|
|
5057
|
-
node = node.return;
|
|
5058
|
-
}
|
|
5059
|
-
node.sibling.return = node.return;
|
|
5060
|
-
node = node.sibling;
|
|
5061
|
-
}
|
|
5062
|
-
};
|
|
5063
|
-
updateHostContainer = function() {};
|
|
5064
|
-
updateHostComponent$1 = function(current, workInProgress, type, newProps) {
|
|
5065
|
-
current.memoizedProps !== newProps &&
|
|
5066
|
-
(requiredContext(contextStackCursor$1.current),
|
|
5067
|
-
(workInProgress.updateQueue = UPDATE_SIGNAL)) &&
|
|
5068
|
-
(workInProgress.flags |= 4);
|
|
5069
|
-
};
|
|
5070
|
-
updateHostText$1 = function(current, workInProgress, oldText, newText) {
|
|
5071
|
-
oldText !== newText && (workInProgress.flags |= 4);
|
|
5072
|
-
};
|
|
5073
|
-
function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
|
|
5074
|
-
switch (renderState.tailMode) {
|
|
5075
|
-
case "hidden":
|
|
5076
|
-
hasRenderedATailFallback = renderState.tail;
|
|
5077
|
-
for (var lastTailNode = null; null !== hasRenderedATailFallback; )
|
|
5078
|
-
null !== hasRenderedATailFallback.alternate &&
|
|
5079
|
-
(lastTailNode = hasRenderedATailFallback),
|
|
5080
|
-
(hasRenderedATailFallback = hasRenderedATailFallback.sibling);
|
|
5081
|
-
null === lastTailNode
|
|
5082
|
-
? (renderState.tail = null)
|
|
5083
|
-
: (lastTailNode.sibling = null);
|
|
5084
|
-
break;
|
|
5085
|
-
case "collapsed":
|
|
5086
|
-
lastTailNode = renderState.tail;
|
|
5087
|
-
for (var lastTailNode$72 = null; null !== lastTailNode; )
|
|
5088
|
-
null !== lastTailNode.alternate && (lastTailNode$72 = lastTailNode),
|
|
5089
|
-
(lastTailNode = lastTailNode.sibling);
|
|
5090
|
-
null === lastTailNode$72
|
|
5091
|
-
? hasRenderedATailFallback || null === renderState.tail
|
|
5092
|
-
? (renderState.tail = null)
|
|
5093
|
-
: (renderState.tail.sibling = null)
|
|
5094
|
-
: (lastTailNode$72.sibling = null);
|
|
5095
|
-
}
|
|
5096
|
-
}
|
|
5097
|
-
function bubbleProperties(completedWork) {
|
|
5098
|
-
var didBailout =
|
|
5099
|
-
null !== completedWork.alternate &&
|
|
5100
|
-
completedWork.alternate.child === completedWork.child,
|
|
5101
|
-
newChildLanes = 0,
|
|
5102
|
-
subtreeFlags = 0;
|
|
5103
|
-
if (didBailout)
|
|
5104
|
-
if (0 !== (completedWork.mode & 2)) {
|
|
5105
|
-
for (
|
|
5106
|
-
var treeBaseDuration$74 = completedWork.selfBaseDuration,
|
|
5107
|
-
child$75 = completedWork.child;
|
|
5108
|
-
null !== child$75;
|
|
5109
|
-
|
|
5110
|
-
)
|
|
5111
|
-
(newChildLanes |= child$75.lanes | child$75.childLanes),
|
|
5112
|
-
(subtreeFlags |= child$75.subtreeFlags & 1835008),
|
|
5113
|
-
(subtreeFlags |= child$75.flags & 1835008),
|
|
5114
|
-
(treeBaseDuration$74 += child$75.treeBaseDuration),
|
|
5115
|
-
(child$75 = child$75.sibling);
|
|
5116
|
-
completedWork.treeBaseDuration = treeBaseDuration$74;
|
|
5117
|
-
} else
|
|
5118
|
-
for (
|
|
5119
|
-
treeBaseDuration$74 = completedWork.child;
|
|
5120
|
-
null !== treeBaseDuration$74;
|
|
5121
|
-
|
|
5122
|
-
)
|
|
5123
|
-
(newChildLanes |=
|
|
5124
|
-
treeBaseDuration$74.lanes | treeBaseDuration$74.childLanes),
|
|
5125
|
-
(subtreeFlags |= treeBaseDuration$74.subtreeFlags & 1835008),
|
|
5126
|
-
(subtreeFlags |= treeBaseDuration$74.flags & 1835008),
|
|
5127
|
-
(treeBaseDuration$74.return = completedWork),
|
|
5128
|
-
(treeBaseDuration$74 = treeBaseDuration$74.sibling);
|
|
5129
|
-
else if (0 !== (completedWork.mode & 2)) {
|
|
5130
|
-
treeBaseDuration$74 = completedWork.actualDuration;
|
|
5131
|
-
child$75 = completedWork.selfBaseDuration;
|
|
5132
|
-
for (var child = completedWork.child; null !== child; )
|
|
5133
|
-
(newChildLanes |= child.lanes | child.childLanes),
|
|
5134
|
-
(subtreeFlags |= child.subtreeFlags),
|
|
5135
|
-
(subtreeFlags |= child.flags),
|
|
5136
|
-
(treeBaseDuration$74 += child.actualDuration),
|
|
5137
|
-
(child$75 += child.treeBaseDuration),
|
|
5138
|
-
(child = child.sibling);
|
|
5139
|
-
completedWork.actualDuration = treeBaseDuration$74;
|
|
5140
|
-
completedWork.treeBaseDuration = child$75;
|
|
5141
|
-
} else
|
|
5142
|
-
for (
|
|
5143
|
-
treeBaseDuration$74 = completedWork.child;
|
|
5144
|
-
null !== treeBaseDuration$74;
|
|
5145
|
-
|
|
5146
|
-
)
|
|
5147
|
-
(newChildLanes |=
|
|
5148
|
-
treeBaseDuration$74.lanes | treeBaseDuration$74.childLanes),
|
|
5149
|
-
(subtreeFlags |= treeBaseDuration$74.subtreeFlags),
|
|
5150
|
-
(subtreeFlags |= treeBaseDuration$74.flags),
|
|
5151
|
-
(treeBaseDuration$74.return = completedWork),
|
|
5152
|
-
(treeBaseDuration$74 = treeBaseDuration$74.sibling);
|
|
5153
|
-
completedWork.subtreeFlags |= subtreeFlags;
|
|
5154
|
-
completedWork.childLanes = newChildLanes;
|
|
5155
|
-
return didBailout;
|
|
5156
|
-
}
|
|
5157
|
-
function completeWork(current, workInProgress, renderLanes) {
|
|
5158
|
-
var newProps = workInProgress.pendingProps;
|
|
5159
|
-
switch (workInProgress.tag) {
|
|
5160
|
-
case 2:
|
|
5161
|
-
case 16:
|
|
5162
|
-
case 15:
|
|
5163
|
-
case 0:
|
|
5164
|
-
case 11:
|
|
5165
|
-
case 7:
|
|
5166
|
-
case 8:
|
|
5167
|
-
case 12:
|
|
5168
|
-
case 9:
|
|
5169
|
-
case 14:
|
|
5170
|
-
return bubbleProperties(workInProgress), null;
|
|
5171
|
-
case 1:
|
|
5172
|
-
return (
|
|
5173
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
5174
|
-
bubbleProperties(workInProgress),
|
|
5175
|
-
null
|
|
5176
|
-
);
|
|
5177
|
-
case 3:
|
|
5178
|
-
return (
|
|
5179
|
-
(newProps = workInProgress.stateNode),
|
|
5180
|
-
popHostContainer(),
|
|
5181
|
-
pop(didPerformWorkStackCursor),
|
|
5182
|
-
pop(contextStackCursor),
|
|
5183
|
-
resetWorkInProgressVersions(),
|
|
5184
|
-
newProps.pendingContext &&
|
|
5185
|
-
((newProps.context = newProps.pendingContext),
|
|
5186
|
-
(newProps.pendingContext = null)),
|
|
5187
|
-
(null !== current && null !== current.child) ||
|
|
5188
|
-
newProps.hydrate ||
|
|
5189
|
-
(workInProgress.flags |= 512),
|
|
5190
|
-
updateHostContainer(current, workInProgress),
|
|
5191
|
-
bubbleProperties(workInProgress),
|
|
5192
|
-
null
|
|
5193
|
-
);
|
|
5194
|
-
case 5:
|
|
5195
|
-
popHostContext(workInProgress);
|
|
5196
|
-
renderLanes = requiredContext(rootInstanceStackCursor.current);
|
|
5197
|
-
var type = workInProgress.type;
|
|
5198
|
-
if (null !== current && null != workInProgress.stateNode)
|
|
5199
|
-
updateHostComponent$1(
|
|
5200
|
-
current,
|
|
5201
|
-
workInProgress,
|
|
5202
|
-
type,
|
|
5203
|
-
newProps,
|
|
5204
|
-
renderLanes
|
|
5205
|
-
),
|
|
5206
|
-
current.ref !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
5207
|
-
else {
|
|
5208
|
-
if (!newProps) {
|
|
5209
|
-
if (null === workInProgress.stateNode)
|
|
5210
|
-
throw Error(
|
|
5211
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5212
|
-
);
|
|
5213
|
-
bubbleProperties(workInProgress);
|
|
5214
|
-
return null;
|
|
5215
|
-
}
|
|
5216
|
-
requiredContext(contextStackCursor$1.current);
|
|
5217
|
-
current = allocateTag();
|
|
5218
|
-
type = getViewConfigForType(type);
|
|
5219
|
-
var updatePayload = diffProperties(
|
|
5220
|
-
null,
|
|
5221
|
-
emptyObject,
|
|
5222
|
-
newProps,
|
|
5223
|
-
type.validAttributes
|
|
5224
|
-
);
|
|
5225
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
5226
|
-
current,
|
|
5227
|
-
type.uiViewClassName,
|
|
5228
|
-
renderLanes,
|
|
5229
|
-
updatePayload
|
|
5230
|
-
);
|
|
5231
|
-
renderLanes = new ReactNativeFiberHostComponent(
|
|
5232
|
-
current,
|
|
5233
|
-
type,
|
|
5234
|
-
workInProgress
|
|
5235
|
-
);
|
|
5236
|
-
instanceCache.set(current, workInProgress);
|
|
5237
|
-
instanceProps.set(current, newProps);
|
|
5238
|
-
appendAllChildren(renderLanes, workInProgress, !1, !1);
|
|
5239
|
-
workInProgress.stateNode = renderLanes;
|
|
5240
|
-
finalizeInitialChildren(renderLanes) && (workInProgress.flags |= 4);
|
|
5241
|
-
null !== workInProgress.ref && (workInProgress.flags |= 256);
|
|
5476
|
+
scheduleWorkOnFiber(current, renderLanes);
|
|
5477
|
+
else if (19 === current.tag) scheduleWorkOnFiber(current, renderLanes);
|
|
5478
|
+
else if (null !== current.child) {
|
|
5479
|
+
current.child.return = current;
|
|
5480
|
+
current = current.child;
|
|
5481
|
+
continue;
|
|
5482
|
+
}
|
|
5483
|
+
if (current === workInProgress) break a;
|
|
5484
|
+
for (; null === current.sibling; ) {
|
|
5485
|
+
if (null === current.return || current.return === workInProgress)
|
|
5486
|
+
break a;
|
|
5487
|
+
current = current.return;
|
|
5488
|
+
}
|
|
5489
|
+
current.sibling.return = current.return;
|
|
5490
|
+
current = current.sibling;
|
|
5242
5491
|
}
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5492
|
+
nextProps &= 1;
|
|
5493
|
+
}
|
|
5494
|
+
push(suspenseStackCursor, nextProps);
|
|
5495
|
+
if (0 === (workInProgress.mode & 1)) workInProgress.memoizedState = null;
|
|
5496
|
+
else
|
|
5497
|
+
switch (revealOrder) {
|
|
5498
|
+
case "forwards":
|
|
5499
|
+
renderLanes = workInProgress.child;
|
|
5500
|
+
for (revealOrder = null; null !== renderLanes; )
|
|
5501
|
+
(current = renderLanes.alternate),
|
|
5502
|
+
null !== current &&
|
|
5503
|
+
null === findFirstSuspended(current) &&
|
|
5504
|
+
(revealOrder = renderLanes),
|
|
5505
|
+
(renderLanes = renderLanes.sibling);
|
|
5506
|
+
renderLanes = revealOrder;
|
|
5507
|
+
null === renderLanes
|
|
5508
|
+
? ((revealOrder = workInProgress.child),
|
|
5509
|
+
(workInProgress.child = null))
|
|
5510
|
+
: ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));
|
|
5511
|
+
initSuspenseListRenderState(
|
|
5249
5512
|
workInProgress,
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
);
|
|
5253
|
-
else {
|
|
5254
|
-
if ("string" !== typeof newProps && null === workInProgress.stateNode)
|
|
5255
|
-
throw Error(
|
|
5256
|
-
"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."
|
|
5257
|
-
);
|
|
5258
|
-
current = requiredContext(rootInstanceStackCursor.current);
|
|
5259
|
-
if (!requiredContext(contextStackCursor$1.current).isInAParentText)
|
|
5260
|
-
throw Error(
|
|
5261
|
-
"Text strings must be rendered within a <Text> component."
|
|
5262
|
-
);
|
|
5263
|
-
renderLanes = allocateTag();
|
|
5264
|
-
ReactNativePrivateInterface.UIManager.createView(
|
|
5513
|
+
!1,
|
|
5514
|
+
revealOrder,
|
|
5265
5515
|
renderLanes,
|
|
5266
|
-
|
|
5267
|
-
current,
|
|
5268
|
-
{ text: newProps }
|
|
5269
|
-
);
|
|
5270
|
-
instanceCache.set(renderLanes, workInProgress);
|
|
5271
|
-
workInProgress.stateNode = renderLanes;
|
|
5272
|
-
}
|
|
5273
|
-
bubbleProperties(workInProgress);
|
|
5274
|
-
return null;
|
|
5275
|
-
case 13:
|
|
5276
|
-
pop(suspenseStackCursor);
|
|
5277
|
-
newProps = workInProgress.memoizedState;
|
|
5278
|
-
if (0 !== (workInProgress.flags & 128))
|
|
5279
|
-
return (
|
|
5280
|
-
(workInProgress.lanes = renderLanes),
|
|
5281
|
-
0 !== (workInProgress.mode & 2) &&
|
|
5282
|
-
transferActualDuration(workInProgress),
|
|
5283
|
-
workInProgress
|
|
5516
|
+
tailMode
|
|
5284
5517
|
);
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
workInProgressRoot,
|
|
5307
|
-
workInProgressRootRenderLanes
|
|
5308
|
-
);
|
|
5309
|
-
}
|
|
5310
|
-
if (newProps || renderLanes) workInProgress.flags |= 4;
|
|
5311
|
-
bubbleProperties(workInProgress);
|
|
5312
|
-
0 !== (workInProgress.mode & 2) &&
|
|
5313
|
-
newProps &&
|
|
5314
|
-
((current = workInProgress.child),
|
|
5315
|
-
null !== current &&
|
|
5316
|
-
(workInProgress.treeBaseDuration -= current.treeBaseDuration));
|
|
5317
|
-
return null;
|
|
5318
|
-
case 4:
|
|
5319
|
-
return (
|
|
5320
|
-
popHostContainer(),
|
|
5321
|
-
updateHostContainer(current, workInProgress),
|
|
5322
|
-
bubbleProperties(workInProgress),
|
|
5323
|
-
null
|
|
5324
|
-
);
|
|
5325
|
-
case 10:
|
|
5326
|
-
return (
|
|
5327
|
-
popProvider(workInProgress.type._context),
|
|
5328
|
-
bubbleProperties(workInProgress),
|
|
5329
|
-
null
|
|
5330
|
-
);
|
|
5331
|
-
case 17:
|
|
5332
|
-
return (
|
|
5333
|
-
isContextProvider(workInProgress.type) && popContext(),
|
|
5334
|
-
bubbleProperties(workInProgress),
|
|
5335
|
-
null
|
|
5336
|
-
);
|
|
5337
|
-
case 19:
|
|
5338
|
-
pop(suspenseStackCursor);
|
|
5339
|
-
type = workInProgress.memoizedState;
|
|
5340
|
-
if (null === type) return bubbleProperties(workInProgress), null;
|
|
5341
|
-
newProps = 0 !== (workInProgress.flags & 128);
|
|
5342
|
-
updatePayload = type.rendering;
|
|
5343
|
-
if (null === updatePayload)
|
|
5344
|
-
if (newProps) cutOffTailIfNeeded(type, !1);
|
|
5345
|
-
else {
|
|
5346
|
-
if (
|
|
5347
|
-
0 !== workInProgressRootExitStatus ||
|
|
5348
|
-
(null !== current && 0 !== (current.flags & 128))
|
|
5349
|
-
)
|
|
5350
|
-
for (current = workInProgress.child; null !== current; ) {
|
|
5351
|
-
updatePayload = findFirstSuspended(current);
|
|
5352
|
-
if (null !== updatePayload) {
|
|
5353
|
-
workInProgress.flags |= 128;
|
|
5354
|
-
cutOffTailIfNeeded(type, !1);
|
|
5355
|
-
current = updatePayload.updateQueue;
|
|
5356
|
-
null !== current &&
|
|
5357
|
-
((workInProgress.updateQueue = current),
|
|
5358
|
-
(workInProgress.flags |= 4));
|
|
5359
|
-
workInProgress.subtreeFlags = 0;
|
|
5360
|
-
current = renderLanes;
|
|
5361
|
-
for (newProps = workInProgress.child; null !== newProps; )
|
|
5362
|
-
(renderLanes = newProps),
|
|
5363
|
-
(updatePayload = current),
|
|
5364
|
-
(renderLanes.flags &= 1835010),
|
|
5365
|
-
(type = renderLanes.alternate),
|
|
5366
|
-
null === type
|
|
5367
|
-
? ((renderLanes.childLanes = 0),
|
|
5368
|
-
(renderLanes.lanes = updatePayload),
|
|
5369
|
-
(renderLanes.child = null),
|
|
5370
|
-
(renderLanes.subtreeFlags = 0),
|
|
5371
|
-
(renderLanes.memoizedProps = null),
|
|
5372
|
-
(renderLanes.memoizedState = null),
|
|
5373
|
-
(renderLanes.updateQueue = null),
|
|
5374
|
-
(renderLanes.dependencies = null),
|
|
5375
|
-
(renderLanes.stateNode = null),
|
|
5376
|
-
(renderLanes.selfBaseDuration = 0),
|
|
5377
|
-
(renderLanes.treeBaseDuration = 0))
|
|
5378
|
-
: ((renderLanes.childLanes = type.childLanes),
|
|
5379
|
-
(renderLanes.lanes = type.lanes),
|
|
5380
|
-
(renderLanes.child = type.child),
|
|
5381
|
-
(renderLanes.subtreeFlags = 0),
|
|
5382
|
-
(renderLanes.deletions = null),
|
|
5383
|
-
(renderLanes.memoizedProps = type.memoizedProps),
|
|
5384
|
-
(renderLanes.memoizedState = type.memoizedState),
|
|
5385
|
-
(renderLanes.updateQueue = type.updateQueue),
|
|
5386
|
-
(renderLanes.type = type.type),
|
|
5387
|
-
(updatePayload = type.dependencies),
|
|
5388
|
-
(renderLanes.dependencies =
|
|
5389
|
-
null === updatePayload
|
|
5390
|
-
? null
|
|
5391
|
-
: {
|
|
5392
|
-
lanes: updatePayload.lanes,
|
|
5393
|
-
firstContext: updatePayload.firstContext
|
|
5394
|
-
}),
|
|
5395
|
-
(renderLanes.selfBaseDuration = type.selfBaseDuration),
|
|
5396
|
-
(renderLanes.treeBaseDuration = type.treeBaseDuration)),
|
|
5397
|
-
(newProps = newProps.sibling);
|
|
5398
|
-
push(
|
|
5399
|
-
suspenseStackCursor,
|
|
5400
|
-
(suspenseStackCursor.current & 1) | 2
|
|
5401
|
-
);
|
|
5402
|
-
return workInProgress.child;
|
|
5403
|
-
}
|
|
5404
|
-
current = current.sibling;
|
|
5405
|
-
}
|
|
5406
|
-
null !== type.tail &&
|
|
5407
|
-
now() > workInProgressRootRenderTargetTime &&
|
|
5408
|
-
((workInProgress.flags |= 128),
|
|
5409
|
-
(newProps = !0),
|
|
5410
|
-
cutOffTailIfNeeded(type, !1),
|
|
5411
|
-
(workInProgress.lanes = 4194304));
|
|
5412
|
-
}
|
|
5413
|
-
else {
|
|
5414
|
-
if (!newProps)
|
|
5415
|
-
if (
|
|
5416
|
-
((current = findFirstSuspended(updatePayload)), null !== current)
|
|
5417
|
-
) {
|
|
5418
|
-
if (
|
|
5419
|
-
((workInProgress.flags |= 128),
|
|
5420
|
-
(newProps = !0),
|
|
5421
|
-
(current = current.updateQueue),
|
|
5422
|
-
null !== current &&
|
|
5423
|
-
((workInProgress.updateQueue = current),
|
|
5424
|
-
(workInProgress.flags |= 4)),
|
|
5425
|
-
cutOffTailIfNeeded(type, !0),
|
|
5426
|
-
null === type.tail &&
|
|
5427
|
-
"hidden" === type.tailMode &&
|
|
5428
|
-
!updatePayload.alternate)
|
|
5429
|
-
)
|
|
5430
|
-
return bubbleProperties(workInProgress), null;
|
|
5431
|
-
} else
|
|
5432
|
-
2 * now() - type.renderingStartTime >
|
|
5433
|
-
workInProgressRootRenderTargetTime &&
|
|
5434
|
-
1073741824 !== renderLanes &&
|
|
5435
|
-
((workInProgress.flags |= 128),
|
|
5436
|
-
(newProps = !0),
|
|
5437
|
-
cutOffTailIfNeeded(type, !1),
|
|
5438
|
-
(workInProgress.lanes = 4194304));
|
|
5439
|
-
type.isBackwards
|
|
5440
|
-
? ((updatePayload.sibling = workInProgress.child),
|
|
5441
|
-
(workInProgress.child = updatePayload))
|
|
5442
|
-
: ((current = type.last),
|
|
5443
|
-
null !== current
|
|
5444
|
-
? (current.sibling = updatePayload)
|
|
5445
|
-
: (workInProgress.child = updatePayload),
|
|
5446
|
-
(type.last = updatePayload));
|
|
5447
|
-
}
|
|
5448
|
-
if (null !== type.tail)
|
|
5449
|
-
return (
|
|
5450
|
-
(workInProgress = type.tail),
|
|
5451
|
-
(type.rendering = workInProgress),
|
|
5452
|
-
(type.tail = workInProgress.sibling),
|
|
5453
|
-
(type.renderingStartTime = now()),
|
|
5454
|
-
(workInProgress.sibling = null),
|
|
5455
|
-
(current = suspenseStackCursor.current),
|
|
5456
|
-
push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
|
|
5457
|
-
workInProgress
|
|
5518
|
+
break;
|
|
5519
|
+
case "backwards":
|
|
5520
|
+
renderLanes = null;
|
|
5521
|
+
revealOrder = workInProgress.child;
|
|
5522
|
+
for (workInProgress.child = null; null !== revealOrder; ) {
|
|
5523
|
+
current = revealOrder.alternate;
|
|
5524
|
+
if (null !== current && null === findFirstSuspended(current)) {
|
|
5525
|
+
workInProgress.child = revealOrder;
|
|
5526
|
+
break;
|
|
5527
|
+
}
|
|
5528
|
+
current = revealOrder.sibling;
|
|
5529
|
+
revealOrder.sibling = renderLanes;
|
|
5530
|
+
renderLanes = revealOrder;
|
|
5531
|
+
revealOrder = current;
|
|
5532
|
+
}
|
|
5533
|
+
initSuspenseListRenderState(
|
|
5534
|
+
workInProgress,
|
|
5535
|
+
!0,
|
|
5536
|
+
renderLanes,
|
|
5537
|
+
null,
|
|
5538
|
+
tailMode
|
|
5458
5539
|
);
|
|
5459
|
-
|
|
5460
|
-
|
|
5540
|
+
break;
|
|
5541
|
+
case "together":
|
|
5542
|
+
initSuspenseListRenderState(workInProgress, !1, null, null, void 0);
|
|
5543
|
+
break;
|
|
5544
|
+
default:
|
|
5545
|
+
workInProgress.memoizedState = null;
|
|
5546
|
+
}
|
|
5547
|
+
return workInProgress.child;
|
|
5548
|
+
}
|
|
5549
|
+
function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
|
|
5550
|
+
null !== current && (workInProgress.dependencies = current.dependencies);
|
|
5551
|
+
profilerStartTime = -1;
|
|
5552
|
+
workInProgressRootSkippedLanes |= workInProgress.lanes;
|
|
5553
|
+
if (0 === (renderLanes & workInProgress.childLanes)) return null;
|
|
5554
|
+
if (null !== current && workInProgress.child !== current.child)
|
|
5555
|
+
throw Error("Resuming work not yet implemented.");
|
|
5556
|
+
if (null !== workInProgress.child) {
|
|
5557
|
+
current = workInProgress.child;
|
|
5558
|
+
renderLanes = createWorkInProgress(current, current.pendingProps);
|
|
5559
|
+
workInProgress.child = renderLanes;
|
|
5560
|
+
for (renderLanes.return = workInProgress; null !== current.sibling; )
|
|
5561
|
+
(current = current.sibling),
|
|
5562
|
+
(renderLanes = renderLanes.sibling = createWorkInProgress(
|
|
5563
|
+
current,
|
|
5564
|
+
current.pendingProps
|
|
5565
|
+
)),
|
|
5566
|
+
(renderLanes.return = workInProgress);
|
|
5567
|
+
renderLanes.sibling = null;
|
|
5568
|
+
}
|
|
5569
|
+
return workInProgress.child;
|
|
5570
|
+
}
|
|
5571
|
+
function attemptEarlyBailoutIfNoScheduledUpdate(
|
|
5572
|
+
current,
|
|
5573
|
+
workInProgress,
|
|
5574
|
+
renderLanes
|
|
5575
|
+
) {
|
|
5576
|
+
switch (workInProgress.tag) {
|
|
5577
|
+
case 3:
|
|
5578
|
+
pushHostRootContext(workInProgress);
|
|
5579
|
+
break;
|
|
5580
|
+
case 5:
|
|
5581
|
+
pushHostContext(workInProgress);
|
|
5582
|
+
break;
|
|
5583
|
+
case 1:
|
|
5584
|
+
isContextProvider(workInProgress.type) &&
|
|
5585
|
+
pushContextProvider(workInProgress);
|
|
5586
|
+
break;
|
|
5587
|
+
case 4:
|
|
5588
|
+
pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
|
|
5589
|
+
break;
|
|
5590
|
+
case 10:
|
|
5591
|
+
var context = workInProgress.type._context,
|
|
5592
|
+
nextValue = workInProgress.memoizedProps.value;
|
|
5593
|
+
push(valueCursor, context._currentValue);
|
|
5594
|
+
context._currentValue = nextValue;
|
|
5595
|
+
break;
|
|
5596
|
+
case 12:
|
|
5597
|
+
0 !== (renderLanes & workInProgress.childLanes) &&
|
|
5598
|
+
(workInProgress.flags |= 4);
|
|
5599
|
+
context = workInProgress.stateNode;
|
|
5600
|
+
context.effectDuration = 0;
|
|
5601
|
+
context.passiveEffectDuration = 0;
|
|
5602
|
+
break;
|
|
5603
|
+
case 13:
|
|
5604
|
+
if (null !== workInProgress.memoizedState) {
|
|
5605
|
+
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
5606
|
+
return updateSuspenseComponent(current, workInProgress, renderLanes);
|
|
5607
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5608
|
+
current = bailoutOnAlreadyFinishedWork(
|
|
5609
|
+
current,
|
|
5610
|
+
workInProgress,
|
|
5611
|
+
renderLanes
|
|
5612
|
+
);
|
|
5613
|
+
return null !== current ? current.sibling : null;
|
|
5614
|
+
}
|
|
5615
|
+
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
5616
|
+
break;
|
|
5617
|
+
case 19:
|
|
5618
|
+
context = 0 !== (renderLanes & workInProgress.childLanes);
|
|
5619
|
+
if (0 !== (current.flags & 128)) {
|
|
5620
|
+
if (context)
|
|
5621
|
+
return updateSuspenseListComponent(
|
|
5622
|
+
current,
|
|
5623
|
+
workInProgress,
|
|
5624
|
+
renderLanes
|
|
5625
|
+
);
|
|
5626
|
+
workInProgress.flags |= 128;
|
|
5627
|
+
}
|
|
5628
|
+
nextValue = workInProgress.memoizedState;
|
|
5629
|
+
null !== nextValue &&
|
|
5630
|
+
((nextValue.rendering = null),
|
|
5631
|
+
(nextValue.tail = null),
|
|
5632
|
+
(nextValue.lastEffect = null));
|
|
5633
|
+
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
5634
|
+
if (context) break;
|
|
5635
|
+
else return null;
|
|
5461
5636
|
case 22:
|
|
5462
5637
|
case 23:
|
|
5463
5638
|
return (
|
|
5464
|
-
|
|
5465
|
-
(
|
|
5466
|
-
null !== current &&
|
|
5467
|
-
(null !== current.memoizedState) !== renderLanes &&
|
|
5468
|
-
"unstable-defer-without-hiding" !== newProps.mode &&
|
|
5469
|
-
(workInProgress.flags |= 4),
|
|
5470
|
-
(renderLanes &&
|
|
5471
|
-
0 === (subtreeRenderLanes & 1073741824) &&
|
|
5472
|
-
0 !== (workInProgress.mode & 1)) ||
|
|
5473
|
-
bubbleProperties(workInProgress),
|
|
5474
|
-
null
|
|
5639
|
+
(workInProgress.lanes = 0),
|
|
5640
|
+
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
5475
5641
|
);
|
|
5476
5642
|
}
|
|
5477
|
-
|
|
5478
|
-
"Unknown unit of work tag (" +
|
|
5479
|
-
workInProgress.tag +
|
|
5480
|
-
"). This error is likely caused by a bug in React. Please file an issue."
|
|
5481
|
-
);
|
|
5643
|
+
return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
|
|
5482
5644
|
}
|
|
5483
5645
|
function unwindWork(workInProgress) {
|
|
5484
5646
|
switch (workInProgress.tag) {
|
|
5485
5647
|
case 1:
|
|
5486
5648
|
isContextProvider(workInProgress.type) && popContext();
|
|
5487
5649
|
var flags = workInProgress.flags;
|
|
5488
|
-
return flags &
|
|
5489
|
-
? ((workInProgress.flags = (flags & -
|
|
5650
|
+
return flags & 32768
|
|
5651
|
+
? ((workInProgress.flags = (flags & -32769) | 128),
|
|
5490
5652
|
0 !== (workInProgress.mode & 2) &&
|
|
5491
5653
|
transferActualDuration(workInProgress),
|
|
5492
5654
|
workInProgress)
|
|
@@ -5501,7 +5663,7 @@ function unwindWork(workInProgress) {
|
|
|
5501
5663
|
throw Error(
|
|
5502
5664
|
"The root failed to unmount after an error. This is likely a bug in React. Please file an issue."
|
|
5503
5665
|
);
|
|
5504
|
-
workInProgress.flags = (flags & -
|
|
5666
|
+
workInProgress.flags = (flags & -32769) | 128;
|
|
5505
5667
|
return workInProgress;
|
|
5506
5668
|
case 5:
|
|
5507
5669
|
return popHostContext(workInProgress), null;
|
|
@@ -5509,8 +5671,8 @@ function unwindWork(workInProgress) {
|
|
|
5509
5671
|
return (
|
|
5510
5672
|
pop(suspenseStackCursor),
|
|
5511
5673
|
(flags = workInProgress.flags),
|
|
5512
|
-
flags &
|
|
5513
|
-
? ((workInProgress.flags = (flags & -
|
|
5674
|
+
flags & 32768
|
|
5675
|
+
? ((workInProgress.flags = (flags & -32769) | 128),
|
|
5514
5676
|
0 !== (workInProgress.mode & 2) &&
|
|
5515
5677
|
transferActualDuration(workInProgress),
|
|
5516
5678
|
workInProgress)
|
|
@@ -5647,75 +5809,13 @@ function commitHookEffectListMount(tag, finishedWork) {
|
|
|
5647
5809
|
var effect = (finishedWork = finishedWork.next);
|
|
5648
5810
|
do {
|
|
5649
5811
|
if ((effect.tag & tag) === tag) {
|
|
5650
|
-
var create$
|
|
5651
|
-
effect.destroy = create$
|
|
5812
|
+
var create$89 = effect.create;
|
|
5813
|
+
effect.destroy = create$89();
|
|
5652
5814
|
}
|
|
5653
5815
|
effect = effect.next;
|
|
5654
5816
|
} while (effect !== finishedWork);
|
|
5655
5817
|
}
|
|
5656
5818
|
}
|
|
5657
|
-
function hideOrUnhideAllChildren(finishedWork, isHidden) {
|
|
5658
|
-
for (var hostSubtreeRoot = null, node = finishedWork; ; ) {
|
|
5659
|
-
if (5 === node.tag) {
|
|
5660
|
-
if (null === hostSubtreeRoot) {
|
|
5661
|
-
hostSubtreeRoot = node;
|
|
5662
|
-
var instance = node.stateNode;
|
|
5663
|
-
if (isHidden) {
|
|
5664
|
-
var viewConfig = instance.viewConfig;
|
|
5665
|
-
var updatePayload = diffProperties(
|
|
5666
|
-
null,
|
|
5667
|
-
emptyObject,
|
|
5668
|
-
{ style: { display: "none" } },
|
|
5669
|
-
viewConfig.validAttributes
|
|
5670
|
-
);
|
|
5671
|
-
ReactNativePrivateInterface.UIManager.updateView(
|
|
5672
|
-
instance._nativeTag,
|
|
5673
|
-
viewConfig.uiViewClassName,
|
|
5674
|
-
updatePayload
|
|
5675
|
-
);
|
|
5676
|
-
} else {
|
|
5677
|
-
instance = node.stateNode;
|
|
5678
|
-
updatePayload = node.memoizedProps;
|
|
5679
|
-
viewConfig = instance.viewConfig;
|
|
5680
|
-
var prevProps = Object.assign({}, updatePayload, {
|
|
5681
|
-
style: [updatePayload.style, { display: "none" }]
|
|
5682
|
-
});
|
|
5683
|
-
updatePayload = diffProperties(
|
|
5684
|
-
null,
|
|
5685
|
-
prevProps,
|
|
5686
|
-
updatePayload,
|
|
5687
|
-
viewConfig.validAttributes
|
|
5688
|
-
);
|
|
5689
|
-
ReactNativePrivateInterface.UIManager.updateView(
|
|
5690
|
-
instance._nativeTag,
|
|
5691
|
-
viewConfig.uiViewClassName,
|
|
5692
|
-
updatePayload
|
|
5693
|
-
);
|
|
5694
|
-
}
|
|
5695
|
-
}
|
|
5696
|
-
} else if (6 === node.tag) {
|
|
5697
|
-
if (null === hostSubtreeRoot) throw Error("Not yet implemented.");
|
|
5698
|
-
} else if (
|
|
5699
|
-
((22 !== node.tag && 23 !== node.tag) ||
|
|
5700
|
-
null === node.memoizedState ||
|
|
5701
|
-
node === finishedWork) &&
|
|
5702
|
-
null !== node.child
|
|
5703
|
-
) {
|
|
5704
|
-
node.child.return = node;
|
|
5705
|
-
node = node.child;
|
|
5706
|
-
continue;
|
|
5707
|
-
}
|
|
5708
|
-
if (node === finishedWork) break;
|
|
5709
|
-
for (; null === node.sibling; ) {
|
|
5710
|
-
if (null === node.return || node.return === finishedWork) return;
|
|
5711
|
-
hostSubtreeRoot === node && (hostSubtreeRoot = null);
|
|
5712
|
-
node = node.return;
|
|
5713
|
-
}
|
|
5714
|
-
hostSubtreeRoot === node && (hostSubtreeRoot = null);
|
|
5715
|
-
node.sibling.return = node.return;
|
|
5716
|
-
node = node.sibling;
|
|
5717
|
-
}
|
|
5718
|
-
}
|
|
5719
5819
|
function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
5720
5820
|
if (injectedHook && "function" === typeof injectedHook.onCommitFiberUnmount)
|
|
5721
5821
|
try {
|
|
@@ -5736,8 +5836,8 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
5736
5836
|
var _effect = effect,
|
|
5737
5837
|
destroy = _effect.destroy;
|
|
5738
5838
|
_effect = _effect.tag;
|
|
5739
|
-
void 0
|
|
5740
|
-
0
|
|
5839
|
+
void 0 === destroy ||
|
|
5840
|
+
(0 === (_effect & 2) && 0 === (_effect & 4)) ||
|
|
5741
5841
|
(current.mode & 2
|
|
5742
5842
|
? (startLayoutEffectTimer(),
|
|
5743
5843
|
safelyCallDestroy(current, nearestMountedAncestor, destroy),
|
|
@@ -5763,12 +5863,8 @@ function commitUnmount(finishedRoot, current, nearestMountedAncestor) {
|
|
|
5763
5863
|
recordLayoutEffectDuration(current);
|
|
5764
5864
|
}
|
|
5765
5865
|
else finishedRoot.componentWillUnmount();
|
|
5766
|
-
} catch (
|
|
5767
|
-
captureCommitPhaseError(
|
|
5768
|
-
current,
|
|
5769
|
-
nearestMountedAncestor,
|
|
5770
|
-
unmountError
|
|
5771
|
-
);
|
|
5866
|
+
} catch (error) {
|
|
5867
|
+
captureCommitPhaseError(current, nearestMountedAncestor, error);
|
|
5772
5868
|
}
|
|
5773
5869
|
break;
|
|
5774
5870
|
case 5:
|
|
@@ -6064,14 +6160,16 @@ function commitWork(current, finishedWork) {
|
|
|
6064
6160
|
case 11:
|
|
6065
6161
|
case 14:
|
|
6066
6162
|
case 15:
|
|
6163
|
+
commitHookEffectListUnmount(3, finishedWork, finishedWork.return);
|
|
6164
|
+
commitHookEffectListMount(3, finishedWork);
|
|
6067
6165
|
if (finishedWork.mode & 2)
|
|
6068
6166
|
try {
|
|
6069
6167
|
startLayoutEffectTimer(),
|
|
6070
|
-
commitHookEffectListUnmount(
|
|
6168
|
+
commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6071
6169
|
} finally {
|
|
6072
6170
|
recordLayoutEffectDuration(finishedWork);
|
|
6073
6171
|
}
|
|
6074
|
-
else commitHookEffectListUnmount(
|
|
6172
|
+
else commitHookEffectListUnmount(5, finishedWork, finishedWork.return);
|
|
6075
6173
|
return;
|
|
6076
6174
|
case 1:
|
|
6077
6175
|
return;
|
|
@@ -6115,9 +6213,6 @@ function commitWork(current, finishedWork) {
|
|
|
6115
6213
|
case 12:
|
|
6116
6214
|
return;
|
|
6117
6215
|
case 13:
|
|
6118
|
-
null !== finishedWork.memoizedState &&
|
|
6119
|
-
((globalMostRecentFallbackTime = now()),
|
|
6120
|
-
hideOrUnhideAllChildren(finishedWork.child, !0));
|
|
6121
6216
|
attachSuspenseRetryListeners(finishedWork);
|
|
6122
6217
|
return;
|
|
6123
6218
|
case 19:
|
|
@@ -6125,13 +6220,6 @@ function commitWork(current, finishedWork) {
|
|
|
6125
6220
|
return;
|
|
6126
6221
|
case 17:
|
|
6127
6222
|
return;
|
|
6128
|
-
case 22:
|
|
6129
|
-
case 23:
|
|
6130
|
-
hideOrUnhideAllChildren(
|
|
6131
|
-
finishedWork,
|
|
6132
|
-
null !== finishedWork.memoizedState
|
|
6133
|
-
);
|
|
6134
|
-
return;
|
|
6135
6223
|
}
|
|
6136
6224
|
throw Error(
|
|
6137
6225
|
"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue."
|
|
@@ -6203,6 +6291,87 @@ function commitMutationEffects(root, firstChild, committedLanes) {
|
|
|
6203
6291
|
else currentRef.current = null;
|
|
6204
6292
|
}
|
|
6205
6293
|
}
|
|
6294
|
+
if (flags & 4096)
|
|
6295
|
+
switch (firstChild.tag) {
|
|
6296
|
+
case 13:
|
|
6297
|
+
if (null !== firstChild.memoizedState) {
|
|
6298
|
+
var current$96 = firstChild.alternate;
|
|
6299
|
+
if (null === current$96 || null === current$96.memoizedState)
|
|
6300
|
+
globalMostRecentFallbackTime = now();
|
|
6301
|
+
}
|
|
6302
|
+
break;
|
|
6303
|
+
case 22:
|
|
6304
|
+
a: {
|
|
6305
|
+
committedLanes = firstChild;
|
|
6306
|
+
var isHidden = null !== firstChild.memoizedState;
|
|
6307
|
+
i = null;
|
|
6308
|
+
for (childToDelete = committedLanes; ; ) {
|
|
6309
|
+
if (5 === childToDelete.tag) {
|
|
6310
|
+
if (null === i) {
|
|
6311
|
+
i = childToDelete;
|
|
6312
|
+
var instance = childToDelete.stateNode;
|
|
6313
|
+
if (isHidden) {
|
|
6314
|
+
var instance$jscomp$0 = instance,
|
|
6315
|
+
viewConfig = instance$jscomp$0.viewConfig;
|
|
6316
|
+
var updatePayload = diffProperties(
|
|
6317
|
+
null,
|
|
6318
|
+
emptyObject,
|
|
6319
|
+
{ style: { display: "none" } },
|
|
6320
|
+
viewConfig.validAttributes
|
|
6321
|
+
);
|
|
6322
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6323
|
+
instance$jscomp$0._nativeTag,
|
|
6324
|
+
viewConfig.uiViewClassName,
|
|
6325
|
+
updatePayload
|
|
6326
|
+
);
|
|
6327
|
+
} else {
|
|
6328
|
+
var instance$jscomp$1 = childToDelete.stateNode,
|
|
6329
|
+
props = childToDelete.memoizedProps,
|
|
6330
|
+
viewConfig$jscomp$0 = instance$jscomp$1.viewConfig,
|
|
6331
|
+
prevProps = Object.assign({}, props, {
|
|
6332
|
+
style: [props.style, { display: "none" }]
|
|
6333
|
+
});
|
|
6334
|
+
var updatePayload$jscomp$0 = diffProperties(
|
|
6335
|
+
null,
|
|
6336
|
+
prevProps,
|
|
6337
|
+
props,
|
|
6338
|
+
viewConfig$jscomp$0.validAttributes
|
|
6339
|
+
);
|
|
6340
|
+
ReactNativePrivateInterface.UIManager.updateView(
|
|
6341
|
+
instance$jscomp$1._nativeTag,
|
|
6342
|
+
viewConfig$jscomp$0.uiViewClassName,
|
|
6343
|
+
updatePayload$jscomp$0
|
|
6344
|
+
);
|
|
6345
|
+
}
|
|
6346
|
+
}
|
|
6347
|
+
} else if (6 === childToDelete.tag) {
|
|
6348
|
+
if (null === i) throw Error("Not yet implemented.");
|
|
6349
|
+
} else if (
|
|
6350
|
+
((22 !== childToDelete.tag && 23 !== childToDelete.tag) ||
|
|
6351
|
+
null === childToDelete.memoizedState ||
|
|
6352
|
+
childToDelete === committedLanes) &&
|
|
6353
|
+
null !== childToDelete.child
|
|
6354
|
+
) {
|
|
6355
|
+
childToDelete.child.return = childToDelete;
|
|
6356
|
+
childToDelete = childToDelete.child;
|
|
6357
|
+
continue;
|
|
6358
|
+
}
|
|
6359
|
+
if (childToDelete === committedLanes) break;
|
|
6360
|
+
for (; null === childToDelete.sibling; ) {
|
|
6361
|
+
if (
|
|
6362
|
+
null === childToDelete.return ||
|
|
6363
|
+
childToDelete.return === committedLanes
|
|
6364
|
+
)
|
|
6365
|
+
break a;
|
|
6366
|
+
i === childToDelete && (i = null);
|
|
6367
|
+
childToDelete = childToDelete.return;
|
|
6368
|
+
}
|
|
6369
|
+
i === childToDelete && (i = null);
|
|
6370
|
+
childToDelete.sibling.return = childToDelete.return;
|
|
6371
|
+
childToDelete = childToDelete.sibling;
|
|
6372
|
+
}
|
|
6373
|
+
}
|
|
6374
|
+
}
|
|
6206
6375
|
switch (flags & 2054) {
|
|
6207
6376
|
case 2:
|
|
6208
6377
|
commitPlacement(firstChild);
|
|
@@ -6244,16 +6413,16 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6244
6413
|
if (
|
|
6245
6414
|
((root = nextEffect),
|
|
6246
6415
|
(committedLanes = root.child),
|
|
6247
|
-
0 !== (root.subtreeFlags &
|
|
6416
|
+
0 !== (root.subtreeFlags & 4420) && null !== committedLanes)
|
|
6248
6417
|
)
|
|
6249
6418
|
(committedLanes.return = root), (nextEffect = committedLanes);
|
|
6250
6419
|
else
|
|
6251
6420
|
for (root = finishedWork; null !== nextEffect; ) {
|
|
6252
6421
|
committedLanes = nextEffect;
|
|
6253
|
-
if (0 !== (committedLanes.flags &
|
|
6422
|
+
if (0 !== (committedLanes.flags & 4420)) {
|
|
6254
6423
|
var current = committedLanes.alternate;
|
|
6255
6424
|
try {
|
|
6256
|
-
if (0 !== (committedLanes.flags &
|
|
6425
|
+
if (0 !== (committedLanes.flags & 4420))
|
|
6257
6426
|
switch (committedLanes.tag) {
|
|
6258
6427
|
case 0:
|
|
6259
6428
|
case 11:
|
|
@@ -6261,11 +6430,11 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6261
6430
|
if (committedLanes.mode & 2)
|
|
6262
6431
|
try {
|
|
6263
6432
|
startLayoutEffectTimer(),
|
|
6264
|
-
commitHookEffectListMount(
|
|
6433
|
+
commitHookEffectListMount(5, committedLanes);
|
|
6265
6434
|
} finally {
|
|
6266
6435
|
recordLayoutEffectDuration(committedLanes);
|
|
6267
6436
|
}
|
|
6268
|
-
else commitHookEffectListMount(
|
|
6437
|
+
else commitHookEffectListMount(5, committedLanes);
|
|
6269
6438
|
break;
|
|
6270
6439
|
case 1:
|
|
6271
6440
|
var instance = committedLanes.stateNode;
|
|
@@ -6311,21 +6480,21 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6311
6480
|
commitUpdateQueue(committedLanes, updateQueue, instance);
|
|
6312
6481
|
break;
|
|
6313
6482
|
case 3:
|
|
6314
|
-
var updateQueue$
|
|
6315
|
-
if (null !== updateQueue$
|
|
6316
|
-
var instance$
|
|
6483
|
+
var updateQueue$91 = committedLanes.updateQueue;
|
|
6484
|
+
if (null !== updateQueue$91) {
|
|
6485
|
+
var instance$92 = null;
|
|
6317
6486
|
if (null !== committedLanes.child)
|
|
6318
6487
|
switch (committedLanes.child.tag) {
|
|
6319
6488
|
case 5:
|
|
6320
|
-
instance$
|
|
6489
|
+
instance$92 = committedLanes.child.stateNode;
|
|
6321
6490
|
break;
|
|
6322
6491
|
case 1:
|
|
6323
|
-
instance$
|
|
6492
|
+
instance$92 = committedLanes.child.stateNode;
|
|
6324
6493
|
}
|
|
6325
6494
|
commitUpdateQueue(
|
|
6326
6495
|
committedLanes,
|
|
6327
|
-
updateQueue$
|
|
6328
|
-
instance$
|
|
6496
|
+
updateQueue$91,
|
|
6497
|
+
instance$92
|
|
6329
6498
|
);
|
|
6330
6499
|
}
|
|
6331
6500
|
break;
|
|
@@ -6340,7 +6509,7 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6340
6509
|
onCommit = _finishedWork$memoize2.onCommit,
|
|
6341
6510
|
onRender = _finishedWork$memoize2.onRender,
|
|
6342
6511
|
effectDuration = committedLanes.stateNode.effectDuration;
|
|
6343
|
-
instance$
|
|
6512
|
+
instance$92 = commitTime;
|
|
6344
6513
|
current = null === current ? "mount" : "update";
|
|
6345
6514
|
currentUpdateIsNested && (current = "nested-update");
|
|
6346
6515
|
"function" === typeof onRender &&
|
|
@@ -6350,14 +6519,14 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6350
6519
|
committedLanes.actualDuration,
|
|
6351
6520
|
committedLanes.treeBaseDuration,
|
|
6352
6521
|
committedLanes.actualStartTime,
|
|
6353
|
-
instance$
|
|
6522
|
+
instance$92
|
|
6354
6523
|
);
|
|
6355
6524
|
"function" === typeof onCommit &&
|
|
6356
6525
|
onCommit(
|
|
6357
6526
|
committedLanes.memoizedProps.id,
|
|
6358
6527
|
current,
|
|
6359
6528
|
effectDuration,
|
|
6360
|
-
instance$
|
|
6529
|
+
instance$92
|
|
6361
6530
|
);
|
|
6362
6531
|
enqueuePendingPassiveProfilerEffect(committedLanes);
|
|
6363
6532
|
var parentFiber = committedLanes.return;
|
|
@@ -6387,27 +6556,27 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6387
6556
|
);
|
|
6388
6557
|
}
|
|
6389
6558
|
if (committedLanes.flags & 256) {
|
|
6390
|
-
instance$
|
|
6559
|
+
instance$92 = void 0;
|
|
6391
6560
|
current = committedLanes;
|
|
6392
6561
|
var ref = current.ref;
|
|
6393
6562
|
if (null !== ref) {
|
|
6394
6563
|
var instance$jscomp$0 = current.stateNode;
|
|
6395
6564
|
switch (current.tag) {
|
|
6396
6565
|
case 5:
|
|
6397
|
-
instance$
|
|
6566
|
+
instance$92 = instance$jscomp$0;
|
|
6398
6567
|
break;
|
|
6399
6568
|
default:
|
|
6400
|
-
instance$
|
|
6569
|
+
instance$92 = instance$jscomp$0;
|
|
6401
6570
|
}
|
|
6402
6571
|
if ("function" === typeof ref)
|
|
6403
6572
|
if (current.mode & 2)
|
|
6404
6573
|
try {
|
|
6405
|
-
startLayoutEffectTimer(), ref(instance$
|
|
6574
|
+
startLayoutEffectTimer(), ref(instance$92);
|
|
6406
6575
|
} finally {
|
|
6407
6576
|
recordLayoutEffectDuration(current);
|
|
6408
6577
|
}
|
|
6409
|
-
else ref(instance$
|
|
6410
|
-
else ref.current = instance$
|
|
6578
|
+
else ref(instance$92);
|
|
6579
|
+
else ref.current = instance$92;
|
|
6411
6580
|
}
|
|
6412
6581
|
}
|
|
6413
6582
|
} catch (error) {
|
|
@@ -6422,10 +6591,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6422
6591
|
nextEffect = null;
|
|
6423
6592
|
break;
|
|
6424
6593
|
}
|
|
6425
|
-
instance$
|
|
6426
|
-
if (null !== instance$
|
|
6427
|
-
instance$
|
|
6428
|
-
nextEffect = instance$
|
|
6594
|
+
instance$92 = committedLanes.sibling;
|
|
6595
|
+
if (null !== instance$92) {
|
|
6596
|
+
instance$92.return = committedLanes.return;
|
|
6597
|
+
nextEffect = instance$92;
|
|
6429
6598
|
break;
|
|
6430
6599
|
}
|
|
6431
6600
|
nextEffect = committedLanes.return;
|
|
@@ -6461,7 +6630,7 @@ var ceil = Math.ceil,
|
|
|
6461
6630
|
currentEventTime = -1,
|
|
6462
6631
|
currentEventTransitionLane = 0;
|
|
6463
6632
|
function requestEventTime() {
|
|
6464
|
-
return 0 !== (executionContext &
|
|
6633
|
+
return 0 !== (executionContext & 6)
|
|
6465
6634
|
? now()
|
|
6466
6635
|
: -1 !== currentEventTime
|
|
6467
6636
|
? currentEventTime
|
|
@@ -6469,7 +6638,7 @@ function requestEventTime() {
|
|
|
6469
6638
|
}
|
|
6470
6639
|
function requestUpdateLane(fiber) {
|
|
6471
6640
|
if (0 === (fiber.mode & 1)) return 1;
|
|
6472
|
-
if (0 !== (executionContext &
|
|
6641
|
+
if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
|
|
6473
6642
|
return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
|
|
6474
6643
|
if (0 !== ReactCurrentBatchConfig.transition)
|
|
6475
6644
|
return (
|
|
@@ -6495,18 +6664,15 @@ function scheduleUpdateOnFiber(fiber, lane, eventTime) {
|
|
|
6495
6664
|
isDevToolsPresent && addFiberToLanesMap(root, fiber, lane);
|
|
6496
6665
|
markRootUpdated(root, lane, eventTime);
|
|
6497
6666
|
root === workInProgressRoot &&
|
|
6498
|
-
(0 === (executionContext &
|
|
6667
|
+
(0 === (executionContext & 2) && (workInProgressRootUpdatedLanes |= lane),
|
|
6499
6668
|
4 === workInProgressRootExitStatus &&
|
|
6500
6669
|
markRootSuspended$1(root, workInProgressRootRenderLanes));
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6508
|
-
includesLegacySyncCallbacks && flushSyncCallbacks()))
|
|
6509
|
-
: ensureRootIsScheduled(root, eventTime);
|
|
6670
|
+
ensureRootIsScheduled(root, eventTime);
|
|
6671
|
+
1 === lane &&
|
|
6672
|
+
0 === executionContext &&
|
|
6673
|
+
0 === (fiber.mode & 1) &&
|
|
6674
|
+
((workInProgressRootRenderTargetTime = now() + 500),
|
|
6675
|
+
includesLegacySyncCallbacks && flushSyncCallbacks());
|
|
6510
6676
|
return root;
|
|
6511
6677
|
}
|
|
6512
6678
|
function markUpdateLaneFromFiberToRoot(sourceFiber, lane) {
|
|
@@ -6584,7 +6750,7 @@ function ensureRootIsScheduled(root, currentTime) {
|
|
|
6584
6750
|
default:
|
|
6585
6751
|
existingCallbackNode = NormalPriority;
|
|
6586
6752
|
}
|
|
6587
|
-
existingCallbackNode = scheduleCallback(
|
|
6753
|
+
existingCallbackNode = scheduleCallback$1(
|
|
6588
6754
|
existingCallbackNode,
|
|
6589
6755
|
performConcurrentWorkOnRoot.bind(null, root)
|
|
6590
6756
|
);
|
|
@@ -6597,7 +6763,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6597
6763
|
nestedUpdateScheduled = currentUpdateIsNested = !1;
|
|
6598
6764
|
currentEventTime = -1;
|
|
6599
6765
|
currentEventTransitionLane = 0;
|
|
6600
|
-
if (0 !== (executionContext &
|
|
6766
|
+
if (0 !== (executionContext & 6))
|
|
6601
6767
|
throw Error("Should not already be working.");
|
|
6602
6768
|
var originalCallbackNode = root.callbackNode;
|
|
6603
6769
|
if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode)
|
|
@@ -6607,16 +6773,16 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6607
6773
|
root === workInProgressRoot ? workInProgressRootRenderLanes : 0
|
|
6608
6774
|
);
|
|
6609
6775
|
if (0 === lanes) return null;
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6776
|
+
if (
|
|
6777
|
+
includesBlockingLane(root, lanes) ||
|
|
6778
|
+
0 !== (lanes & root.expiredLanes) ||
|
|
6779
|
+
didTimeout
|
|
6780
|
+
)
|
|
6781
|
+
didTimeout = renderRootSync(root, lanes);
|
|
6782
|
+
else {
|
|
6617
6783
|
didTimeout = lanes;
|
|
6618
|
-
|
|
6619
|
-
executionContext |=
|
|
6784
|
+
var prevExecutionContext = executionContext;
|
|
6785
|
+
executionContext |= 2;
|
|
6620
6786
|
var prevDispatcher = pushDispatcher();
|
|
6621
6787
|
if (
|
|
6622
6788
|
workInProgressRoot !== root ||
|
|
@@ -6642,28 +6808,44 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6642
6808
|
while (1);
|
|
6643
6809
|
resetContextDependencies();
|
|
6644
6810
|
ReactCurrentDispatcher$2.current = prevDispatcher;
|
|
6645
|
-
executionContext =
|
|
6811
|
+
executionContext = prevExecutionContext;
|
|
6646
6812
|
null !== workInProgress
|
|
6647
6813
|
? (didTimeout = 0)
|
|
6648
6814
|
: ((workInProgressRoot = null),
|
|
6649
6815
|
(workInProgressRootRenderLanes = 0),
|
|
6650
6816
|
(didTimeout = workInProgressRootExitStatus));
|
|
6651
|
-
}
|
|
6817
|
+
}
|
|
6652
6818
|
if (0 !== didTimeout) {
|
|
6653
6819
|
2 === didTimeout &&
|
|
6654
|
-
((
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
((lanes = JSCompiler_inline_result),
|
|
6659
|
-
(didTimeout = renderRootSync(root, JSCompiler_inline_result))));
|
|
6820
|
+
((prevExecutionContext = getLanesToRetrySynchronouslyOnError(root)),
|
|
6821
|
+
0 !== prevExecutionContext &&
|
|
6822
|
+
((lanes = prevExecutionContext),
|
|
6823
|
+
(didTimeout = recoverFromConcurrentError(root, prevExecutionContext))));
|
|
6660
6824
|
if (1 === didTimeout)
|
|
6661
6825
|
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6662
6826
|
prepareFreshStack(root, 0),
|
|
6663
6827
|
markRootSuspended$1(root, lanes),
|
|
6664
6828
|
ensureRootIsScheduled(root, now()),
|
|
6665
6829
|
originalCallbackNode);
|
|
6666
|
-
|
|
6830
|
+
prevDispatcher = !includesBlockingLane(root, lanes);
|
|
6831
|
+
prevExecutionContext = root.current.alternate;
|
|
6832
|
+
if (
|
|
6833
|
+
prevDispatcher &&
|
|
6834
|
+
!isRenderConsistentWithExternalStores(prevExecutionContext) &&
|
|
6835
|
+
((didTimeout = renderRootSync(root, lanes)),
|
|
6836
|
+
2 === didTimeout &&
|
|
6837
|
+
((prevDispatcher = getLanesToRetrySynchronouslyOnError(root)),
|
|
6838
|
+
0 !== prevDispatcher &&
|
|
6839
|
+
((lanes = prevDispatcher),
|
|
6840
|
+
(didTimeout = recoverFromConcurrentError(root, prevDispatcher)))),
|
|
6841
|
+
1 === didTimeout)
|
|
6842
|
+
)
|
|
6843
|
+
throw ((originalCallbackNode = workInProgressRootFatalError),
|
|
6844
|
+
prepareFreshStack(root, 0),
|
|
6845
|
+
markRootSuspended$1(root, lanes),
|
|
6846
|
+
ensureRootIsScheduled(root, now()),
|
|
6847
|
+
originalCallbackNode);
|
|
6848
|
+
root.finishedWork = prevExecutionContext;
|
|
6667
6849
|
root.finishedLanes = lanes;
|
|
6668
6850
|
switch (didTimeout) {
|
|
6669
6851
|
case 0:
|
|
@@ -6680,10 +6862,10 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6680
6862
|
10 < didTimeout)
|
|
6681
6863
|
) {
|
|
6682
6864
|
if (0 !== getNextLanes(root, 0)) break;
|
|
6683
|
-
|
|
6684
|
-
if ((
|
|
6865
|
+
prevExecutionContext = root.suspendedLanes;
|
|
6866
|
+
if ((prevExecutionContext & lanes) !== lanes) {
|
|
6685
6867
|
requestEventTime();
|
|
6686
|
-
root.pingedLanes |= root.suspendedLanes &
|
|
6868
|
+
root.pingedLanes |= root.suspendedLanes & prevExecutionContext;
|
|
6687
6869
|
break;
|
|
6688
6870
|
}
|
|
6689
6871
|
root.timeoutHandle = scheduleTimeout(
|
|
@@ -6698,14 +6880,14 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6698
6880
|
markRootSuspended$1(root, lanes);
|
|
6699
6881
|
if ((lanes & 4194240) === lanes) break;
|
|
6700
6882
|
didTimeout = root.eventTimes;
|
|
6701
|
-
for (
|
|
6883
|
+
for (prevExecutionContext = -1; 0 < lanes; )
|
|
6702
6884
|
(memoizedUpdaters = 31 - clz32(lanes)),
|
|
6703
6885
|
(prevDispatcher = 1 << memoizedUpdaters),
|
|
6704
6886
|
(memoizedUpdaters = didTimeout[memoizedUpdaters]),
|
|
6705
|
-
memoizedUpdaters >
|
|
6706
|
-
(
|
|
6887
|
+
memoizedUpdaters > prevExecutionContext &&
|
|
6888
|
+
(prevExecutionContext = memoizedUpdaters),
|
|
6707
6889
|
(lanes &= ~prevDispatcher);
|
|
6708
|
-
lanes =
|
|
6890
|
+
lanes = prevExecutionContext;
|
|
6709
6891
|
lanes = now() - lanes;
|
|
6710
6892
|
lanes =
|
|
6711
6893
|
(120 > lanes
|
|
@@ -6742,6 +6924,48 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6742
6924
|
? performConcurrentWorkOnRoot.bind(null, root)
|
|
6743
6925
|
: null;
|
|
6744
6926
|
}
|
|
6927
|
+
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6928
|
+
var prevExecutionContext = executionContext;
|
|
6929
|
+
executionContext |= 8;
|
|
6930
|
+
root.hydrate && (root.hydrate = !1);
|
|
6931
|
+
root = renderRootSync(root, errorRetryLanes);
|
|
6932
|
+
executionContext = prevExecutionContext;
|
|
6933
|
+
return root;
|
|
6934
|
+
}
|
|
6935
|
+
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
6936
|
+
for (var node = finishedWork; ; ) {
|
|
6937
|
+
if (node.flags & 8192) {
|
|
6938
|
+
var updateQueue = node.updateQueue;
|
|
6939
|
+
if (
|
|
6940
|
+
null !== updateQueue &&
|
|
6941
|
+
((updateQueue = updateQueue.stores), null !== updateQueue)
|
|
6942
|
+
)
|
|
6943
|
+
for (var i = 0; i < updateQueue.length; i++) {
|
|
6944
|
+
var check = updateQueue[i],
|
|
6945
|
+
getSnapshot = check.getSnapshot;
|
|
6946
|
+
check = check.value;
|
|
6947
|
+
try {
|
|
6948
|
+
if (!objectIs(getSnapshot(), check)) return !1;
|
|
6949
|
+
} catch (error) {
|
|
6950
|
+
return !1;
|
|
6951
|
+
}
|
|
6952
|
+
}
|
|
6953
|
+
}
|
|
6954
|
+
updateQueue = node.child;
|
|
6955
|
+
if (node.subtreeFlags & 8192 && null !== updateQueue)
|
|
6956
|
+
(updateQueue.return = node), (node = updateQueue);
|
|
6957
|
+
else {
|
|
6958
|
+
if (node === finishedWork) break;
|
|
6959
|
+
for (; null === node.sibling; ) {
|
|
6960
|
+
if (null === node.return || node.return === finishedWork) return !0;
|
|
6961
|
+
node = node.return;
|
|
6962
|
+
}
|
|
6963
|
+
node.sibling.return = node.return;
|
|
6964
|
+
node = node.sibling;
|
|
6965
|
+
}
|
|
6966
|
+
}
|
|
6967
|
+
return !0;
|
|
6968
|
+
}
|
|
6745
6969
|
function markRootSuspended$1(root, suspendedLanes) {
|
|
6746
6970
|
suspendedLanes &= ~workInProgressRootPingedLanes;
|
|
6747
6971
|
suspendedLanes &= ~workInProgressRootUpdatedLanes;
|
|
@@ -6757,18 +6981,20 @@ function markRootSuspended$1(root, suspendedLanes) {
|
|
|
6757
6981
|
function performSyncWorkOnRoot(root) {
|
|
6758
6982
|
currentUpdateIsNested = nestedUpdateScheduled;
|
|
6759
6983
|
nestedUpdateScheduled = !1;
|
|
6760
|
-
if (0 !== (executionContext &
|
|
6984
|
+
if (0 !== (executionContext & 6))
|
|
6761
6985
|
throw Error("Should not already be working.");
|
|
6762
6986
|
flushPassiveEffects();
|
|
6763
6987
|
var lanes = getNextLanes(root, 0);
|
|
6764
6988
|
if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null;
|
|
6765
6989
|
var exitStatus = renderRootSync(root, lanes);
|
|
6766
6990
|
if (0 !== root.tag && 2 === exitStatus) {
|
|
6767
|
-
|
|
6991
|
+
var prevExecutionContext = executionContext;
|
|
6992
|
+
executionContext |= 8;
|
|
6768
6993
|
root.hydrate && (root.hydrate = !1);
|
|
6769
6994
|
var errorRetryLanes = getLanesToRetrySynchronouslyOnError(root);
|
|
6770
6995
|
0 !== errorRetryLanes &&
|
|
6771
6996
|
((lanes = errorRetryLanes), (exitStatus = renderRootSync(root, lanes)));
|
|
6997
|
+
executionContext = prevExecutionContext;
|
|
6772
6998
|
}
|
|
6773
6999
|
if (1 === exitStatus)
|
|
6774
7000
|
throw ((exitStatus = workInProgressRootFatalError),
|
|
@@ -6891,7 +7117,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6891
7117
|
sourceFiber = erroredWork,
|
|
6892
7118
|
value = thrownValue;
|
|
6893
7119
|
thrownValue = workInProgressRootRenderLanes;
|
|
6894
|
-
sourceFiber.flags |=
|
|
7120
|
+
sourceFiber.flags |= 16384;
|
|
6895
7121
|
isDevToolsPresent && restorePendingUpdaters(root, thrownValue);
|
|
6896
7122
|
if (
|
|
6897
7123
|
null !== value &&
|
|
@@ -6919,19 +7145,17 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6919
7145
|
var JSCompiler_temp;
|
|
6920
7146
|
if ((JSCompiler_temp = 13 === workInProgress$34.tag)) {
|
|
6921
7147
|
var nextState = workInProgress$34.memoizedState;
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
var props = workInProgress$34.memoizedProps;
|
|
6926
|
-
JSCompiler_temp =
|
|
6927
|
-
void 0 === props.fallback
|
|
6928
|
-
? !1
|
|
6929
|
-
: !0 !== props.unstable_avoidThisFallback
|
|
7148
|
+
JSCompiler_temp =
|
|
7149
|
+
null !== nextState
|
|
7150
|
+
? null !== nextState.dehydrated
|
|
6930
7151
|
? !0
|
|
6931
|
-
:
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
7152
|
+
: !1
|
|
7153
|
+
: !0 !==
|
|
7154
|
+
workInProgress$34.memoizedProps.unstable_avoidThisFallback
|
|
7155
|
+
? !0
|
|
7156
|
+
: hasInvisibleParentBoundary
|
|
7157
|
+
? !1
|
|
7158
|
+
: !0;
|
|
6935
7159
|
}
|
|
6936
7160
|
if (JSCompiler_temp) {
|
|
6937
7161
|
var wakeables = workInProgress$34.updateQueue;
|
|
@@ -6945,8 +7169,8 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6945
7169
|
workInProgress$34 !== returnFiber
|
|
6946
7170
|
) {
|
|
6947
7171
|
workInProgress$34.flags |= 128;
|
|
6948
|
-
sourceFiber.flags |=
|
|
6949
|
-
sourceFiber.flags &= -
|
|
7172
|
+
sourceFiber.flags |= 65536;
|
|
7173
|
+
sourceFiber.flags &= -26437;
|
|
6950
7174
|
if (1 === sourceFiber.tag)
|
|
6951
7175
|
if (null === sourceFiber.alternate) sourceFiber.tag = 17;
|
|
6952
7176
|
else {
|
|
@@ -6978,7 +7202,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6978
7202
|
isDevToolsPresent && restorePendingUpdaters(root, sourceFiber);
|
|
6979
7203
|
wakeable.then(ping, ping);
|
|
6980
7204
|
}
|
|
6981
|
-
workInProgress$34.flags |=
|
|
7205
|
+
workInProgress$34.flags |= 32768;
|
|
6982
7206
|
workInProgress$34.lanes = thrownValue;
|
|
6983
7207
|
break a;
|
|
6984
7208
|
}
|
|
@@ -6997,7 +7221,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
6997
7221
|
switch (workInProgress$34.tag) {
|
|
6998
7222
|
case 3:
|
|
6999
7223
|
root = value;
|
|
7000
|
-
workInProgress$34.flags |=
|
|
7224
|
+
workInProgress$34.flags |= 32768;
|
|
7001
7225
|
thrownValue &= -thrownValue;
|
|
7002
7226
|
workInProgress$34.lanes |= thrownValue;
|
|
7003
7227
|
var update$35 = createRootErrorUpdate(
|
|
@@ -7019,7 +7243,7 @@ function handleError(root$jscomp$0, thrownValue) {
|
|
|
7019
7243
|
(null === legacyErrorBoundariesThatAlreadyFailed ||
|
|
7020
7244
|
!legacyErrorBoundariesThatAlreadyFailed.has(instance))))
|
|
7021
7245
|
) {
|
|
7022
|
-
workInProgress$34.flags |=
|
|
7246
|
+
workInProgress$34.flags |= 32768;
|
|
7023
7247
|
thrownValue &= -thrownValue;
|
|
7024
7248
|
workInProgress$34.lanes |= thrownValue;
|
|
7025
7249
|
var update$38 = createClassErrorUpdate(
|
|
@@ -7052,7 +7276,7 @@ function pushDispatcher() {
|
|
|
7052
7276
|
}
|
|
7053
7277
|
function renderRootSync(root, lanes) {
|
|
7054
7278
|
var prevExecutionContext = executionContext;
|
|
7055
|
-
executionContext |=
|
|
7279
|
+
executionContext |= 2;
|
|
7056
7280
|
var prevDispatcher = pushDispatcher();
|
|
7057
7281
|
if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes) {
|
|
7058
7282
|
if (isDevToolsPresent) {
|
|
@@ -7109,7 +7333,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7109
7333
|
do {
|
|
7110
7334
|
var current = completedWork.alternate;
|
|
7111
7335
|
unitOfWork = completedWork.return;
|
|
7112
|
-
if (0 === (completedWork.flags &
|
|
7336
|
+
if (0 === (completedWork.flags & 16384)) {
|
|
7113
7337
|
if (0 === (completedWork.mode & 2))
|
|
7114
7338
|
current = completeWork(current, completedWork, subtreeRenderLanes);
|
|
7115
7339
|
else {
|
|
@@ -7126,7 +7350,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7126
7350
|
} else {
|
|
7127
7351
|
current = unwindWork(completedWork);
|
|
7128
7352
|
if (null !== current) {
|
|
7129
|
-
current.flags &=
|
|
7353
|
+
current.flags &= 16383;
|
|
7130
7354
|
workInProgress = current;
|
|
7131
7355
|
return;
|
|
7132
7356
|
}
|
|
@@ -7138,7 +7362,7 @@ function completeUnitOfWork(unitOfWork) {
|
|
|
7138
7362
|
completedWork.actualDuration = current;
|
|
7139
7363
|
}
|
|
7140
7364
|
null !== unitOfWork &&
|
|
7141
|
-
((unitOfWork.flags |=
|
|
7365
|
+
((unitOfWork.flags |= 16384),
|
|
7142
7366
|
(unitOfWork.subtreeFlags = 0),
|
|
7143
7367
|
(unitOfWork.deletions = null));
|
|
7144
7368
|
}
|
|
@@ -7167,7 +7391,7 @@ function commitRoot(root) {
|
|
|
7167
7391
|
function commitRootImpl(root, renderPriorityLevel) {
|
|
7168
7392
|
do flushPassiveEffects();
|
|
7169
7393
|
while (null !== rootWithPendingPassiveEffects);
|
|
7170
|
-
if (0 !== (executionContext &
|
|
7394
|
+
if (0 !== (executionContext & 6))
|
|
7171
7395
|
throw Error("Should not already be working.");
|
|
7172
7396
|
var finishedWork = root.finishedWork,
|
|
7173
7397
|
lanes = root.finishedLanes;
|
|
@@ -7189,7 +7413,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7189
7413
|
0 === (finishedWork.flags & 1040)) ||
|
|
7190
7414
|
rootDoesHavePassiveEffects ||
|
|
7191
7415
|
((rootDoesHavePassiveEffects = !0),
|
|
7192
|
-
scheduleCallback(NormalPriority, function() {
|
|
7416
|
+
scheduleCallback$1(NormalPriority, function() {
|
|
7193
7417
|
flushPassiveEffects();
|
|
7194
7418
|
return null;
|
|
7195
7419
|
}));
|
|
@@ -7200,7 +7424,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7200
7424
|
var previousPriority = currentUpdatePriority;
|
|
7201
7425
|
currentUpdatePriority = 1;
|
|
7202
7426
|
var prevExecutionContext = executionContext;
|
|
7203
|
-
executionContext |=
|
|
7427
|
+
executionContext |= 4;
|
|
7204
7428
|
ReactCurrentOwner$2.current = null;
|
|
7205
7429
|
commitBeforeMutationEffects(root, finishedWork);
|
|
7206
7430
|
commitTime = now$1();
|
|
@@ -7218,12 +7442,6 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7218
7442
|
(pendingPassiveEffectsLanes = lanes));
|
|
7219
7443
|
remainingLanes = root.pendingLanes;
|
|
7220
7444
|
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
|
|
7221
|
-
0 !== (remainingLanes & 1)
|
|
7222
|
-
? ((nestedUpdateScheduled = !0),
|
|
7223
|
-
root === rootWithNestedUpdates
|
|
7224
|
-
? nestedUpdateCount++
|
|
7225
|
-
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7226
|
-
: (nestedUpdateCount = 0);
|
|
7227
7445
|
onCommitRoot(finishedWork.stateNode, renderPriorityLevel);
|
|
7228
7446
|
isDevToolsPresent && root.memoizedUpdaters.clear();
|
|
7229
7447
|
ensureRootIsScheduled(root, now());
|
|
@@ -7232,10 +7450,16 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7232
7450
|
(root = firstUncaughtError),
|
|
7233
7451
|
(firstUncaughtError = null),
|
|
7234
7452
|
root);
|
|
7235
|
-
if (0 !== (executionContext & 4)) return null;
|
|
7236
7453
|
0 !== (pendingPassiveEffectsLanes & 1) &&
|
|
7237
7454
|
0 !== root.tag &&
|
|
7238
7455
|
flushPassiveEffects();
|
|
7456
|
+
remainingLanes = root.pendingLanes;
|
|
7457
|
+
0 !== (remainingLanes & 1)
|
|
7458
|
+
? ((nestedUpdateScheduled = !0),
|
|
7459
|
+
root === rootWithNestedUpdates
|
|
7460
|
+
? nestedUpdateCount++
|
|
7461
|
+
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
|
|
7462
|
+
: (nestedUpdateCount = 0);
|
|
7239
7463
|
flushSyncCallbacks();
|
|
7240
7464
|
return null;
|
|
7241
7465
|
}
|
|
@@ -7253,10 +7477,10 @@ function flushPassiveEffects() {
|
|
|
7253
7477
|
renderPriority = rootWithPendingPassiveEffects;
|
|
7254
7478
|
rootWithPendingPassiveEffects = null;
|
|
7255
7479
|
pendingPassiveEffectsLanes = 0;
|
|
7256
|
-
if (0 !== (executionContext &
|
|
7480
|
+
if (0 !== (executionContext & 6))
|
|
7257
7481
|
throw Error("Cannot flush passive effects while already rendering.");
|
|
7258
7482
|
var prevExecutionContext = executionContext;
|
|
7259
|
-
executionContext |=
|
|
7483
|
+
executionContext |= 4;
|
|
7260
7484
|
for (nextEffect = renderPriority.current; null !== nextEffect; ) {
|
|
7261
7485
|
var fiber = nextEffect,
|
|
7262
7486
|
child = fiber.child;
|
|
@@ -7274,9 +7498,9 @@ function flushPassiveEffects() {
|
|
|
7274
7498
|
case 15:
|
|
7275
7499
|
current.mode & 2
|
|
7276
7500
|
? ((passiveEffectStartTime = now$1()),
|
|
7277
|
-
commitHookEffectListUnmount(
|
|
7501
|
+
commitHookEffectListUnmount(8, current, fiber),
|
|
7278
7502
|
recordPassiveEffectDuration(current))
|
|
7279
|
-
: commitHookEffectListUnmount(
|
|
7503
|
+
: commitHookEffectListUnmount(8, current, fiber);
|
|
7280
7504
|
}
|
|
7281
7505
|
var child$jscomp$0 = fiber$jscomp$0.child;
|
|
7282
7506
|
if (null !== child$jscomp$0)
|
|
@@ -7328,9 +7552,9 @@ function flushPassiveEffects() {
|
|
|
7328
7552
|
case 15:
|
|
7329
7553
|
i.mode & 2
|
|
7330
7554
|
? ((passiveEffectStartTime = now$1()),
|
|
7331
|
-
commitHookEffectListUnmount(
|
|
7555
|
+
commitHookEffectListUnmount(9, i, i.return),
|
|
7332
7556
|
recordPassiveEffectDuration(i))
|
|
7333
|
-
: commitHookEffectListUnmount(
|
|
7557
|
+
: commitHookEffectListUnmount(9, i, i.return);
|
|
7334
7558
|
}
|
|
7335
7559
|
var sibling$jscomp$0 = fiber.sibling;
|
|
7336
7560
|
if (null !== sibling$jscomp$0) {
|
|
@@ -7359,11 +7583,11 @@ function flushPassiveEffects() {
|
|
|
7359
7583
|
if (fiberToDelete.mode & 2) {
|
|
7360
7584
|
passiveEffectStartTime = now$1();
|
|
7361
7585
|
try {
|
|
7362
|
-
commitHookEffectListMount(
|
|
7586
|
+
commitHookEffectListMount(9, fiberToDelete);
|
|
7363
7587
|
} finally {
|
|
7364
7588
|
recordPassiveEffectDuration(fiberToDelete);
|
|
7365
7589
|
}
|
|
7366
|
-
} else commitHookEffectListMount(
|
|
7590
|
+
} else commitHookEffectListMount(9, fiberToDelete);
|
|
7367
7591
|
}
|
|
7368
7592
|
} catch (error) {
|
|
7369
7593
|
captureCommitPhaseError(deletions, deletions.return, error);
|
|
@@ -7444,7 +7668,7 @@ function enqueuePendingPassiveProfilerEffect(fiber) {
|
|
|
7444
7668
|
pendingPassiveProfilerEffects.push(fiber);
|
|
7445
7669
|
rootDoesHavePassiveEffects ||
|
|
7446
7670
|
((rootDoesHavePassiveEffects = !0),
|
|
7447
|
-
scheduleCallback(NormalPriority, function() {
|
|
7671
|
+
scheduleCallback$1(NormalPriority, function() {
|
|
7448
7672
|
flushPassiveEffects();
|
|
7449
7673
|
return null;
|
|
7450
7674
|
}));
|
|
@@ -7539,7 +7763,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
|
7539
7763
|
}
|
|
7540
7764
|
var beginWork$1;
|
|
7541
7765
|
beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
7542
|
-
var updateLanes = workInProgress.lanes;
|
|
7543
7766
|
if (null !== current)
|
|
7544
7767
|
if (
|
|
7545
7768
|
current.memoizedProps !== workInProgress.pendingProps ||
|
|
@@ -7547,165 +7770,98 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7547
7770
|
)
|
|
7548
7771
|
didReceiveUpdate = !0;
|
|
7549
7772
|
else {
|
|
7550
|
-
if (
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
pushContextProvider(workInProgress);
|
|
7562
|
-
break;
|
|
7563
|
-
case 4:
|
|
7564
|
-
pushHostContainer(
|
|
7565
|
-
workInProgress,
|
|
7566
|
-
workInProgress.stateNode.containerInfo
|
|
7567
|
-
);
|
|
7568
|
-
break;
|
|
7569
|
-
case 10:
|
|
7570
|
-
updateLanes = workInProgress.type._context;
|
|
7571
|
-
var nextValue = workInProgress.memoizedProps.value;
|
|
7572
|
-
push(valueCursor, updateLanes._currentValue);
|
|
7573
|
-
updateLanes._currentValue = nextValue;
|
|
7574
|
-
break;
|
|
7575
|
-
case 12:
|
|
7576
|
-
0 !== (renderLanes & workInProgress.childLanes) &&
|
|
7577
|
-
(workInProgress.flags |= 4);
|
|
7578
|
-
updateLanes = workInProgress.stateNode;
|
|
7579
|
-
updateLanes.effectDuration = 0;
|
|
7580
|
-
updateLanes.passiveEffectDuration = 0;
|
|
7581
|
-
break;
|
|
7582
|
-
case 13:
|
|
7583
|
-
if (null !== workInProgress.memoizedState) {
|
|
7584
|
-
if (0 !== (renderLanes & workInProgress.child.childLanes))
|
|
7585
|
-
return updateSuspenseComponent(
|
|
7586
|
-
current,
|
|
7587
|
-
workInProgress,
|
|
7588
|
-
renderLanes
|
|
7589
|
-
);
|
|
7590
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
7591
|
-
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
7592
|
-
current,
|
|
7593
|
-
workInProgress,
|
|
7594
|
-
renderLanes
|
|
7595
|
-
);
|
|
7596
|
-
return null !== workInProgress ? workInProgress.sibling : null;
|
|
7597
|
-
}
|
|
7598
|
-
push(suspenseStackCursor, suspenseStackCursor.current & 1);
|
|
7599
|
-
break;
|
|
7600
|
-
case 19:
|
|
7601
|
-
updateLanes = 0 !== (renderLanes & workInProgress.childLanes);
|
|
7602
|
-
if (0 !== (current.flags & 128)) {
|
|
7603
|
-
if (updateLanes)
|
|
7604
|
-
return updateSuspenseListComponent(
|
|
7605
|
-
current,
|
|
7606
|
-
workInProgress,
|
|
7607
|
-
renderLanes
|
|
7608
|
-
);
|
|
7609
|
-
workInProgress.flags |= 128;
|
|
7610
|
-
}
|
|
7611
|
-
nextValue = workInProgress.memoizedState;
|
|
7612
|
-
null !== nextValue &&
|
|
7613
|
-
((nextValue.rendering = null),
|
|
7614
|
-
(nextValue.tail = null),
|
|
7615
|
-
(nextValue.lastEffect = null));
|
|
7616
|
-
push(suspenseStackCursor, suspenseStackCursor.current);
|
|
7617
|
-
if (updateLanes) break;
|
|
7618
|
-
else return null;
|
|
7619
|
-
case 22:
|
|
7620
|
-
case 23:
|
|
7621
|
-
return (
|
|
7622
|
-
(workInProgress.lanes = 0),
|
|
7623
|
-
updateOffscreenComponent(current, workInProgress, renderLanes)
|
|
7624
|
-
);
|
|
7625
|
-
}
|
|
7626
|
-
return bailoutOnAlreadyFinishedWork(
|
|
7627
|
-
current,
|
|
7628
|
-
workInProgress,
|
|
7629
|
-
renderLanes
|
|
7773
|
+
if (
|
|
7774
|
+
0 === (current.lanes & renderLanes) &&
|
|
7775
|
+
0 === (workInProgress.flags & 128)
|
|
7776
|
+
)
|
|
7777
|
+
return (
|
|
7778
|
+
(didReceiveUpdate = !1),
|
|
7779
|
+
attemptEarlyBailoutIfNoScheduledUpdate(
|
|
7780
|
+
current,
|
|
7781
|
+
workInProgress,
|
|
7782
|
+
renderLanes
|
|
7783
|
+
)
|
|
7630
7784
|
);
|
|
7631
|
-
|
|
7632
|
-
didReceiveUpdate = 0 !== (current.flags & 32768) ? !0 : !1;
|
|
7785
|
+
didReceiveUpdate = 0 !== (current.flags & 65536) ? !0 : !1;
|
|
7633
7786
|
}
|
|
7634
7787
|
else didReceiveUpdate = !1;
|
|
7635
7788
|
workInProgress.lanes = 0;
|
|
7636
7789
|
switch (workInProgress.tag) {
|
|
7637
7790
|
case 2:
|
|
7638
|
-
|
|
7791
|
+
var Component = workInProgress.type;
|
|
7639
7792
|
null !== current &&
|
|
7640
7793
|
((current.alternate = null),
|
|
7641
7794
|
(workInProgress.alternate = null),
|
|
7642
7795
|
(workInProgress.flags |= 2));
|
|
7643
7796
|
current = workInProgress.pendingProps;
|
|
7644
|
-
|
|
7797
|
+
var context = getMaskedContext(
|
|
7798
|
+
workInProgress,
|
|
7799
|
+
contextStackCursor.current
|
|
7800
|
+
);
|
|
7645
7801
|
prepareToReadContext(workInProgress, renderLanes);
|
|
7646
|
-
|
|
7802
|
+
context = renderWithHooks(
|
|
7647
7803
|
null,
|
|
7648
7804
|
workInProgress,
|
|
7649
|
-
|
|
7805
|
+
Component,
|
|
7650
7806
|
current,
|
|
7651
|
-
|
|
7807
|
+
context,
|
|
7652
7808
|
renderLanes
|
|
7653
7809
|
);
|
|
7654
7810
|
workInProgress.flags |= 1;
|
|
7655
7811
|
if (
|
|
7656
|
-
"object" === typeof
|
|
7657
|
-
null !==
|
|
7658
|
-
"function" === typeof
|
|
7659
|
-
void 0 ===
|
|
7812
|
+
"object" === typeof context &&
|
|
7813
|
+
null !== context &&
|
|
7814
|
+
"function" === typeof context.render &&
|
|
7815
|
+
void 0 === context.$$typeof
|
|
7660
7816
|
) {
|
|
7661
7817
|
workInProgress.tag = 1;
|
|
7662
7818
|
workInProgress.memoizedState = null;
|
|
7663
7819
|
workInProgress.updateQueue = null;
|
|
7664
|
-
if (isContextProvider(
|
|
7820
|
+
if (isContextProvider(Component)) {
|
|
7665
7821
|
var hasContext = !0;
|
|
7666
7822
|
pushContextProvider(workInProgress);
|
|
7667
7823
|
} else hasContext = !1;
|
|
7668
7824
|
workInProgress.memoizedState =
|
|
7669
|
-
null !==
|
|
7670
|
-
?
|
|
7825
|
+
null !== context.state && void 0 !== context.state
|
|
7826
|
+
? context.state
|
|
7671
7827
|
: null;
|
|
7672
7828
|
initializeUpdateQueue(workInProgress);
|
|
7673
|
-
|
|
7674
|
-
workInProgress.stateNode =
|
|
7675
|
-
|
|
7676
|
-
mountClassInstance(workInProgress,
|
|
7829
|
+
context.updater = classComponentUpdater;
|
|
7830
|
+
workInProgress.stateNode = context;
|
|
7831
|
+
context._reactInternals = workInProgress;
|
|
7832
|
+
mountClassInstance(workInProgress, Component, current, renderLanes);
|
|
7677
7833
|
workInProgress = finishClassComponent(
|
|
7678
7834
|
null,
|
|
7679
7835
|
workInProgress,
|
|
7680
|
-
|
|
7836
|
+
Component,
|
|
7681
7837
|
!0,
|
|
7682
7838
|
hasContext,
|
|
7683
7839
|
renderLanes
|
|
7684
7840
|
);
|
|
7685
7841
|
} else
|
|
7686
7842
|
(workInProgress.tag = 0),
|
|
7687
|
-
reconcileChildren(null, workInProgress,
|
|
7843
|
+
reconcileChildren(null, workInProgress, context, renderLanes),
|
|
7688
7844
|
(workInProgress = workInProgress.child);
|
|
7689
7845
|
return workInProgress;
|
|
7690
7846
|
case 16:
|
|
7691
|
-
|
|
7847
|
+
Component = workInProgress.elementType;
|
|
7692
7848
|
a: {
|
|
7693
7849
|
null !== current &&
|
|
7694
7850
|
((current.alternate = null),
|
|
7695
7851
|
(workInProgress.alternate = null),
|
|
7696
7852
|
(workInProgress.flags |= 2));
|
|
7697
7853
|
current = workInProgress.pendingProps;
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
workInProgress.type =
|
|
7701
|
-
|
|
7702
|
-
current = resolveDefaultProps(
|
|
7703
|
-
switch (
|
|
7854
|
+
context = Component._init;
|
|
7855
|
+
Component = context(Component._payload);
|
|
7856
|
+
workInProgress.type = Component;
|
|
7857
|
+
context = workInProgress.tag = resolveLazyComponentTag(Component);
|
|
7858
|
+
current = resolveDefaultProps(Component, current);
|
|
7859
|
+
switch (context) {
|
|
7704
7860
|
case 0:
|
|
7705
7861
|
workInProgress = updateFunctionComponent(
|
|
7706
7862
|
null,
|
|
7707
7863
|
workInProgress,
|
|
7708
|
-
|
|
7864
|
+
Component,
|
|
7709
7865
|
current,
|
|
7710
7866
|
renderLanes
|
|
7711
7867
|
);
|
|
@@ -7714,7 +7870,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7714
7870
|
workInProgress = updateClassComponent(
|
|
7715
7871
|
null,
|
|
7716
7872
|
workInProgress,
|
|
7717
|
-
|
|
7873
|
+
Component,
|
|
7718
7874
|
current,
|
|
7719
7875
|
renderLanes
|
|
7720
7876
|
);
|
|
@@ -7723,7 +7879,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7723
7879
|
workInProgress = updateForwardRef(
|
|
7724
7880
|
null,
|
|
7725
7881
|
workInProgress,
|
|
7726
|
-
|
|
7882
|
+
Component,
|
|
7727
7883
|
current,
|
|
7728
7884
|
renderLanes
|
|
7729
7885
|
);
|
|
@@ -7732,79 +7888,78 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7732
7888
|
workInProgress = updateMemoComponent(
|
|
7733
7889
|
null,
|
|
7734
7890
|
workInProgress,
|
|
7735
|
-
|
|
7736
|
-
resolveDefaultProps(
|
|
7737
|
-
updateLanes,
|
|
7891
|
+
Component,
|
|
7892
|
+
resolveDefaultProps(Component.type, current),
|
|
7738
7893
|
renderLanes
|
|
7739
7894
|
);
|
|
7740
7895
|
break a;
|
|
7741
7896
|
}
|
|
7742
7897
|
throw Error(
|
|
7743
7898
|
"Element type is invalid. Received a promise that resolves to: " +
|
|
7744
|
-
|
|
7899
|
+
Component +
|
|
7745
7900
|
". Lazy element type must resolve to a class or function."
|
|
7746
7901
|
);
|
|
7747
7902
|
}
|
|
7748
7903
|
return workInProgress;
|
|
7749
7904
|
case 0:
|
|
7750
7905
|
return (
|
|
7751
|
-
(
|
|
7752
|
-
(
|
|
7753
|
-
(
|
|
7754
|
-
workInProgress.elementType ===
|
|
7755
|
-
?
|
|
7756
|
-
: resolveDefaultProps(
|
|
7906
|
+
(Component = workInProgress.type),
|
|
7907
|
+
(context = workInProgress.pendingProps),
|
|
7908
|
+
(context =
|
|
7909
|
+
workInProgress.elementType === Component
|
|
7910
|
+
? context
|
|
7911
|
+
: resolveDefaultProps(Component, context)),
|
|
7757
7912
|
updateFunctionComponent(
|
|
7758
7913
|
current,
|
|
7759
7914
|
workInProgress,
|
|
7760
|
-
|
|
7761
|
-
|
|
7915
|
+
Component,
|
|
7916
|
+
context,
|
|
7762
7917
|
renderLanes
|
|
7763
7918
|
)
|
|
7764
7919
|
);
|
|
7765
7920
|
case 1:
|
|
7766
7921
|
return (
|
|
7767
|
-
(
|
|
7768
|
-
(
|
|
7769
|
-
(
|
|
7770
|
-
workInProgress.elementType ===
|
|
7771
|
-
?
|
|
7772
|
-
: resolveDefaultProps(
|
|
7922
|
+
(Component = workInProgress.type),
|
|
7923
|
+
(context = workInProgress.pendingProps),
|
|
7924
|
+
(context =
|
|
7925
|
+
workInProgress.elementType === Component
|
|
7926
|
+
? context
|
|
7927
|
+
: resolveDefaultProps(Component, context)),
|
|
7773
7928
|
updateClassComponent(
|
|
7774
7929
|
current,
|
|
7775
7930
|
workInProgress,
|
|
7776
|
-
|
|
7777
|
-
|
|
7931
|
+
Component,
|
|
7932
|
+
context,
|
|
7778
7933
|
renderLanes
|
|
7779
7934
|
)
|
|
7780
7935
|
);
|
|
7781
7936
|
case 3:
|
|
7782
7937
|
pushHostRootContext(workInProgress);
|
|
7783
|
-
|
|
7784
|
-
if (null === current || null ===
|
|
7938
|
+
Component = workInProgress.updateQueue;
|
|
7939
|
+
if (null === current || null === Component)
|
|
7785
7940
|
throw Error(
|
|
7786
7941
|
"If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue."
|
|
7787
7942
|
);
|
|
7788
|
-
|
|
7789
|
-
|
|
7943
|
+
context = workInProgress.pendingProps;
|
|
7944
|
+
Component = workInProgress.memoizedState.element;
|
|
7790
7945
|
cloneUpdateQueue(current, workInProgress);
|
|
7791
|
-
processUpdateQueue(workInProgress,
|
|
7792
|
-
|
|
7793
|
-
|
|
7946
|
+
processUpdateQueue(workInProgress, context, null, renderLanes);
|
|
7947
|
+
context = workInProgress.memoizedState.element;
|
|
7948
|
+
context === Component
|
|
7794
7949
|
? (workInProgress = bailoutOnAlreadyFinishedWork(
|
|
7795
7950
|
current,
|
|
7796
7951
|
workInProgress,
|
|
7797
7952
|
renderLanes
|
|
7798
7953
|
))
|
|
7799
|
-
: (reconcileChildren(current, workInProgress,
|
|
7954
|
+
: (reconcileChildren(current, workInProgress, context, renderLanes),
|
|
7800
7955
|
(workInProgress = workInProgress.child));
|
|
7801
7956
|
return workInProgress;
|
|
7802
7957
|
case 5:
|
|
7803
7958
|
return (
|
|
7804
7959
|
pushHostContext(workInProgress),
|
|
7805
|
-
(
|
|
7806
|
-
markRef(current, workInProgress),
|
|
7807
|
-
reconcileChildren(current, workInProgress,
|
|
7960
|
+
(Component = workInProgress.pendingProps.children),
|
|
7961
|
+
markRef$1(current, workInProgress),
|
|
7962
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7808
7963
|
workInProgress.child
|
|
7809
7964
|
);
|
|
7810
7965
|
case 6:
|
|
@@ -7817,35 +7972,30 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7817
7972
|
workInProgress,
|
|
7818
7973
|
workInProgress.stateNode.containerInfo
|
|
7819
7974
|
),
|
|
7820
|
-
(
|
|
7975
|
+
(Component = workInProgress.pendingProps),
|
|
7821
7976
|
null === current
|
|
7822
7977
|
? (workInProgress.child = reconcileChildFibers(
|
|
7823
7978
|
workInProgress,
|
|
7824
7979
|
null,
|
|
7825
|
-
|
|
7980
|
+
Component,
|
|
7826
7981
|
renderLanes
|
|
7827
7982
|
))
|
|
7828
|
-
: reconcileChildren(
|
|
7829
|
-
current,
|
|
7830
|
-
workInProgress,
|
|
7831
|
-
updateLanes,
|
|
7832
|
-
renderLanes
|
|
7833
|
-
),
|
|
7983
|
+
: reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7834
7984
|
workInProgress.child
|
|
7835
7985
|
);
|
|
7836
7986
|
case 11:
|
|
7837
7987
|
return (
|
|
7838
|
-
(
|
|
7839
|
-
(
|
|
7840
|
-
(
|
|
7841
|
-
workInProgress.elementType ===
|
|
7842
|
-
?
|
|
7843
|
-
: resolveDefaultProps(
|
|
7988
|
+
(Component = workInProgress.type),
|
|
7989
|
+
(context = workInProgress.pendingProps),
|
|
7990
|
+
(context =
|
|
7991
|
+
workInProgress.elementType === Component
|
|
7992
|
+
? context
|
|
7993
|
+
: resolveDefaultProps(Component, context)),
|
|
7844
7994
|
updateForwardRef(
|
|
7845
7995
|
current,
|
|
7846
7996
|
workInProgress,
|
|
7847
|
-
|
|
7848
|
-
|
|
7997
|
+
Component,
|
|
7998
|
+
context,
|
|
7849
7999
|
renderLanes
|
|
7850
8000
|
)
|
|
7851
8001
|
);
|
|
@@ -7872,9 +8022,9 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7872
8022
|
case 12:
|
|
7873
8023
|
return (
|
|
7874
8024
|
(workInProgress.flags |= 4),
|
|
7875
|
-
(
|
|
7876
|
-
(
|
|
7877
|
-
(
|
|
8025
|
+
(Component = workInProgress.stateNode),
|
|
8026
|
+
(Component.effectDuration = 0),
|
|
8027
|
+
(Component.passiveEffectDuration = 0),
|
|
7878
8028
|
reconcileChildren(
|
|
7879
8029
|
current,
|
|
7880
8030
|
workInProgress,
|
|
@@ -7885,16 +8035,16 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7885
8035
|
);
|
|
7886
8036
|
case 10:
|
|
7887
8037
|
a: {
|
|
7888
|
-
|
|
7889
|
-
|
|
8038
|
+
Component = workInProgress.type._context;
|
|
8039
|
+
context = workInProgress.pendingProps;
|
|
7890
8040
|
hasContext = workInProgress.memoizedProps;
|
|
7891
|
-
var newValue =
|
|
7892
|
-
push(valueCursor,
|
|
7893
|
-
|
|
8041
|
+
var newValue = context.value;
|
|
8042
|
+
push(valueCursor, Component._currentValue);
|
|
8043
|
+
Component._currentValue = newValue;
|
|
7894
8044
|
if (null !== hasContext)
|
|
7895
8045
|
if (objectIs(hasContext.value, newValue)) {
|
|
7896
8046
|
if (
|
|
7897
|
-
hasContext.children ===
|
|
8047
|
+
hasContext.children === context.children &&
|
|
7898
8048
|
!didPerformWorkStackCursor.current
|
|
7899
8049
|
) {
|
|
7900
8050
|
workInProgress = bailoutOnAlreadyFinishedWork(
|
|
@@ -7919,7 +8069,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7919
8069
|
null !== dependency;
|
|
7920
8070
|
|
|
7921
8071
|
) {
|
|
7922
|
-
if (dependency.context ===
|
|
8072
|
+
if (dependency.context === Component) {
|
|
7923
8073
|
if (1 === newValue.tag) {
|
|
7924
8074
|
dependency = createUpdate(-1, renderLanes & -renderLanes);
|
|
7925
8075
|
dependency.tag = 2;
|
|
@@ -7970,7 +8120,7 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7970
8120
|
reconcileChildren(
|
|
7971
8121
|
current,
|
|
7972
8122
|
workInProgress,
|
|
7973
|
-
|
|
8123
|
+
context.children,
|
|
7974
8124
|
renderLanes
|
|
7975
8125
|
);
|
|
7976
8126
|
workInProgress = workInProgress.child;
|
|
@@ -7978,29 +8128,25 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
7978
8128
|
return workInProgress;
|
|
7979
8129
|
case 9:
|
|
7980
8130
|
return (
|
|
7981
|
-
(
|
|
7982
|
-
(
|
|
8131
|
+
(context = workInProgress.type),
|
|
8132
|
+
(Component = workInProgress.pendingProps.children),
|
|
7983
8133
|
prepareToReadContext(workInProgress, renderLanes),
|
|
7984
|
-
(
|
|
7985
|
-
(
|
|
8134
|
+
(context = readContext(context)),
|
|
8135
|
+
(Component = Component(context)),
|
|
7986
8136
|
(workInProgress.flags |= 1),
|
|
7987
|
-
reconcileChildren(current, workInProgress,
|
|
8137
|
+
reconcileChildren(current, workInProgress, Component, renderLanes),
|
|
7988
8138
|
workInProgress.child
|
|
7989
8139
|
);
|
|
7990
8140
|
case 14:
|
|
7991
8141
|
return (
|
|
7992
|
-
(
|
|
7993
|
-
(
|
|
7994
|
-
|
|
7995
|
-
workInProgress.pendingProps
|
|
7996
|
-
)),
|
|
7997
|
-
(hasContext = resolveDefaultProps(nextValue.type, hasContext)),
|
|
8142
|
+
(Component = workInProgress.type),
|
|
8143
|
+
(context = resolveDefaultProps(Component, workInProgress.pendingProps)),
|
|
8144
|
+
(context = resolveDefaultProps(Component.type, context)),
|
|
7998
8145
|
updateMemoComponent(
|
|
7999
8146
|
current,
|
|
8000
8147
|
workInProgress,
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
updateLanes,
|
|
8148
|
+
Component,
|
|
8149
|
+
context,
|
|
8004
8150
|
renderLanes
|
|
8005
8151
|
)
|
|
8006
8152
|
);
|
|
@@ -8010,32 +8156,31 @@ beginWork$1 = function(current, workInProgress, renderLanes) {
|
|
|
8010
8156
|
workInProgress,
|
|
8011
8157
|
workInProgress.type,
|
|
8012
8158
|
workInProgress.pendingProps,
|
|
8013
|
-
updateLanes,
|
|
8014
8159
|
renderLanes
|
|
8015
8160
|
);
|
|
8016
8161
|
case 17:
|
|
8017
8162
|
return (
|
|
8018
|
-
(
|
|
8019
|
-
(
|
|
8020
|
-
(
|
|
8021
|
-
workInProgress.elementType ===
|
|
8022
|
-
?
|
|
8023
|
-
: resolveDefaultProps(
|
|
8163
|
+
(Component = workInProgress.type),
|
|
8164
|
+
(context = workInProgress.pendingProps),
|
|
8165
|
+
(context =
|
|
8166
|
+
workInProgress.elementType === Component
|
|
8167
|
+
? context
|
|
8168
|
+
: resolveDefaultProps(Component, context)),
|
|
8024
8169
|
null !== current &&
|
|
8025
8170
|
((current.alternate = null),
|
|
8026
8171
|
(workInProgress.alternate = null),
|
|
8027
8172
|
(workInProgress.flags |= 2)),
|
|
8028
8173
|
(workInProgress.tag = 1),
|
|
8029
|
-
isContextProvider(
|
|
8174
|
+
isContextProvider(Component)
|
|
8030
8175
|
? ((current = !0), pushContextProvider(workInProgress))
|
|
8031
8176
|
: (current = !1),
|
|
8032
8177
|
prepareToReadContext(workInProgress, renderLanes),
|
|
8033
|
-
constructClassInstance(workInProgress,
|
|
8034
|
-
mountClassInstance(workInProgress,
|
|
8178
|
+
constructClassInstance(workInProgress, Component, context),
|
|
8179
|
+
mountClassInstance(workInProgress, Component, context, renderLanes),
|
|
8035
8180
|
finishClassComponent(
|
|
8036
8181
|
null,
|
|
8037
8182
|
workInProgress,
|
|
8038
|
-
|
|
8183
|
+
Component,
|
|
8039
8184
|
!0,
|
|
8040
8185
|
current,
|
|
8041
8186
|
renderLanes
|
|
@@ -8060,6 +8205,9 @@ function restorePendingUpdaters(root, lanes) {
|
|
|
8060
8205
|
addFiberToLanesMap(root, schedulingFiber, lanes);
|
|
8061
8206
|
});
|
|
8062
8207
|
}
|
|
8208
|
+
function scheduleCallback$1(priorityLevel, callback) {
|
|
8209
|
+
return scheduleCallback(priorityLevel, callback);
|
|
8210
|
+
}
|
|
8063
8211
|
function FiberNode(tag, pendingProps, key, mode) {
|
|
8064
8212
|
this.tag = tag;
|
|
8065
8213
|
this.key = key;
|
|
@@ -8115,7 +8263,7 @@ function createWorkInProgress(current, pendingProps) {
|
|
|
8115
8263
|
(workInProgress.deletions = null),
|
|
8116
8264
|
(workInProgress.actualDuration = 0),
|
|
8117
8265
|
(workInProgress.actualStartTime = -1));
|
|
8118
|
-
workInProgress.flags = current.flags &
|
|
8266
|
+
workInProgress.flags = current.flags & 3670016;
|
|
8119
8267
|
workInProgress.childLanes = current.childLanes;
|
|
8120
8268
|
workInProgress.lanes = current.lanes;
|
|
8121
8269
|
workInProgress.child = current.child;
|
|
@@ -8357,6 +8505,95 @@ function updateContainer(element, container, parentComponent, callback) {
|
|
|
8357
8505
|
function emptyFindFiberByHostInstance() {
|
|
8358
8506
|
return null;
|
|
8359
8507
|
}
|
|
8508
|
+
var emptyObject$1 = {},
|
|
8509
|
+
createHierarchy,
|
|
8510
|
+
getHostNode,
|
|
8511
|
+
getHostProps,
|
|
8512
|
+
lastNonHostInstance,
|
|
8513
|
+
getOwnerHierarchy,
|
|
8514
|
+
traverseOwnerTreeUp;
|
|
8515
|
+
createHierarchy = function(fiberHierarchy) {
|
|
8516
|
+
return fiberHierarchy.map(function(fiber) {
|
|
8517
|
+
return {
|
|
8518
|
+
name: getComponentNameFromType(fiber.type),
|
|
8519
|
+
getInspectorData: function(findNodeHandle) {
|
|
8520
|
+
return {
|
|
8521
|
+
props: getHostProps(fiber),
|
|
8522
|
+
source: fiber._debugSource,
|
|
8523
|
+
measure: function(callback) {
|
|
8524
|
+
var hostFiber = findCurrentHostFiber(fiber);
|
|
8525
|
+
if (
|
|
8526
|
+
(hostFiber =
|
|
8527
|
+
null != hostFiber &&
|
|
8528
|
+
null !== hostFiber.stateNode &&
|
|
8529
|
+
hostFiber.stateNode.node)
|
|
8530
|
+
)
|
|
8531
|
+
nativeFabricUIManager.measure(hostFiber, callback);
|
|
8532
|
+
else
|
|
8533
|
+
return ReactNativePrivateInterface.UIManager.measure(
|
|
8534
|
+
getHostNode(fiber, findNodeHandle),
|
|
8535
|
+
callback
|
|
8536
|
+
);
|
|
8537
|
+
}
|
|
8538
|
+
};
|
|
8539
|
+
}
|
|
8540
|
+
};
|
|
8541
|
+
});
|
|
8542
|
+
};
|
|
8543
|
+
getHostNode = function(fiber, findNodeHandle) {
|
|
8544
|
+
for (var hostNode; fiber; ) {
|
|
8545
|
+
null !== fiber.stateNode &&
|
|
8546
|
+
5 === fiber.tag &&
|
|
8547
|
+
(hostNode = findNodeHandle(fiber.stateNode));
|
|
8548
|
+
if (hostNode) return hostNode;
|
|
8549
|
+
fiber = fiber.child;
|
|
8550
|
+
}
|
|
8551
|
+
return null;
|
|
8552
|
+
};
|
|
8553
|
+
getHostProps = function(fiber) {
|
|
8554
|
+
return (fiber = findCurrentHostFiber(fiber))
|
|
8555
|
+
? fiber.memoizedProps || emptyObject$1
|
|
8556
|
+
: emptyObject$1;
|
|
8557
|
+
};
|
|
8558
|
+
exports.getInspectorDataForInstance = function(closestInstance) {
|
|
8559
|
+
if (!closestInstance)
|
|
8560
|
+
return {
|
|
8561
|
+
hierarchy: [],
|
|
8562
|
+
props: emptyObject$1,
|
|
8563
|
+
selectedIndex: null,
|
|
8564
|
+
source: null
|
|
8565
|
+
};
|
|
8566
|
+
closestInstance = findCurrentFiberUsingSlowPath(closestInstance);
|
|
8567
|
+
var fiberHierarchy = getOwnerHierarchy(closestInstance),
|
|
8568
|
+
instance = lastNonHostInstance(fiberHierarchy);
|
|
8569
|
+
closestInstance = createHierarchy(fiberHierarchy);
|
|
8570
|
+
var props = getHostProps(instance),
|
|
8571
|
+
source = instance._debugSource;
|
|
8572
|
+
fiberHierarchy = fiberHierarchy.indexOf(instance);
|
|
8573
|
+
return {
|
|
8574
|
+
hierarchy: closestInstance,
|
|
8575
|
+
props: props,
|
|
8576
|
+
selectedIndex: fiberHierarchy,
|
|
8577
|
+
source: source
|
|
8578
|
+
};
|
|
8579
|
+
};
|
|
8580
|
+
getOwnerHierarchy = function(instance) {
|
|
8581
|
+
var hierarchy = [];
|
|
8582
|
+
traverseOwnerTreeUp(hierarchy, instance);
|
|
8583
|
+
return hierarchy;
|
|
8584
|
+
};
|
|
8585
|
+
lastNonHostInstance = function(hierarchy) {
|
|
8586
|
+
for (var i = hierarchy.length - 1; 1 < i; i--) {
|
|
8587
|
+
var instance = hierarchy[i];
|
|
8588
|
+
if (5 !== instance.tag) return instance;
|
|
8589
|
+
}
|
|
8590
|
+
return hierarchy[0];
|
|
8591
|
+
};
|
|
8592
|
+
traverseOwnerTreeUp = function(hierarchy, instance) {
|
|
8593
|
+
instance &&
|
|
8594
|
+
(hierarchy.unshift(instance),
|
|
8595
|
+
traverseOwnerTreeUp(hierarchy, instance._debugOwner));
|
|
8596
|
+
};
|
|
8360
8597
|
function findNodeHandle(componentOrHandle) {
|
|
8361
8598
|
if (null == componentOrHandle) return null;
|
|
8362
8599
|
if ("number" === typeof componentOrHandle) return componentOrHandle;
|
|
@@ -8390,10 +8627,10 @@ batchedUpdatesImpl = function(fn, a) {
|
|
|
8390
8627
|
}
|
|
8391
8628
|
};
|
|
8392
8629
|
var roots = new Map(),
|
|
8393
|
-
devToolsConfig$jscomp$
|
|
8630
|
+
devToolsConfig$jscomp$inline_1016 = {
|
|
8394
8631
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8395
8632
|
bundleType: 0,
|
|
8396
|
-
version: "18.0.0-
|
|
8633
|
+
version: "18.0.0-e8feb11b6-20210915",
|
|
8397
8634
|
rendererPackageName: "react-native-renderer",
|
|
8398
8635
|
rendererConfig: {
|
|
8399
8636
|
getInspectorDataForViewTag: function() {
|
|
@@ -8408,11 +8645,11 @@ var roots = new Map(),
|
|
|
8408
8645
|
}.bind(null, findNodeHandle)
|
|
8409
8646
|
}
|
|
8410
8647
|
};
|
|
8411
|
-
var internals$jscomp$
|
|
8412
|
-
bundleType: devToolsConfig$jscomp$
|
|
8413
|
-
version: devToolsConfig$jscomp$
|
|
8414
|
-
rendererPackageName: devToolsConfig$jscomp$
|
|
8415
|
-
rendererConfig: devToolsConfig$jscomp$
|
|
8648
|
+
var internals$jscomp$inline_1289 = {
|
|
8649
|
+
bundleType: devToolsConfig$jscomp$inline_1016.bundleType,
|
|
8650
|
+
version: devToolsConfig$jscomp$inline_1016.version,
|
|
8651
|
+
rendererPackageName: devToolsConfig$jscomp$inline_1016.rendererPackageName,
|
|
8652
|
+
rendererConfig: devToolsConfig$jscomp$inline_1016.rendererConfig,
|
|
8416
8653
|
overrideHookState: null,
|
|
8417
8654
|
overrideHookStateDeletePath: null,
|
|
8418
8655
|
overrideHookStateRenamePath: null,
|
|
@@ -8428,26 +8665,27 @@ var internals$jscomp$inline_1287 = {
|
|
|
8428
8665
|
return null === fiber ? null : fiber.stateNode;
|
|
8429
8666
|
},
|
|
8430
8667
|
findFiberByHostInstance:
|
|
8431
|
-
devToolsConfig$jscomp$
|
|
8668
|
+
devToolsConfig$jscomp$inline_1016.findFiberByHostInstance ||
|
|
8432
8669
|
emptyFindFiberByHostInstance,
|
|
8433
8670
|
findHostInstancesForRefresh: null,
|
|
8434
8671
|
scheduleRefresh: null,
|
|
8435
8672
|
scheduleRoot: null,
|
|
8436
8673
|
setRefreshHandler: null,
|
|
8437
8674
|
getCurrentFiber: null,
|
|
8438
|
-
|
|
8675
|
+
getIsStrictMode: null,
|
|
8676
|
+
reconcilerVersion: "18.0.0-e8feb11b6-20210915"
|
|
8439
8677
|
};
|
|
8440
8678
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8441
|
-
var hook$jscomp$
|
|
8679
|
+
var hook$jscomp$inline_1290 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
8442
8680
|
if (
|
|
8443
|
-
!hook$jscomp$
|
|
8444
|
-
hook$jscomp$
|
|
8681
|
+
!hook$jscomp$inline_1290.isDisabled &&
|
|
8682
|
+
hook$jscomp$inline_1290.supportsFiber
|
|
8445
8683
|
)
|
|
8446
8684
|
try {
|
|
8447
|
-
(rendererID = hook$jscomp$
|
|
8448
|
-
internals$jscomp$
|
|
8685
|
+
(rendererID = hook$jscomp$inline_1290.inject(
|
|
8686
|
+
internals$jscomp$inline_1289
|
|
8449
8687
|
)),
|
|
8450
|
-
(injectedHook = hook$jscomp$
|
|
8688
|
+
(injectedHook = hook$jscomp$inline_1290);
|
|
8451
8689
|
} catch (err) {}
|
|
8452
8690
|
}
|
|
8453
8691
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|
@@ -8467,12 +8705,10 @@ exports.createPortal = function(children, containerTag) {
|
|
|
8467
8705
|
};
|
|
8468
8706
|
exports.dispatchCommand = function(handle, command, args) {
|
|
8469
8707
|
null != handle._nativeTag &&
|
|
8470
|
-
(handle._internalInstanceHandle
|
|
8471
|
-
?
|
|
8472
|
-
|
|
8473
|
-
command,
|
|
8474
|
-
args
|
|
8475
|
-
)
|
|
8708
|
+
(null != handle._internalInstanceHandle
|
|
8709
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8710
|
+
null != handle &&
|
|
8711
|
+
nativeFabricUIManager.dispatchCommand(handle.node, command, args))
|
|
8476
8712
|
: ReactNativePrivateInterface.UIManager.dispatchViewManagerCommand(
|
|
8477
8713
|
handle._nativeTag,
|
|
8478
8714
|
command,
|
|
@@ -8524,11 +8760,10 @@ exports.render = function(element, containerTag, callback) {
|
|
|
8524
8760
|
};
|
|
8525
8761
|
exports.sendAccessibilityEvent = function(handle, eventType) {
|
|
8526
8762
|
null != handle._nativeTag &&
|
|
8527
|
-
(handle._internalInstanceHandle
|
|
8528
|
-
?
|
|
8529
|
-
|
|
8530
|
-
eventType
|
|
8531
|
-
)
|
|
8763
|
+
(null != handle._internalInstanceHandle
|
|
8764
|
+
? ((handle = handle._internalInstanceHandle.stateNode),
|
|
8765
|
+
null != handle &&
|
|
8766
|
+
nativeFabricUIManager.sendAccessibilityEvent(handle.node, eventType))
|
|
8532
8767
|
: ReactNativePrivateInterface.legacySendAccessibilityEvent(
|
|
8533
8768
|
handle._nativeTag,
|
|
8534
8769
|
eventType
|