diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js index a224e1c1f2937..4f678ea91ab69 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<825f43f1ef38b03ee1f23d7689105b33>> + * @generated SignedSource<> */ "use strict"; @@ -12911,7 +12911,7 @@ if (__DEV__) { var nextIsDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0; var prevState = current !== null ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if (nextProps.mode === "hidden" || enableLegacyHidden || nextIsDetached) { // Rendering a hidden tree. @@ -13185,7 +13185,9 @@ if (__DEV__) { return workInProgress.child; } - function markRef$1(current, workInProgress) { + function markRef(current, workInProgress) { + // TODO: This is also where we should check the type of the ref and error if + // an invalid one is passed, instead of during child reconcilation. var ref = workInProgress.ref; if ( @@ -13403,7 +13405,7 @@ if (__DEV__) { renderLanes ) { // Refs should update even if shouldComponentUpdate returns false - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1; if (!shouldUpdate && !didCaptureError) { @@ -13600,7 +13602,7 @@ if (__DEV__) { } } - markRef$1(current, workInProgress); + markRef(current, workInProgress); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } @@ -16449,10 +16451,6 @@ if (__DEV__) { workInProgress.flags |= Update; } - function markRef(workInProgress) { - workInProgress.flags |= Ref | RefStatic; - } - function appendAllChildren( parent, workInProgress, @@ -16944,10 +16942,6 @@ if (__DEV__) { if (current !== null && workInProgress.stateNode != null) { updateHostComponent(current, workInProgress, _type2, newProps); - - if (current.ref !== workInProgress.ref) { - markRef(workInProgress); - } } else { if (!newProps) { if (workInProgress.stateNode === null) { @@ -16987,11 +16981,6 @@ if (__DEV__) { appendAllChildren(_instance3, workInProgress); workInProgress.stateNode = _instance3; // Certain renderers require commit-time effects for initial mount. } - - if (workInProgress.ref !== null) { - // If there is a ref on a host node we need to schedule a callback - markRef(workInProgress); - } } bubbleProperties(workInProgress); // This must come at the very end of the complete phase, because it might @@ -25697,7 +25686,7 @@ if (__DEV__) { return root; } - var ReactVersion = "18.3.0-canary-2e84e1629-20240219"; + var ReactVersion = "18.3.0-canary-c82009771-20240219"; // Might add PROFILE later. diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js index 0cbbf620fc63f..856364f5316a1 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<5572049a3941ae58bad5a378320ee208>> */ "use strict"; @@ -3918,7 +3918,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if ("hidden" === nextProps.mode || nextIsDetached) { if (0 !== (workInProgress.flags & 128)) { renderLanes = @@ -3989,7 +3989,7 @@ function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes) { pushOffscreenSuspenseHandler(workInProgress); return null; } -function markRef$1(current, workInProgress) { +function markRef(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -4260,7 +4260,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -5195,9 +5195,7 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - current.memoizedProps !== newProps && (workInProgress.flags |= 4), - current.ref !== workInProgress.ref && - (workInProgress.flags |= 2097664); + current.memoizedProps !== newProps && (workInProgress.flags |= 4); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -5240,7 +5238,6 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = renderLanes.sibling; } workInProgress.stateNode = current; - null !== workInProgress.ref && (workInProgress.flags |= 2097664); } bubbleProperties(workInProgress); workInProgress.flags &= -16777217; @@ -8251,7 +8248,7 @@ beginWork = function (current, workInProgress, renderLanes) { HostTransitionContext, renderLanes )), - markRef$1(current, workInProgress), + markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child ); @@ -9174,19 +9171,19 @@ function wrapFiber(fiber) { fiberToWrapper.set(fiber, wrapper)); return wrapper; } -var devToolsConfig$jscomp$inline_1018 = { +var devToolsConfig$jscomp$inline_1014 = { findFiberByHostInstance: function () { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 0, - version: "18.3.0-canary-2e84e1629-20240219", + version: "18.3.0-canary-c82009771-20240219", rendererPackageName: "react-test-renderer" }; -var internals$jscomp$inline_1199 = { - bundleType: devToolsConfig$jscomp$inline_1018.bundleType, - version: devToolsConfig$jscomp$inline_1018.version, - rendererPackageName: devToolsConfig$jscomp$inline_1018.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1018.rendererConfig, +var internals$jscomp$inline_1195 = { + bundleType: devToolsConfig$jscomp$inline_1014.bundleType, + version: devToolsConfig$jscomp$inline_1014.version, + rendererPackageName: devToolsConfig$jscomp$inline_1014.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1014.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9203,26 +9200,26 @@ var internals$jscomp$inline_1199 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1018.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1014.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-canary-2e84e1629-20240219" + reconcilerVersion: "18.3.0-canary-c82009771-20240219" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1200 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1196 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1200.isDisabled && - hook$jscomp$inline_1200.supportsFiber + !hook$jscomp$inline_1196.isDisabled && + hook$jscomp$inline_1196.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1200.inject( - internals$jscomp$inline_1199 + (rendererID = hook$jscomp$inline_1196.inject( + internals$jscomp$inline_1195 )), - (injectedHook = hook$jscomp$inline_1200); + (injectedHook = hook$jscomp$inline_1196); } catch (err) {} } exports._Scheduler = Scheduler; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js index 146e931c84f70..77c754bd63218 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<30e0621a9f535ff1cd2b36a9447e4f81>> + * @generated SignedSource<> */ "use strict"; @@ -4000,7 +4000,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if ("hidden" === nextProps.mode || nextIsDetached) { if (0 !== (workInProgress.flags & 128)) { renderLanes = @@ -4071,7 +4071,7 @@ function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes) { pushOffscreenSuspenseHandler(workInProgress); return null; } -function markRef$1(current, workInProgress) { +function markRef(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -4342,7 +4342,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -5337,9 +5337,7 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - current.memoizedProps !== newProps && (workInProgress.flags |= 4), - current.ref !== workInProgress.ref && - (workInProgress.flags |= 2097664); + current.memoizedProps !== newProps && (workInProgress.flags |= 4); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -5382,7 +5380,6 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = renderLanes.sibling; } workInProgress.stateNode = current; - null !== workInProgress.ref && (workInProgress.flags |= 2097664); } bubbleProperties(workInProgress); workInProgress.flags &= -16777217; @@ -8661,7 +8658,7 @@ beginWork = function (current, workInProgress, renderLanes) { HostTransitionContext, renderLanes )), - markRef$1(current, workInProgress), + markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child ); @@ -9602,19 +9599,19 @@ function wrapFiber(fiber) { fiberToWrapper.set(fiber, wrapper)); return wrapper; } -var devToolsConfig$jscomp$inline_1060 = { +var devToolsConfig$jscomp$inline_1056 = { findFiberByHostInstance: function () { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 0, - version: "18.3.0-canary-2e84e1629-20240219", + version: "18.3.0-canary-c82009771-20240219", rendererPackageName: "react-test-renderer" }; -var internals$jscomp$inline_1240 = { - bundleType: devToolsConfig$jscomp$inline_1060.bundleType, - version: devToolsConfig$jscomp$inline_1060.version, - rendererPackageName: devToolsConfig$jscomp$inline_1060.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1060.rendererConfig, +var internals$jscomp$inline_1236 = { + bundleType: devToolsConfig$jscomp$inline_1056.bundleType, + version: devToolsConfig$jscomp$inline_1056.version, + rendererPackageName: devToolsConfig$jscomp$inline_1056.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1056.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9631,26 +9628,26 @@ var internals$jscomp$inline_1240 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1060.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1056.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-canary-2e84e1629-20240219" + reconcilerVersion: "18.3.0-canary-c82009771-20240219" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1241 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1237 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1241.isDisabled && - hook$jscomp$inline_1241.supportsFiber + !hook$jscomp$inline_1237.isDisabled && + hook$jscomp$inline_1237.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1241.inject( - internals$jscomp$inline_1240 + (rendererID = hook$jscomp$inline_1237.inject( + internals$jscomp$inline_1236 )), - (injectedHook = hook$jscomp$inline_1241); + (injectedHook = hook$jscomp$inline_1237); } catch (err) {} } exports._Scheduler = Scheduler; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js index bf555b9198ffe..8448c806d45a9 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js @@ -24,7 +24,7 @@ if (__DEV__) { ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = "18.3.0-canary-2e84e1629-20240219"; + var ReactVersion = "18.3.0-canary-c82009771-20240219"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js index bf1ff9ed5df10..9708652c4102d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js @@ -590,4 +590,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-canary-2e84e1629-20240219"; +exports.version = "18.3.0-canary-c82009771-20240219"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js index 6bc5a09c22480..8e3726532174a 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js @@ -586,7 +586,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactCurrentDispatcher.current.useTransition(); }; -exports.version = "18.3.0-canary-2e84e1629-20240219"; +exports.version = "18.3.0-canary-c82009771-20240219"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index 5d5d138efd3b1..ff4034ca8ffeb 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -2e84e1629924e6cb278638305fa92040f6ef6eb5 +c820097716c3d9765bf85bf58202a4975d99e450 diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index 0afdb866d6612..e467795fda7c6 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<062290072ee67d2ab7e1ce078ec87315>> */ "use strict"; @@ -15936,7 +15936,7 @@ to return true:wantsResponderID| | var nextIsDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0; var prevState = current !== null ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if (nextProps.mode === "hidden" || enableLegacyHidden || nextIsDetached) { // Rendering a hidden tree. @@ -16101,7 +16101,9 @@ to return true:wantsResponderID| | return workInProgress.child; } - function markRef$1(current, workInProgress) { + function markRef(current, workInProgress) { + // TODO: This is also where we should check the type of the ref and error if + // an invalid one is passed, instead of during child reconcilation. var ref = workInProgress.ref; if ( @@ -16335,7 +16337,7 @@ to return true:wantsResponderID| | renderLanes ) { // Refs should update even if shouldComponentUpdate returns false - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1; if (!shouldUpdate && !didCaptureError) { @@ -16489,7 +16491,7 @@ to return true:wantsResponderID| | workInProgress.flags |= ContentReset; } - markRef$1(current, workInProgress); + markRef(current, workInProgress); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } @@ -19089,10 +19091,6 @@ to return true:wantsResponderID| | function markUpdate(workInProgress) { workInProgress.flags |= Update; } - - function markRef(workInProgress) { - workInProgress.flags |= Ref | RefStatic; - } /** * In persistent mode, return whether this update needs to clone the subtree. */ @@ -19802,10 +19800,6 @@ to return true:wantsResponderID| | if (current !== null && workInProgress.stateNode != null) { updateHostComponent(current, workInProgress, _type2, newProps); - - if (current.ref !== workInProgress.ref) { - markRef(workInProgress); - } } else { if (!newProps) { if (workInProgress.stateNode === null) { @@ -19845,11 +19839,6 @@ to return true:wantsResponderID| | appendAllChildren(_instance3, workInProgress, false, false); workInProgress.stateNode = _instance3; // Certain renderers require commit-time effects for initial mount. } - - if (workInProgress.ref !== null) { - // If there is a ref on a host node we need to schedule a callback - markRef(workInProgress); - } } bubbleProperties(workInProgress); // This must come at the very end of the complete phase, because it might @@ -27736,7 +27725,7 @@ to return true:wantsResponderID| | return root; } - var ReactVersion = "18.3.0-canary-d5b088bd"; + var ReactVersion = "18.3.0-canary-df883c3c"; function createPortal$1( children, diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js index 56c172a07c688..1f8152927dd4d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -4928,7 +4928,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if ("hidden" === nextProps.mode || nextIsDetached) { if (0 !== (workInProgress.flags & 128)) { renderLanes = @@ -4982,7 +4982,7 @@ function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes) { pushOffscreenSuspenseHandler(workInProgress); return null; } -function markRef$1(current, workInProgress) { +function markRef(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -5251,7 +5251,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -6171,11 +6171,13 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) { renderLanes = current.stateNode; - var oldProps = current.memoizedProps, - requiresClone = doesRequireClone(current, workInProgress); - if (requiresClone || oldProps !== newProps) { + var oldProps = current.memoizedProps; + if ( + (current = doesRequireClone(current, workInProgress)) || + oldProps !== newProps + ) { var newChildSet = null; - requiresClone && + current && passChildrenWhenCloningPersistedNodes && ((newChildSet = passChildrenWhenCloningPersistedNodes ? [] @@ -6190,7 +6192,7 @@ function completeWork(current, workInProgress, renderLanes) { ); renderLanes.canonical.currentProps = newProps; newProps = renderLanes.node; - if (requiresClone) + if (current) newProps = null != newChildSet ? null !== oldProps @@ -6214,12 +6216,11 @@ function completeWork(current, workInProgress, renderLanes) { newProps === renderLanes ? (workInProgress.stateNode = renderLanes) : ((workInProgress.stateNode = newProps), - requiresClone + current ? passChildrenWhenCloningPersistedNodes || appendAllChildren(newProps, workInProgress, !1, !1) : (workInProgress.flags |= 4)); } else workInProgress.stateNode = renderLanes; - current.ref !== workInProgress.ref && (workInProgress.flags |= 2097664); } else { if (!newProps) { if (null === workInProgress.stateNode) @@ -6229,7 +6230,7 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); return null; } - requiresClone = rootInstanceStackCursor.current; + oldProps = rootInstanceStackCursor.current; current = nextReactTag; nextReactTag += 2; renderLanes = getViewConfigForType(renderLanes); @@ -6239,10 +6240,10 @@ function completeWork(current, workInProgress, renderLanes) { newProps, renderLanes.validAttributes ); - requiresClone = createNode( + oldProps = createNode( current, renderLanes.uiViewClassName, - requiresClone, + oldProps, newChildSet, workInProgress ); @@ -6251,8 +6252,8 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes, workInProgress ); - current = { - node: requiresClone, + newProps = { + node: oldProps, canonical: { nativeTag: current, viewConfig: renderLanes, @@ -6261,9 +6262,8 @@ function completeWork(current, workInProgress, renderLanes) { publicInstance: newChildSet } }; - appendAllChildren(current, workInProgress, !1, !1); - workInProgress.stateNode = current; - null !== workInProgress.ref && (workInProgress.flags |= 2097664); + appendAllChildren(newProps, workInProgress, !1, !1); + workInProgress.stateNode = newProps; } bubbleProperties(workInProgress); workInProgress.flags &= -16777217; @@ -6314,12 +6314,12 @@ function completeWork(current, workInProgress, renderLanes) { (workInProgress.memoizedState = null); workInProgress.flags |= 4; bubbleProperties(workInProgress); - requiresClone = !1; + oldProps = !1; } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), (hydrationErrors = null)), - (requiresClone = !0); - if (!requiresClone) + (oldProps = !0); + if (!oldProps) return workInProgress.flags & 256 ? workInProgress : null; } if (0 !== (workInProgress.flags & 128)) @@ -6352,12 +6352,12 @@ function completeWork(current, workInProgress, renderLanes) { ); case 19: pop(suspenseStackCursor); - requiresClone = workInProgress.memoizedState; - if (null === requiresClone) return bubbleProperties(workInProgress), null; + oldProps = workInProgress.memoizedState; + if (null === oldProps) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - newChildSet = requiresClone.rendering; + newChildSet = oldProps.rendering; if (null === newChildSet) - if (newProps) cutOffTailIfNeeded(requiresClone, !1); + if (newProps) cutOffTailIfNeeded(oldProps, !1); else { if ( 0 !== workInProgressRootExitStatus || @@ -6367,15 +6367,15 @@ function completeWork(current, workInProgress, renderLanes) { newChildSet = findFirstSuspended(current); if (null !== newChildSet) { workInProgress.flags |= 128; - cutOffTailIfNeeded(requiresClone, !1); - current = newChildSet.updateQueue; - workInProgress.updateQueue = current; - scheduleRetryEffect(workInProgress, current); + cutOffTailIfNeeded(oldProps, !1); + newProps = newChildSet.updateQueue; + workInProgress.updateQueue = newProps; + scheduleRetryEffect(workInProgress, newProps); workInProgress.subtreeFlags = 0; - current = renderLanes; - for (newProps = workInProgress.child; null !== newProps; ) - resetWorkInProgress(newProps, current), - (newProps = newProps.sibling); + newProps = renderLanes; + for (current = workInProgress.child; null !== current; ) + resetWorkInProgress(current, newProps), + (current = current.sibling); push( suspenseStackCursor, (suspenseStackCursor.current & 1) | 2 @@ -6384,11 +6384,11 @@ function completeWork(current, workInProgress, renderLanes) { } current = current.sibling; } - null !== requiresClone.tail && + null !== oldProps.tail && now() > workInProgressRootRenderTargetTime && ((workInProgress.flags |= 128), (newProps = !0), - cutOffTailIfNeeded(requiresClone, !1), + cutOffTailIfNeeded(oldProps, !1), (workInProgress.lanes = 4194304)); } else { @@ -6400,35 +6400,35 @@ function completeWork(current, workInProgress, renderLanes) { (current = current.updateQueue), (workInProgress.updateQueue = current), scheduleRetryEffect(workInProgress, current), - cutOffTailIfNeeded(requiresClone, !0), - null === requiresClone.tail && - "hidden" === requiresClone.tailMode && + cutOffTailIfNeeded(oldProps, !0), + null === oldProps.tail && + "hidden" === oldProps.tailMode && !newChildSet.alternate) ) return bubbleProperties(workInProgress), null; } else - 2 * now() - requiresClone.renderingStartTime > + 2 * now() - oldProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes && ((workInProgress.flags |= 128), (newProps = !0), - cutOffTailIfNeeded(requiresClone, !1), + cutOffTailIfNeeded(oldProps, !1), (workInProgress.lanes = 4194304)); - requiresClone.isBackwards + oldProps.isBackwards ? ((newChildSet.sibling = workInProgress.child), (workInProgress.child = newChildSet)) - : ((current = requiresClone.last), + : ((current = oldProps.last), null !== current ? (current.sibling = newChildSet) : (workInProgress.child = newChildSet), - (requiresClone.last = newChildSet)); + (oldProps.last = newChildSet)); } - if (null !== requiresClone.tail) + if (null !== oldProps.tail) return ( - (workInProgress = requiresClone.tail), - (requiresClone.rendering = workInProgress), - (requiresClone.tail = workInProgress.sibling), - (requiresClone.renderingStartTime = now()), + (workInProgress = oldProps.tail), + (oldProps.rendering = workInProgress), + (oldProps.tail = workInProgress.sibling), + (oldProps.renderingStartTime = now()), (workInProgress.sibling = null), (current = suspenseStackCursor.current), push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1), @@ -6452,9 +6452,9 @@ function completeWork(current, workInProgress, renderLanes) { (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), - (current = workInProgress.updateQueue), - null !== current && - scheduleRetryEffect(workInProgress, current.retryQueue), + (newProps = workInProgress.updateQueue), + null !== newProps && + scheduleRetryEffect(workInProgress, newProps.retryQueue), null ); case 24: @@ -8769,7 +8769,7 @@ beginWork = function (current, workInProgress, renderLanes) { return ( pushHostContext(workInProgress), (Component = workInProgress.pendingProps.children), - markRef$1(current, workInProgress), + markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child ); @@ -9534,10 +9534,10 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - devToolsConfig$jscomp$inline_1071 = { + devToolsConfig$jscomp$inline_1067 = { findFiberByHostInstance: getInstanceFromNode, bundleType: 0, - version: "18.3.0-canary-9cc4f71b", + version: "18.3.0-canary-04f4e3d5", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -9553,11 +9553,11 @@ var roots = new Map(), }.bind(null, findNodeHandle) } }; -var internals$jscomp$inline_1296 = { - bundleType: devToolsConfig$jscomp$inline_1071.bundleType, - version: devToolsConfig$jscomp$inline_1071.version, - rendererPackageName: devToolsConfig$jscomp$inline_1071.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1071.rendererConfig, +var internals$jscomp$inline_1292 = { + bundleType: devToolsConfig$jscomp$inline_1067.bundleType, + version: devToolsConfig$jscomp$inline_1067.version, + rendererPackageName: devToolsConfig$jscomp$inline_1067.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1067.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9573,26 +9573,26 @@ var internals$jscomp$inline_1296 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1071.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1067.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-canary-9cc4f71b" + reconcilerVersion: "18.3.0-canary-04f4e3d5" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1297 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1293 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1297.isDisabled && - hook$jscomp$inline_1297.supportsFiber + !hook$jscomp$inline_1293.isDisabled && + hook$jscomp$inline_1293.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1297.inject( - internals$jscomp$inline_1296 + (rendererID = hook$jscomp$inline_1293.inject( + internals$jscomp$inline_1292 )), - (injectedHook = hook$jscomp$inline_1297); + (injectedHook = hook$jscomp$inline_1293); } catch (err) {} } exports.createPortal = function (children, containerTag) { diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js index f3ecd4631453f..d3bb6c90befb8 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<11bbeb7ca3cf648d381cd7e5c3e700fa>> + * @generated SignedSource<<7cbd2fe431f9092a57914cf978a61a94>> */ "use strict"; @@ -5125,7 +5125,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if ("hidden" === nextProps.mode || nextIsDetached) { if (0 !== (workInProgress.flags & 128)) { renderLanes = @@ -5179,7 +5179,7 @@ function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes) { pushOffscreenSuspenseHandler(workInProgress); return null; } -function markRef$1(current, workInProgress) { +function markRef(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -5452,7 +5452,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -6433,11 +6433,13 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes = workInProgress.type; if (null !== current && null != workInProgress.stateNode) { renderLanes = current.stateNode; - var oldProps = current.memoizedProps, - requiresClone = doesRequireClone(current, workInProgress); - if (requiresClone || oldProps !== newProps) { + var oldProps = current.memoizedProps; + if ( + (current = doesRequireClone(current, workInProgress)) || + oldProps !== newProps + ) { var newChildSet = null; - requiresClone && + current && passChildrenWhenCloningPersistedNodes && ((newChildSet = passChildrenWhenCloningPersistedNodes ? [] @@ -6452,7 +6454,7 @@ function completeWork(current, workInProgress, renderLanes) { ); renderLanes.canonical.currentProps = newProps; newProps = renderLanes.node; - if (requiresClone) + if (current) newProps = null != newChildSet ? null !== oldProps @@ -6476,12 +6478,11 @@ function completeWork(current, workInProgress, renderLanes) { newProps === renderLanes ? (workInProgress.stateNode = renderLanes) : ((workInProgress.stateNode = newProps), - requiresClone + current ? passChildrenWhenCloningPersistedNodes || appendAllChildren(newProps, workInProgress, !1, !1) : (workInProgress.flags |= 4)); } else workInProgress.stateNode = renderLanes; - current.ref !== workInProgress.ref && (workInProgress.flags |= 2097664); } else { if (!newProps) { if (null === workInProgress.stateNode) @@ -6491,7 +6492,7 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); return null; } - requiresClone = rootInstanceStackCursor.current; + oldProps = rootInstanceStackCursor.current; current = nextReactTag; nextReactTag += 2; renderLanes = getViewConfigForType(renderLanes); @@ -6501,10 +6502,10 @@ function completeWork(current, workInProgress, renderLanes) { newProps, renderLanes.validAttributes ); - requiresClone = createNode( + oldProps = createNode( current, renderLanes.uiViewClassName, - requiresClone, + oldProps, newChildSet, workInProgress ); @@ -6513,8 +6514,8 @@ function completeWork(current, workInProgress, renderLanes) { renderLanes, workInProgress ); - current = { - node: requiresClone, + newProps = { + node: oldProps, canonical: { nativeTag: current, viewConfig: renderLanes, @@ -6523,9 +6524,8 @@ function completeWork(current, workInProgress, renderLanes) { publicInstance: newChildSet } }; - appendAllChildren(current, workInProgress, !1, !1); - workInProgress.stateNode = current; - null !== workInProgress.ref && (workInProgress.flags |= 2097664); + appendAllChildren(newProps, workInProgress, !1, !1); + workInProgress.stateNode = newProps; } bubbleProperties(workInProgress); workInProgress.flags &= -16777217; @@ -6578,16 +6578,15 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); 0 !== (workInProgress.mode & 2) && null !== newProps && - ((requiresClone = workInProgress.child), - null !== requiresClone && - (workInProgress.treeBaseDuration -= - requiresClone.treeBaseDuration)); - requiresClone = !1; + ((oldProps = workInProgress.child), + null !== oldProps && + (workInProgress.treeBaseDuration -= oldProps.treeBaseDuration)); + oldProps = !1; } else null !== hydrationErrors && (queueRecoverableErrors(hydrationErrors), (hydrationErrors = null)), - (requiresClone = !0); - if (!requiresClone) + (oldProps = !0); + if (!oldProps) return workInProgress.flags & 256 ? workInProgress : null; } if (0 !== (workInProgress.flags & 128)) @@ -6605,9 +6604,9 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress); 0 !== (workInProgress.mode & 2) && newProps && - ((current = workInProgress.child), - null !== current && - (workInProgress.treeBaseDuration -= current.treeBaseDuration)); + ((newProps = workInProgress.child), + null !== newProps && + (workInProgress.treeBaseDuration -= newProps.treeBaseDuration)); return null; case 4: return ( @@ -6630,12 +6629,12 @@ function completeWork(current, workInProgress, renderLanes) { ); case 19: pop(suspenseStackCursor); - requiresClone = workInProgress.memoizedState; - if (null === requiresClone) return bubbleProperties(workInProgress), null; + oldProps = workInProgress.memoizedState; + if (null === oldProps) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - newChildSet = requiresClone.rendering; + newChildSet = oldProps.rendering; if (null === newChildSet) - if (newProps) cutOffTailIfNeeded(requiresClone, !1); + if (newProps) cutOffTailIfNeeded(oldProps, !1); else { if ( 0 !== workInProgressRootExitStatus || @@ -6645,15 +6644,15 @@ function completeWork(current, workInProgress, renderLanes) { newChildSet = findFirstSuspended(current); if (null !== newChildSet) { workInProgress.flags |= 128; - cutOffTailIfNeeded(requiresClone, !1); - current = newChildSet.updateQueue; - workInProgress.updateQueue = current; - scheduleRetryEffect(workInProgress, current); + cutOffTailIfNeeded(oldProps, !1); + newProps = newChildSet.updateQueue; + workInProgress.updateQueue = newProps; + scheduleRetryEffect(workInProgress, newProps); workInProgress.subtreeFlags = 0; - current = renderLanes; - for (newProps = workInProgress.child; null !== newProps; ) - resetWorkInProgress(newProps, current), - (newProps = newProps.sibling); + newProps = renderLanes; + for (current = workInProgress.child; null !== current; ) + resetWorkInProgress(current, newProps), + (current = current.sibling); push( suspenseStackCursor, (suspenseStackCursor.current & 1) | 2 @@ -6662,11 +6661,11 @@ function completeWork(current, workInProgress, renderLanes) { } current = current.sibling; } - null !== requiresClone.tail && + null !== oldProps.tail && now$1() > workInProgressRootRenderTargetTime && ((workInProgress.flags |= 128), (newProps = !0), - cutOffTailIfNeeded(requiresClone, !1), + cutOffTailIfNeeded(oldProps, !1), (workInProgress.lanes = 4194304)); } else { @@ -6678,35 +6677,35 @@ function completeWork(current, workInProgress, renderLanes) { (current = current.updateQueue), (workInProgress.updateQueue = current), scheduleRetryEffect(workInProgress, current), - cutOffTailIfNeeded(requiresClone, !0), - null === requiresClone.tail && - "hidden" === requiresClone.tailMode && + cutOffTailIfNeeded(oldProps, !0), + null === oldProps.tail && + "hidden" === oldProps.tailMode && !newChildSet.alternate) ) return bubbleProperties(workInProgress), null; } else - 2 * now$1() - requiresClone.renderingStartTime > + 2 * now$1() - oldProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes && ((workInProgress.flags |= 128), (newProps = !0), - cutOffTailIfNeeded(requiresClone, !1), + cutOffTailIfNeeded(oldProps, !1), (workInProgress.lanes = 4194304)); - requiresClone.isBackwards + oldProps.isBackwards ? ((newChildSet.sibling = workInProgress.child), (workInProgress.child = newChildSet)) - : ((current = requiresClone.last), + : ((current = oldProps.last), null !== current ? (current.sibling = newChildSet) : (workInProgress.child = newChildSet), - (requiresClone.last = newChildSet)); + (oldProps.last = newChildSet)); } - if (null !== requiresClone.tail) + if (null !== oldProps.tail) return ( - (workInProgress = requiresClone.tail), - (requiresClone.rendering = workInProgress), - (requiresClone.tail = workInProgress.sibling), - (requiresClone.renderingStartTime = now$1()), + (workInProgress = oldProps.tail), + (oldProps.rendering = workInProgress), + (oldProps.tail = workInProgress.sibling), + (oldProps.renderingStartTime = now$1()), (workInProgress.sibling = null), (current = suspenseStackCursor.current), push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1), @@ -6730,9 +6729,9 @@ function completeWork(current, workInProgress, renderLanes) { (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), - (current = workInProgress.updateQueue), - null !== current && - scheduleRetryEffect(workInProgress, current.retryQueue), + (newProps = workInProgress.updateQueue), + null !== newProps && + scheduleRetryEffect(workInProgress, newProps.retryQueue), null ); case 24: @@ -9437,7 +9436,7 @@ beginWork = function (current, workInProgress, renderLanes) { return ( pushHostContext(workInProgress), (Component = workInProgress.pendingProps.children), - markRef$1(current, workInProgress), + markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child ); @@ -10233,10 +10232,10 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - devToolsConfig$jscomp$inline_1149 = { + devToolsConfig$jscomp$inline_1145 = { findFiberByHostInstance: getInstanceFromNode, bundleType: 0, - version: "18.3.0-canary-258577a6", + version: "18.3.0-canary-30b9b61b", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -10266,10 +10265,10 @@ var roots = new Map(), } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1149.bundleType, - version: devToolsConfig$jscomp$inline_1149.version, - rendererPackageName: devToolsConfig$jscomp$inline_1149.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1149.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1145.bundleType, + version: devToolsConfig$jscomp$inline_1145.version, + rendererPackageName: devToolsConfig$jscomp$inline_1145.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1145.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -10285,14 +10284,14 @@ var roots = new Map(), return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1149.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1145.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-canary-258577a6" + reconcilerVersion: "18.3.0-canary-30b9b61b" }); exports.createPortal = function (children, containerTag) { return createPortal$1( diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index fa6e0dcf26229..97a96325beb5d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<7f468c0b121f290e67f1fba4e2a73c8e>> */ "use strict"; @@ -16208,7 +16208,7 @@ to return true:wantsResponderID| | var nextIsDetached = (workInProgress.stateNode._pendingVisibility & OffscreenDetached) !== 0; var prevState = current !== null ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if (nextProps.mode === "hidden" || enableLegacyHidden || nextIsDetached) { // Rendering a hidden tree. @@ -16373,7 +16373,9 @@ to return true:wantsResponderID| | return workInProgress.child; } - function markRef$1(current, workInProgress) { + function markRef(current, workInProgress) { + // TODO: This is also where we should check the type of the ref and error if + // an invalid one is passed, instead of during child reconcilation. var ref = workInProgress.ref; if ( @@ -16607,7 +16609,7 @@ to return true:wantsResponderID| | renderLanes ) { // Refs should update even if shouldComponentUpdate returns false - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = (workInProgress.flags & DidCapture) !== NoFlags$1; if (!shouldUpdate && !didCaptureError) { @@ -16761,7 +16763,7 @@ to return true:wantsResponderID| | workInProgress.flags |= ContentReset; } - markRef$1(current, workInProgress); + markRef(current, workInProgress); reconcileChildren(current, workInProgress, nextChildren, renderLanes); return workInProgress.child; } @@ -19361,10 +19363,6 @@ to return true:wantsResponderID| | workInProgress.flags |= Update; } - function markRef(workInProgress) { - workInProgress.flags |= Ref | RefStatic; - } - function appendAllChildren( parent, workInProgress, @@ -19839,10 +19837,6 @@ to return true:wantsResponderID| | if (current !== null && workInProgress.stateNode != null) { updateHostComponent(current, workInProgress, _type2, newProps); - - if (current.ref !== workInProgress.ref) { - markRef(workInProgress); - } } else { if (!newProps) { if (workInProgress.stateNode === null) { @@ -19888,11 +19882,6 @@ to return true:wantsResponderID| | markUpdate(workInProgress); } } - - if (workInProgress.ref !== null) { - // If there is a ref on a host node we need to schedule a callback - markRef(workInProgress); - } } bubbleProperties(workInProgress); // This must come at the very end of the complete phase, because it might @@ -28177,7 +28166,7 @@ to return true:wantsResponderID| | return root; } - var ReactVersion = "18.3.0-canary-602d6f04"; + var ReactVersion = "18.3.0-canary-9ee917a0"; function createPortal$1( children, diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js index 5a35ec8bbd595..7beedcfbc54e5 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<4ab98123eefb86214c2e00d10a6369be>> + * @generated SignedSource<> */ "use strict"; @@ -4993,7 +4993,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if ("hidden" === nextProps.mode || nextIsDetached) { if (0 !== (workInProgress.flags & 128)) { renderLanes = @@ -5047,7 +5047,7 @@ function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes) { pushOffscreenSuspenseHandler(workInProgress); return null; } -function markRef$1(current, workInProgress) { +function markRef(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -5316,7 +5316,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -6123,9 +6123,7 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); var type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - current.memoizedProps !== newProps && (workInProgress.flags |= 4), - current.ref !== workInProgress.ref && - (workInProgress.flags |= 2097664); + current.memoizedProps !== newProps && (workInProgress.flags |= 4); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -6179,7 +6177,6 @@ function completeWork(current, workInProgress, renderLanes) { } workInProgress.stateNode = current; finalizeInitialChildren(current) && (workInProgress.flags |= 4); - null !== workInProgress.ref && (workInProgress.flags |= 2097664); } bubbleProperties(workInProgress); workInProgress.flags &= -16777217; @@ -8983,7 +8980,7 @@ beginWork = function (current, workInProgress, renderLanes) { return ( pushHostContext(workInProgress), (Component = workInProgress.pendingProps.children), - markRef$1(current, workInProgress), + markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child ); @@ -9755,10 +9752,10 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - devToolsConfig$jscomp$inline_1140 = { + devToolsConfig$jscomp$inline_1136 = { findFiberByHostInstance: getInstanceFromTag, bundleType: 0, - version: "18.3.0-canary-eb3a3b11", + version: "18.3.0-canary-26523433", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -9774,11 +9771,11 @@ var roots = new Map(), }.bind(null, findNodeHandle) } }; -var internals$jscomp$inline_1379 = { - bundleType: devToolsConfig$jscomp$inline_1140.bundleType, - version: devToolsConfig$jscomp$inline_1140.version, - rendererPackageName: devToolsConfig$jscomp$inline_1140.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1140.rendererConfig, +var internals$jscomp$inline_1375 = { + bundleType: devToolsConfig$jscomp$inline_1136.bundleType, + version: devToolsConfig$jscomp$inline_1136.version, + rendererPackageName: devToolsConfig$jscomp$inline_1136.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1136.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -9794,26 +9791,26 @@ var internals$jscomp$inline_1379 = { return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1140.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1136.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-canary-eb3a3b11" + reconcilerVersion: "18.3.0-canary-26523433" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1380 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1376 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1380.isDisabled && - hook$jscomp$inline_1380.supportsFiber + !hook$jscomp$inline_1376.isDisabled && + hook$jscomp$inline_1376.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1380.inject( - internals$jscomp$inline_1379 + (rendererID = hook$jscomp$inline_1376.inject( + internals$jscomp$inline_1375 )), - (injectedHook = hook$jscomp$inline_1380); + (injectedHook = hook$jscomp$inline_1376); } catch (err) {} } exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js index 799f3ac8c49be..8866e6c000d14 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<46a0584c4fa5b4015f1619cd4c32b2d8>> */ "use strict"; @@ -5189,7 +5189,7 @@ function updateOffscreenComponent(current, workInProgress, renderLanes) { nextChildren = nextProps.children, nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2), prevState = null !== current ? current.memoizedState : null; - markRef$1(current, workInProgress); + markRef(current, workInProgress); if ("hidden" === nextProps.mode || nextIsDetached) { if (0 !== (workInProgress.flags & 128)) { renderLanes = @@ -5243,7 +5243,7 @@ function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes) { pushOffscreenSuspenseHandler(workInProgress); return null; } -function markRef$1(current, workInProgress) { +function markRef(current, workInProgress) { var ref = workInProgress.ref; if ( (null === current && null !== ref) || @@ -5516,7 +5516,7 @@ function finishClassComponent( hasContext, renderLanes ) { - markRef$1(current, workInProgress); + markRef(current, workInProgress); var didCaptureError = 0 !== (workInProgress.flags & 128); if (!shouldUpdate && !didCaptureError) return ( @@ -6384,9 +6384,7 @@ function completeWork(current, workInProgress, renderLanes) { popHostContext(workInProgress); var type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) - current.memoizedProps !== newProps && (workInProgress.flags |= 4), - current.ref !== workInProgress.ref && - (workInProgress.flags |= 2097664); + current.memoizedProps !== newProps && (workInProgress.flags |= 4); else { if (!newProps) { if (null === workInProgress.stateNode) @@ -6440,7 +6438,6 @@ function completeWork(current, workInProgress, renderLanes) { } workInProgress.stateNode = current; finalizeInitialChildren(current) && (workInProgress.flags |= 4); - null !== workInProgress.ref && (workInProgress.flags |= 2097664); } bubbleProperties(workInProgress); workInProgress.flags &= -16777217; @@ -9650,7 +9647,7 @@ beginWork = function (current, workInProgress, renderLanes) { return ( pushHostContext(workInProgress), (Component = workInProgress.pendingProps.children), - markRef$1(current, workInProgress), + markRef(current, workInProgress), reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child ); @@ -10453,10 +10450,10 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - devToolsConfig$jscomp$inline_1218 = { + devToolsConfig$jscomp$inline_1214 = { findFiberByHostInstance: getInstanceFromTag, bundleType: 0, - version: "18.3.0-canary-dcf1c7af", + version: "18.3.0-canary-8b1db4d3", rendererPackageName: "react-native-renderer", rendererConfig: { getInspectorDataForInstance: getInspectorDataForInstance, @@ -10486,10 +10483,10 @@ var roots = new Map(), } catch (err) {} return hook.checkDCE ? !0 : !1; })({ - bundleType: devToolsConfig$jscomp$inline_1218.bundleType, - version: devToolsConfig$jscomp$inline_1218.version, - rendererPackageName: devToolsConfig$jscomp$inline_1218.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1218.rendererConfig, + bundleType: devToolsConfig$jscomp$inline_1214.bundleType, + version: devToolsConfig$jscomp$inline_1214.version, + rendererPackageName: devToolsConfig$jscomp$inline_1214.rendererPackageName, + rendererConfig: devToolsConfig$jscomp$inline_1214.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, @@ -10505,14 +10502,14 @@ var roots = new Map(), return null === fiber ? null : fiber.stateNode; }, findFiberByHostInstance: - devToolsConfig$jscomp$inline_1218.findFiberByHostInstance || + devToolsConfig$jscomp$inline_1214.findFiberByHostInstance || emptyFindFiberByHostInstance, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-canary-dcf1c7af" + reconcilerVersion: "18.3.0-canary-8b1db4d3" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = { computeComponentStackForErrorReporting: function (reactTag) {