From 2fceb0bacf2fd94e80228dd1800c308a5951ae85 Mon Sep 17 00:00:00 2001 From: rickhanlonii Date: Mon, 16 Dec 2024 19:51:33 -0800 Subject: [PATCH] Turn on useModernStrictMode in test renderers (#31769) It's on everywhere else, let's turn this on so we can remove it. Probably should have been turned on in the test renderer for 19. DiffTrain build for [8dab5920e019950874bcc9061480dd78c849e1d7](https://github.com/facebook/react/commit/8dab5920e019950874bcc9061480dd78c849e1d7) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 6 +- compiled/facebook-www/ReactART-dev.modern.js | 6 +- .../facebook-www/ReactART-prod.classic.js | 6 +- compiled/facebook-www/ReactART-prod.modern.js | 6 +- compiled/facebook-www/ReactDOM-dev.classic.js | 10 +- compiled/facebook-www/ReactDOM-dev.modern.js | 10 +- .../facebook-www/ReactDOM-prod.classic.js | 10 +- compiled/facebook-www/ReactDOM-prod.modern.js | 10 +- .../ReactDOM-profiling.classic.js | 10 +- .../facebook-www/ReactDOM-profiling.modern.js | 10 +- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 10 +- .../ReactDOMTesting-dev.modern.js | 10 +- .../ReactDOMTesting-prod.classic.js | 10 +- .../ReactDOMTesting-prod.modern.js | 10 +- .../ReactReconciler-dev.classic.js | 2 +- .../ReactReconciler-dev.modern.js | 2 +- .../ReactReconciler-prod.classic.js | 2 +- .../ReactReconciler-prod.modern.js | 2 +- .../ReactTestRenderer-dev.classic.js | 661 +++++++++--------- .../ReactTestRenderer-dev.modern.js | 661 +++++++++--------- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 34 files changed, 750 insertions(+), 732 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index e4ec129cea7c6..b7f2142692259 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -909ed63e0adc162a95a4704d3ed07a956dcf9cd1 +8dab5920e019950874bcc9061480dd78c849e1d7 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index e4ec129cea7c6..b7f2142692259 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -909ed63e0adc162a95a4704d3ed07a956dcf9cd1 +8dab5920e019950874bcc9061480dd78c849e1d7 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 30dbcf87f8ac9..76da0cc474360 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1942,7 +1942,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-classic-909ed63e-20241216"; + exports.version = "19.1.0-www-classic-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 7386135e6ae4f..a4e76581d1b7a 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1942,7 +1942,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-modern-909ed63e-20241216"; + exports.version = "19.1.0-www-modern-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 43adf288235da..3af91b464055d 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-909ed63e-20241216"; +exports.version = "19.1.0-www-classic-8dab5920-20241216"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 67939fdc109c1..9cf00247a48b9 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-909ed63e-20241216"; +exports.version = "19.1.0-www-modern-8dab5920-20241216"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 8268f2583175b..7dda8c0f5d2cd 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-909ed63e-20241216"; +exports.version = "19.1.0-www-classic-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 80397e363c063..808621baf690c 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-909ed63e-20241216"; +exports.version = "19.1.0-www-modern-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 51ea423b90016..1861a65885b3f 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -16904,10 +16904,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16941,7 +16941,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-classic-909ed63e-20241216"; + exports.version = "19.1.0-www-classic-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 055552cfeb393..9871e1e117e7f 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -16667,10 +16667,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16704,7 +16704,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-modern-909ed63e-20241216"; + exports.version = "19.1.0-www-modern-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 5207cb358e2bf..2ec2977a336bc 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -10759,10 +10759,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1493 = { bundleType: 0, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1494 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10788,4 +10788,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-classic-909ed63e-20241216"; +exports.version = "19.1.0-www-classic-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 23a722e6b66ea..c33c79ef2274d 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -10475,10 +10475,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1472 = { bundleType: 0, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1473 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10504,4 +10504,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-modern-909ed63e-20241216"; +exports.version = "19.1.0-www-modern-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index c172579093472..42e91ddae9a05 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -27379,11 +27379,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-909ed63e-20241216" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-8dab5920-20241216" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-classic-909ed63e-20241216\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-8dab5920-20241216\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27426,10 +27426,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28036,7 +28036,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-909ed63e-20241216"; + exports.version = "19.1.0-www-classic-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index aacd9c7dee1bb..76024648daca8 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -27158,11 +27158,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-909ed63e-20241216" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-8dab5920-20241216" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-modern-909ed63e-20241216\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-8dab5920-20241216\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27205,10 +27205,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27815,7 +27815,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-909ed63e-20241216"; + exports.version = "19.1.0-www-modern-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 4a15f50dcefd5..916f2169680f7 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -17216,14 +17216,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1765 = React.version; if ( - "19.1.0-www-classic-909ed63e-20241216" !== + "19.1.0-www-classic-8dab5920-20241216" !== isomorphicReactPackageVersion$jscomp$inline_1765 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1765, - "19.1.0-www-classic-909ed63e-20241216" + "19.1.0-www-classic-8dab5920-20241216" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17241,10 +17241,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2299 = { bundleType: 0, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2300 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17609,4 +17609,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-909ed63e-20241216"; +exports.version = "19.1.0-www-classic-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 681c5ccd0ce65..8516befd8a3b9 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -16947,14 +16947,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1755 = React.version; if ( - "19.1.0-www-modern-909ed63e-20241216" !== + "19.1.0-www-modern-8dab5920-20241216" !== isomorphicReactPackageVersion$jscomp$inline_1755 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1755, - "19.1.0-www-modern-909ed63e-20241216" + "19.1.0-www-modern-8dab5920-20241216" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16972,10 +16972,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2281 = { bundleType: 0, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2282 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17340,4 +17340,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-909ed63e-20241216"; +exports.version = "19.1.0-www-modern-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index bb889d937991b..6492f844f7760 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -17905,14 +17905,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1858 = React.version; if ( - "19.1.0-www-classic-909ed63e-20241216" !== + "19.1.0-www-classic-8dab5920-20241216" !== isomorphicReactPackageVersion$jscomp$inline_1858 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1858, - "19.1.0-www-classic-909ed63e-20241216" + "19.1.0-www-classic-8dab5920-20241216" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17930,10 +17930,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1860 = { bundleType: 0, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; enableSchedulingProfiler && ((internals$jscomp$inline_1860.getLaneLabelMap = getLaneLabelMap), @@ -18301,7 +18301,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-909ed63e-20241216"; +exports.version = "19.1.0-www-classic-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index ad2035baf7687..aad7d2f635689 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -17635,14 +17635,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1848 = React.version; if ( - "19.1.0-www-modern-909ed63e-20241216" !== + "19.1.0-www-modern-8dab5920-20241216" !== isomorphicReactPackageVersion$jscomp$inline_1848 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1848, - "19.1.0-www-modern-909ed63e-20241216" + "19.1.0-www-modern-8dab5920-20241216" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17660,10 +17660,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1850 = { bundleType: 0, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; enableSchedulingProfiler && ((internals$jscomp$inline_1850.getLaneLabelMap = getLaneLabelMap), @@ -18031,7 +18031,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-909ed63e-20241216"; +exports.version = "19.1.0-www-modern-8dab5920-20241216"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index cdcffd8636828..2bd0758d8624d 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -9150,5 +9150,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.1.0-www-classic-909ed63e-20241216"; + exports.version = "19.1.0-www-classic-8dab5920-20241216"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index d0242dd6812f2..74e30d37f6b7a 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8976,5 +8976,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.1.0-www-modern-909ed63e-20241216"; + exports.version = "19.1.0-www-modern-8dab5920-20241216"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 2b69b15a8d1de..dd2b1bc1f096d 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5898,4 +5898,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.1.0-www-classic-909ed63e-20241216"; +exports.version = "19.1.0-www-classic-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 46a3d8c622059..d17dcb2cd22e7 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5810,4 +5810,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.1.0-www-modern-909ed63e-20241216"; +exports.version = "19.1.0-www-modern-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 99f0268795554..28078269ba0bf 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -27713,11 +27713,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-909ed63e-20241216" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-8dab5920-20241216" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-classic-909ed63e-20241216\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-8dab5920-20241216\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27760,10 +27760,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28536,5 +28536,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-909ed63e-20241216"; + exports.version = "19.1.0-www-classic-8dab5920-20241216"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 00bfa0ea94eaf..0d3fcf4eb3868 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -27492,11 +27492,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-909ed63e-20241216" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-8dab5920-20241216" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-modern-909ed63e-20241216\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-8dab5920-20241216\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27539,10 +27539,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28315,5 +28315,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-909ed63e-20241216"; + exports.version = "19.1.0-www-modern-8dab5920-20241216"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 92db51cb5adcd..79c4635aa6d97 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -17545,14 +17545,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1794 = React.version; if ( - "19.1.0-www-classic-909ed63e-20241216" !== + "19.1.0-www-classic-8dab5920-20241216" !== isomorphicReactPackageVersion$jscomp$inline_1794 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1794, - "19.1.0-www-classic-909ed63e-20241216" + "19.1.0-www-classic-8dab5920-20241216" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17570,10 +17570,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2333 = { bundleType: 0, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2334 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18089,4 +18089,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-909ed63e-20241216"; +exports.version = "19.1.0-www-classic-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index dd3bbb7a180fe..b5a8839acb4ff 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -17276,14 +17276,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1784 = React.version; if ( - "19.1.0-www-modern-909ed63e-20241216" !== + "19.1.0-www-modern-8dab5920-20241216" !== isomorphicReactPackageVersion$jscomp$inline_1784 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1784, - "19.1.0-www-modern-909ed63e-20241216" + "19.1.0-www-modern-8dab5920-20241216" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17301,10 +17301,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2315 = { bundleType: 0, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2316 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17820,4 +17820,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-909ed63e-20241216"; +exports.version = "19.1.0-www-modern-8dab5920-20241216"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 0b82d531a066a..c79cd0f3e2732 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -19060,7 +19060,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 97ff05920ec83..91ecf149afbb6 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -18834,7 +18834,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 7fc41217b142d..2774162c4cb95 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -12781,7 +12781,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 95a2d84009b91..e16d3df8d85d5 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -12500,7 +12500,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 20e2652077011..1fb376f415215 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1109() { + function JSCompiler_object_inline_createNodeMock_1094() { return null; } function findHook(fiber, id) { @@ -8829,16 +8829,6 @@ __DEV__ && nearestMountedAncestor ); } - function commitClassDidMount(finishedWork) { - var instance = finishedWork.stateNode; - "function" === typeof instance.componentDidMount && - runWithFiberInDEV( - finishedWork, - callComponentDidMountInDEV, - finishedWork, - instance - ); - } function commitClassCallbacks(finishedWork) { var updateQueue = finishedWork.updateQueue; if (null !== updateQueue) { @@ -10032,175 +10022,193 @@ __DEV__ && commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), (parentFiber = parentFiber.sibling); } - function recursivelyTraverseDisappearLayoutEffects(parentFiber) { - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedWork = parentFiber; - switch (finishedWork.tag) { - case 0: - case 11: - case 14: - case 15: - commitHookLayoutUnmountEffects( + function disappearLayoutEffects(finishedWork) { + switch (finishedWork.tag) { + case 0: + case 11: + case 14: + case 15: + commitHookLayoutUnmountEffects( + finishedWork, + finishedWork.return, + Layout + ); + recursivelyTraverseDisappearLayoutEffects(finishedWork); + break; + case 1: + safelyDetachRef(finishedWork, finishedWork.return); + var instance = finishedWork.stateNode; + "function" === typeof instance.componentWillUnmount && + safelyCallComponentWillUnmount( finishedWork, finishedWork.return, - Layout + instance ); + recursivelyTraverseDisappearLayoutEffects(finishedWork); + break; + case 26: + case 27: + case 5: + safelyDetachRef(finishedWork, finishedWork.return); + recursivelyTraverseDisappearLayoutEffects(finishedWork); + break; + case 22: + safelyDetachRef(finishedWork, finishedWork.return); + null === finishedWork.memoizedState && recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 1: - safelyDetachRef(finishedWork, finishedWork.return); - var instance = finishedWork.stateNode; - "function" === typeof instance.componentWillUnmount && - safelyCallComponentWillUnmount( - finishedWork, - finishedWork.return, - instance - ); - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 26: - case 27: - case 5: - safelyDetachRef(finishedWork, finishedWork.return); - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 22: - safelyDetachRef(finishedWork, finishedWork.return); - null === finishedWork.memoizedState && - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - default: - recursivelyTraverseDisappearLayoutEffects(finishedWork); - } - parentFiber = parentFiber.sibling; + break; + default: + recursivelyTraverseDisappearLayoutEffects(finishedWork); } } - function recursivelyTraverseReappearLayoutEffects( - finishedRoot$jscomp$0, - parentFiber, - includeWorkInProgressEffects$jscomp$0 + function recursivelyTraverseDisappearLayoutEffects(parentFiber) { + for (parentFiber = parentFiber.child; null !== parentFiber; ) + disappearLayoutEffects(parentFiber), + (parentFiber = parentFiber.sibling); + } + function reappearLayoutEffects( + finishedRoot, + current, + finishedWork, + includeWorkInProgressEffects ) { - includeWorkInProgressEffects$jscomp$0 = - includeWorkInProgressEffects$jscomp$0 && - 0 !== (parentFiber.subtreeFlags & 8772); - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedRoot = finishedRoot$jscomp$0, - current = parentFiber.alternate, - finishedWork = parentFiber, - includeWorkInProgressEffects = includeWorkInProgressEffects$jscomp$0, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + var flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 15: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + commitHookLayoutEffects(finishedWork, Layout); + break; + case 1: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + current = finishedWork.stateNode; + "function" === typeof current.componentDidMount && + runWithFiberInDEV( finishedWork, - includeWorkInProgressEffects - ); - commitHookLayoutEffects(finishedWork, Layout); - break; - case 1: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + callComponentDidMountInDEV, finishedWork, - includeWorkInProgressEffects + current ); - commitClassDidMount(finishedWork); - current = finishedWork; - finishedRoot = current.updateQueue; - if (null !== finishedRoot) { - var instance = current.stateNode; - try { - runWithFiberInDEV( - current, - commitHiddenCallbacks, - finishedRoot, - instance - ); - } catch (error$14) { - captureCommitPhaseError(current, current.return, error$14); - } + current = finishedWork.updateQueue; + if (null !== current) { + finishedRoot = finishedWork.stateNode; + try { + runWithFiberInDEV( + finishedWork, + commitHiddenCallbacks, + current, + finishedRoot + ); + } catch (error$14) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$14 + ); } - includeWorkInProgressEffects && - flags & 64 && - commitClassCallbacks(finishedWork); - safelyAttachRef(finishedWork, finishedWork.return); - break; - case 26: - case 27: - case 5: + } + includeWorkInProgressEffects && + flags & 64 && + commitClassCallbacks(finishedWork); + safelyAttachRef(finishedWork, finishedWork.return); + break; + case 26: + case 27: + case 5: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + includeWorkInProgressEffects && + null === current && + flags & 4 && + commitHostMount(finishedWork); + safelyAttachRef(finishedWork, finishedWork.return); + break; + case 12: + if (includeWorkInProgressEffects && flags & 4) { + flags = pushNestedEffectDurations(); recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); - includeWorkInProgressEffects && - null === current && - flags & 4 && - commitHostMount(finishedWork); - safelyAttachRef(finishedWork, finishedWork.return); - break; - case 12: - if (includeWorkInProgressEffects && flags & 4) { - flags = pushNestedEffectDurations(); - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + includeWorkInProgressEffects = finishedWork.stateNode; + includeWorkInProgressEffects.effectDuration += + bubbleNestedEffectDurations(flags); + try { + runWithFiberInDEV( finishedWork, - includeWorkInProgressEffects + commitProfiler, + finishedWork, + current, + commitStartTime, + includeWorkInProgressEffects.effectDuration ); - includeWorkInProgressEffects = finishedWork.stateNode; - includeWorkInProgressEffects.effectDuration += - bubbleNestedEffectDurations(flags); - try { - runWithFiberInDEV( - finishedWork, - commitProfiler, - finishedWork, - current, - commitStartTime, - includeWorkInProgressEffects.effectDuration - ); - } catch (error$20) { - captureCommitPhaseError( - finishedWork, - finishedWork.return, - error$20 - ); - } - } else - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + } catch (error$20) { + captureCommitPhaseError( finishedWork, - includeWorkInProgressEffects + finishedWork.return, + error$20 ); - break; - case 13: + } + } else recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); - break; - case 22: - null === finishedWork.memoizedState && - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - safelyAttachRef(finishedWork, finishedWork.return); - break; - default: + break; + case 13: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + break; + case 22: + null === finishedWork.memoizedState && recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); - } - parentFiber = parentFiber.sibling; + safelyAttachRef(finishedWork, finishedWork.return); + break; + default: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); } } + function recursivelyTraverseReappearLayoutEffects( + finishedRoot, + parentFiber, + includeWorkInProgressEffects + ) { + includeWorkInProgressEffects = + includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); + for (parentFiber = parentFiber.child; null !== parentFiber; ) + reappearLayoutEffects( + finishedRoot, + parentFiber.alternate, + parentFiber, + includeWorkInProgressEffects + ), + (parentFiber = parentFiber.sibling); + } function commitOffscreenPassiveMountEffects(current, finishedWork) { var previousCache = null; null !== current && @@ -10371,92 +10379,98 @@ __DEV__ && } } function recursivelyTraverseReconnectPassiveEffects( - finishedRoot$jscomp$0, + finishedRoot, parentFiber, - committedLanes$jscomp$0, - committedTransitions$jscomp$0, - includeWorkInProgressEffects$jscomp$0 + committedLanes, + committedTransitions, + includeWorkInProgressEffects ) { - includeWorkInProgressEffects$jscomp$0 = - includeWorkInProgressEffects$jscomp$0 && + includeWorkInProgressEffects = + includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256); - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedRoot = finishedRoot$jscomp$0, - finishedWork = parentFiber, - committedLanes = committedLanes$jscomp$0, - committedTransitions = committedTransitions$jscomp$0, - includeWorkInProgressEffects = includeWorkInProgressEffects$jscomp$0, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - commitHookPassiveMountEffects(finishedWork, Passive); - break; - case 23: - break; - case 22: - var _instance2 = finishedWork.stateNode; - null !== finishedWork.memoizedState - ? _instance2._visibility & 4 - ? recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ) - : recursivelyTraverseAtomicPassiveEffects( - finishedRoot, - finishedWork - ) - : ((_instance2._visibility |= 4), - recursivelyTraverseReconnectPassiveEffects( + for (parentFiber = parentFiber.child; null !== parentFiber; ) + reconnectPassiveEffects( + finishedRoot, + parentFiber, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ), + (parentFiber = parentFiber.sibling); + } + function reconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ) { + var flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 15: + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ); + commitHookPassiveMountEffects(finishedWork, Passive); + break; + case 23: + break; + case 22: + var _instance2 = finishedWork.stateNode; + null !== finishedWork.memoizedState + ? _instance2._visibility & 4 + ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects - )); - includeWorkInProgressEffects && - flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork - ); - break; - case 24: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - includeWorkInProgressEffects && - flags & 2048 && - commitCachePassiveMountEffect( - finishedWork.alternate, - finishedWork - ); - break; - default: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects + ) + : recursivelyTraverseAtomicPassiveEffects( + finishedRoot, + finishedWork + ) + : ((_instance2._visibility |= 4), + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + )); + includeWorkInProgressEffects && + flags & 2048 && + commitOffscreenPassiveMountEffects( + finishedWork.alternate, + finishedWork ); - } - parentFiber = parentFiber.sibling; + break; + case 24: + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ); + includeWorkInProgressEffects && + flags & 2048 && + commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); + break; + default: + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ); } } function recursivelyTraverseAtomicPassiveEffects( @@ -10621,29 +10635,30 @@ __DEV__ && } detachAlternateSiblings(parentFiber); } - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - deletions = parentFiber; - switch (deletions.tag) { - case 0: - case 11: - case 15: - commitHookPassiveUnmountEffects( - deletions, - deletions.return, - Passive - ); - recursivelyTraverseDisconnectPassiveEffects(deletions); - break; - case 22: - i = deletions.stateNode; - i._visibility & 4 && - ((i._visibility &= -5), - recursivelyTraverseDisconnectPassiveEffects(deletions)); - break; - default: - recursivelyTraverseDisconnectPassiveEffects(deletions); - } - parentFiber = parentFiber.sibling; + for (parentFiber = parentFiber.child; null !== parentFiber; ) + disconnectPassiveEffect(parentFiber), + (parentFiber = parentFiber.sibling); + } + function disconnectPassiveEffect(finishedWork) { + switch (finishedWork.tag) { + case 0: + case 11: + case 15: + commitHookPassiveUnmountEffects( + finishedWork, + finishedWork.return, + Passive + ); + recursivelyTraverseDisconnectPassiveEffects(finishedWork); + break; + case 22: + var instance = finishedWork.stateNode; + instance._visibility & 4 && + ((instance._visibility &= -5), + recursivelyTraverseDisconnectPassiveEffects(finishedWork)); + break; + default: + recursivelyTraverseDisconnectPassiveEffects(finishedWork); } } function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( @@ -10694,46 +10709,6 @@ __DEV__ && } } } - function invokeLayoutEffectMountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(Layout | HasEffect, fiber); - break; - case 1: - commitClassDidMount(fiber); - } - } - function invokePassiveEffectMountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(Passive | HasEffect, fiber); - } - } - function invokeLayoutEffectUnmountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return); - break; - case 1: - var instance = fiber.stateNode; - "function" === typeof instance.componentWillUnmount && - safelyCallComponentWillUnmount(fiber, fiber.return, instance); - } - } - function invokePassiveEffectUnmountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(Passive | HasEffect, fiber, fiber.return); - } - } function isConcurrentActEnvironment() { var isReactActEnvironmentGlobal = "undefined" !== typeof IS_REACT_ACT_ENVIRONMENT @@ -11807,13 +11782,7 @@ __DEV__ && (rootWithPassiveNestedUpdates = null)); remainingLanes = root.pendingLanes; 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - transitions || - runWithFiberInDEV( - root.current, - legacyCommitDoubleInvokeEffectsInDEV, - root.current, - !1 - ); + transitions || commitDoubleInvokeEffectsInDEV(root); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); ensureRootIsScheduled(root); if (null !== recoverableErrors) @@ -11901,12 +11870,7 @@ __DEV__ && lanes, priority ); - runWithFiberInDEV( - root$jscomp$0.current, - legacyCommitDoubleInvokeEffectsInDEV, - root$jscomp$0.current, - !0 - ); + commitDoubleInvokeEffectsInDEV(root$jscomp$0); executionContext = prevExecutionContext; flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects @@ -12077,29 +12041,74 @@ __DEV__ && null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } - function legacyCommitDoubleInvokeEffectsInDEV(fiber, hasPassiveEffects) { - invokeEffectsInDev(fiber, 67108864, invokeLayoutEffectUnmountInDEV); - hasPassiveEffects && - invokeEffectsInDev(fiber, 134217728, invokePassiveEffectUnmountInDEV); - invokeEffectsInDev(fiber, 67108864, invokeLayoutEffectMountInDEV); - hasPassiveEffects && - invokeEffectsInDev(fiber, 134217728, invokePassiveEffectMountInDEV); - } - function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) { - for (var subtreeRoot = null; null != firstChild; ) { - var primarySubtreeFlag = firstChild.subtreeFlags & fiberFlags; - firstChild !== subtreeRoot && - null != firstChild.child && - 0 !== primarySubtreeFlag - ? (firstChild = firstChild.child) - : (0 !== (firstChild.flags & fiberFlags) && - invokeEffectFn(firstChild), - (firstChild = - null !== firstChild.sibling - ? firstChild.sibling - : (subtreeRoot = firstChild.return))); + function recursivelyTraverseAndDoubleInvokeEffectsInDEV( + root$jscomp$0, + parentFiber, + isInStrictMode + ) { + if (0 !== (parentFiber.subtreeFlags & 33562624)) + for (parentFiber = parentFiber.child; null !== parentFiber; ) { + var root = root$jscomp$0, + fiber = parentFiber, + isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; + isStrictModeFiber = isInStrictMode || isStrictModeFiber; + 22 !== fiber.tag + ? fiber.flags & 33554432 + ? isStrictModeFiber && + runWithFiberInDEV( + fiber, + doubleInvokeEffectsOnFiber, + root, + fiber, + 0 === (fiber.mode & 64) + ) + : recursivelyTraverseAndDoubleInvokeEffectsInDEV( + root, + fiber, + isStrictModeFiber + ) + : null === fiber.memoizedState && + (isStrictModeFiber && fiber.flags & 8192 + ? runWithFiberInDEV( + fiber, + doubleInvokeEffectsOnFiber, + root, + fiber + ) + : fiber.subtreeFlags & 33554432 && + runWithFiberInDEV( + fiber, + recursivelyTraverseAndDoubleInvokeEffectsInDEV, + root, + fiber, + isStrictModeFiber + )); + parentFiber = parentFiber.sibling; + } + } + function doubleInvokeEffectsOnFiber(root, fiber) { + var shouldDoubleInvokePassiveEffects = + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !0; + setIsStrictModeForDevtools(!0); + try { + disappearLayoutEffects(fiber), + shouldDoubleInvokePassiveEffects && disconnectPassiveEffect(fiber), + reappearLayoutEffects(root, fiber.alternate, fiber, !1), + shouldDoubleInvokePassiveEffects && + reconnectPassiveEffects(root, fiber, 0, null, !1); + } finally { + setIsStrictModeForDevtools(!1); } } + function commitDoubleInvokeEffectsInDEV(root) { + var doubleInvokeEffects = !0; + root.current.mode & 24 || (doubleInvokeEffects = !1); + recursivelyTraverseAndDoubleInvokeEffectsInDEV( + root, + root.current, + doubleInvokeEffects + ); + } function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { if ((executionContext & RenderContext) === NoContext) { var tag = fiber.tag; @@ -15003,10 +15012,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-909ed63e-20241216", + version: "19.1.0-www-classic-8dab5920-20241216", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15026,7 +15035,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1109, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1094, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -15141,5 +15150,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-classic-909ed63e-20241216"; + exports.version = "19.1.0-www-classic-8dab5920-20241216"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index e96447a795a66..fb10f276362a8 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1109() { + function JSCompiler_object_inline_createNodeMock_1094() { return null; } function findHook(fiber, id) { @@ -8829,16 +8829,6 @@ __DEV__ && nearestMountedAncestor ); } - function commitClassDidMount(finishedWork) { - var instance = finishedWork.stateNode; - "function" === typeof instance.componentDidMount && - runWithFiberInDEV( - finishedWork, - callComponentDidMountInDEV, - finishedWork, - instance - ); - } function commitClassCallbacks(finishedWork) { var updateQueue = finishedWork.updateQueue; if (null !== updateQueue) { @@ -10032,175 +10022,193 @@ __DEV__ && commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), (parentFiber = parentFiber.sibling); } - function recursivelyTraverseDisappearLayoutEffects(parentFiber) { - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedWork = parentFiber; - switch (finishedWork.tag) { - case 0: - case 11: - case 14: - case 15: - commitHookLayoutUnmountEffects( + function disappearLayoutEffects(finishedWork) { + switch (finishedWork.tag) { + case 0: + case 11: + case 14: + case 15: + commitHookLayoutUnmountEffects( + finishedWork, + finishedWork.return, + Layout + ); + recursivelyTraverseDisappearLayoutEffects(finishedWork); + break; + case 1: + safelyDetachRef(finishedWork, finishedWork.return); + var instance = finishedWork.stateNode; + "function" === typeof instance.componentWillUnmount && + safelyCallComponentWillUnmount( finishedWork, finishedWork.return, - Layout + instance ); + recursivelyTraverseDisappearLayoutEffects(finishedWork); + break; + case 26: + case 27: + case 5: + safelyDetachRef(finishedWork, finishedWork.return); + recursivelyTraverseDisappearLayoutEffects(finishedWork); + break; + case 22: + safelyDetachRef(finishedWork, finishedWork.return); + null === finishedWork.memoizedState && recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 1: - safelyDetachRef(finishedWork, finishedWork.return); - var instance = finishedWork.stateNode; - "function" === typeof instance.componentWillUnmount && - safelyCallComponentWillUnmount( - finishedWork, - finishedWork.return, - instance - ); - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 26: - case 27: - case 5: - safelyDetachRef(finishedWork, finishedWork.return); - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - case 22: - safelyDetachRef(finishedWork, finishedWork.return); - null === finishedWork.memoizedState && - recursivelyTraverseDisappearLayoutEffects(finishedWork); - break; - default: - recursivelyTraverseDisappearLayoutEffects(finishedWork); - } - parentFiber = parentFiber.sibling; + break; + default: + recursivelyTraverseDisappearLayoutEffects(finishedWork); } } - function recursivelyTraverseReappearLayoutEffects( - finishedRoot$jscomp$0, - parentFiber, - includeWorkInProgressEffects$jscomp$0 + function recursivelyTraverseDisappearLayoutEffects(parentFiber) { + for (parentFiber = parentFiber.child; null !== parentFiber; ) + disappearLayoutEffects(parentFiber), + (parentFiber = parentFiber.sibling); + } + function reappearLayoutEffects( + finishedRoot, + current, + finishedWork, + includeWorkInProgressEffects ) { - includeWorkInProgressEffects$jscomp$0 = - includeWorkInProgressEffects$jscomp$0 && - 0 !== (parentFiber.subtreeFlags & 8772); - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedRoot = finishedRoot$jscomp$0, - current = parentFiber.alternate, - finishedWork = parentFiber, - includeWorkInProgressEffects = includeWorkInProgressEffects$jscomp$0, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + var flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 15: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + commitHookLayoutEffects(finishedWork, Layout); + break; + case 1: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + current = finishedWork.stateNode; + "function" === typeof current.componentDidMount && + runWithFiberInDEV( finishedWork, - includeWorkInProgressEffects - ); - commitHookLayoutEffects(finishedWork, Layout); - break; - case 1: - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + callComponentDidMountInDEV, finishedWork, - includeWorkInProgressEffects + current ); - commitClassDidMount(finishedWork); - current = finishedWork; - finishedRoot = current.updateQueue; - if (null !== finishedRoot) { - var instance = current.stateNode; - try { - runWithFiberInDEV( - current, - commitHiddenCallbacks, - finishedRoot, - instance - ); - } catch (error$14) { - captureCommitPhaseError(current, current.return, error$14); - } + current = finishedWork.updateQueue; + if (null !== current) { + finishedRoot = finishedWork.stateNode; + try { + runWithFiberInDEV( + finishedWork, + commitHiddenCallbacks, + current, + finishedRoot + ); + } catch (error$14) { + captureCommitPhaseError( + finishedWork, + finishedWork.return, + error$14 + ); } - includeWorkInProgressEffects && - flags & 64 && - commitClassCallbacks(finishedWork); - safelyAttachRef(finishedWork, finishedWork.return); - break; - case 26: - case 27: - case 5: + } + includeWorkInProgressEffects && + flags & 64 && + commitClassCallbacks(finishedWork); + safelyAttachRef(finishedWork, finishedWork.return); + break; + case 26: + case 27: + case 5: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + includeWorkInProgressEffects && + null === current && + flags & 4 && + commitHostMount(finishedWork); + safelyAttachRef(finishedWork, finishedWork.return); + break; + case 12: + if (includeWorkInProgressEffects && flags & 4) { + flags = pushNestedEffectDurations(); recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); - includeWorkInProgressEffects && - null === current && - flags & 4 && - commitHostMount(finishedWork); - safelyAttachRef(finishedWork, finishedWork.return); - break; - case 12: - if (includeWorkInProgressEffects && flags & 4) { - flags = pushNestedEffectDurations(); - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + includeWorkInProgressEffects = finishedWork.stateNode; + includeWorkInProgressEffects.effectDuration += + bubbleNestedEffectDurations(flags); + try { + runWithFiberInDEV( finishedWork, - includeWorkInProgressEffects + commitProfiler, + finishedWork, + current, + commitStartTime, + includeWorkInProgressEffects.effectDuration ); - includeWorkInProgressEffects = finishedWork.stateNode; - includeWorkInProgressEffects.effectDuration += - bubbleNestedEffectDurations(flags); - try { - runWithFiberInDEV( - finishedWork, - commitProfiler, - finishedWork, - current, - commitStartTime, - includeWorkInProgressEffects.effectDuration - ); - } catch (error$20) { - captureCommitPhaseError( - finishedWork, - finishedWork.return, - error$20 - ); - } - } else - recursivelyTraverseReappearLayoutEffects( - finishedRoot, + } catch (error$20) { + captureCommitPhaseError( finishedWork, - includeWorkInProgressEffects + finishedWork.return, + error$20 ); - break; - case 13: + } + } else recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); - break; - case 22: - null === finishedWork.memoizedState && - recursivelyTraverseReappearLayoutEffects( - finishedRoot, - finishedWork, - includeWorkInProgressEffects - ); - safelyAttachRef(finishedWork, finishedWork.return); - break; - default: + break; + case 13: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); + break; + case 22: + null === finishedWork.memoizedState && recursivelyTraverseReappearLayoutEffects( finishedRoot, finishedWork, includeWorkInProgressEffects ); - } - parentFiber = parentFiber.sibling; + safelyAttachRef(finishedWork, finishedWork.return); + break; + default: + recursivelyTraverseReappearLayoutEffects( + finishedRoot, + finishedWork, + includeWorkInProgressEffects + ); } } + function recursivelyTraverseReappearLayoutEffects( + finishedRoot, + parentFiber, + includeWorkInProgressEffects + ) { + includeWorkInProgressEffects = + includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); + for (parentFiber = parentFiber.child; null !== parentFiber; ) + reappearLayoutEffects( + finishedRoot, + parentFiber.alternate, + parentFiber, + includeWorkInProgressEffects + ), + (parentFiber = parentFiber.sibling); + } function commitOffscreenPassiveMountEffects(current, finishedWork) { var previousCache = null; null !== current && @@ -10371,92 +10379,98 @@ __DEV__ && } } function recursivelyTraverseReconnectPassiveEffects( - finishedRoot$jscomp$0, + finishedRoot, parentFiber, - committedLanes$jscomp$0, - committedTransitions$jscomp$0, - includeWorkInProgressEffects$jscomp$0 + committedLanes, + committedTransitions, + includeWorkInProgressEffects ) { - includeWorkInProgressEffects$jscomp$0 = - includeWorkInProgressEffects$jscomp$0 && + includeWorkInProgressEffects = + includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256); - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var finishedRoot = finishedRoot$jscomp$0, - finishedWork = parentFiber, - committedLanes = committedLanes$jscomp$0, - committedTransitions = committedTransitions$jscomp$0, - includeWorkInProgressEffects = includeWorkInProgressEffects$jscomp$0, - flags = finishedWork.flags; - switch (finishedWork.tag) { - case 0: - case 11: - case 15: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - commitHookPassiveMountEffects(finishedWork, Passive); - break; - case 23: - break; - case 22: - var _instance2 = finishedWork.stateNode; - null !== finishedWork.memoizedState - ? _instance2._visibility & 4 - ? recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ) - : recursivelyTraverseAtomicPassiveEffects( - finishedRoot, - finishedWork - ) - : ((_instance2._visibility |= 4), - recursivelyTraverseReconnectPassiveEffects( + for (parentFiber = parentFiber.child; null !== parentFiber; ) + reconnectPassiveEffects( + finishedRoot, + parentFiber, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ), + (parentFiber = parentFiber.sibling); + } + function reconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ) { + var flags = finishedWork.flags; + switch (finishedWork.tag) { + case 0: + case 11: + case 15: + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ); + commitHookPassiveMountEffects(finishedWork, Passive); + break; + case 23: + break; + case 22: + var _instance2 = finishedWork.stateNode; + null !== finishedWork.memoizedState + ? _instance2._visibility & 4 + ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, committedLanes, committedTransitions, includeWorkInProgressEffects - )); - includeWorkInProgressEffects && - flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork - ); - break; - case 24: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects - ); - includeWorkInProgressEffects && - flags & 2048 && - commitCachePassiveMountEffect( - finishedWork.alternate, - finishedWork - ); - break; - default: - recursivelyTraverseReconnectPassiveEffects( - finishedRoot, - finishedWork, - committedLanes, - committedTransitions, - includeWorkInProgressEffects + ) + : recursivelyTraverseAtomicPassiveEffects( + finishedRoot, + finishedWork + ) + : ((_instance2._visibility |= 4), + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + )); + includeWorkInProgressEffects && + flags & 2048 && + commitOffscreenPassiveMountEffects( + finishedWork.alternate, + finishedWork ); - } - parentFiber = parentFiber.sibling; + break; + case 24: + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ); + includeWorkInProgressEffects && + flags & 2048 && + commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); + break; + default: + recursivelyTraverseReconnectPassiveEffects( + finishedRoot, + finishedWork, + committedLanes, + committedTransitions, + includeWorkInProgressEffects + ); } } function recursivelyTraverseAtomicPassiveEffects( @@ -10621,29 +10635,30 @@ __DEV__ && } detachAlternateSiblings(parentFiber); } - for (parentFiber = parentFiber.child; null !== parentFiber; ) { - deletions = parentFiber; - switch (deletions.tag) { - case 0: - case 11: - case 15: - commitHookPassiveUnmountEffects( - deletions, - deletions.return, - Passive - ); - recursivelyTraverseDisconnectPassiveEffects(deletions); - break; - case 22: - i = deletions.stateNode; - i._visibility & 4 && - ((i._visibility &= -5), - recursivelyTraverseDisconnectPassiveEffects(deletions)); - break; - default: - recursivelyTraverseDisconnectPassiveEffects(deletions); - } - parentFiber = parentFiber.sibling; + for (parentFiber = parentFiber.child; null !== parentFiber; ) + disconnectPassiveEffect(parentFiber), + (parentFiber = parentFiber.sibling); + } + function disconnectPassiveEffect(finishedWork) { + switch (finishedWork.tag) { + case 0: + case 11: + case 15: + commitHookPassiveUnmountEffects( + finishedWork, + finishedWork.return, + Passive + ); + recursivelyTraverseDisconnectPassiveEffects(finishedWork); + break; + case 22: + var instance = finishedWork.stateNode; + instance._visibility & 4 && + ((instance._visibility &= -5), + recursivelyTraverseDisconnectPassiveEffects(finishedWork)); + break; + default: + recursivelyTraverseDisconnectPassiveEffects(finishedWork); } } function commitPassiveUnmountEffectsInsideOfDeletedTree_begin( @@ -10694,46 +10709,6 @@ __DEV__ && } } } - function invokeLayoutEffectMountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(Layout | HasEffect, fiber); - break; - case 1: - commitClassDidMount(fiber); - } - } - function invokePassiveEffectMountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListMount(Passive | HasEffect, fiber); - } - } - function invokeLayoutEffectUnmountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(Layout | HasEffect, fiber, fiber.return); - break; - case 1: - var instance = fiber.stateNode; - "function" === typeof instance.componentWillUnmount && - safelyCallComponentWillUnmount(fiber, fiber.return, instance); - } - } - function invokePassiveEffectUnmountInDEV(fiber) { - switch (fiber.tag) { - case 0: - case 11: - case 15: - commitHookEffectListUnmount(Passive | HasEffect, fiber, fiber.return); - } - } function isConcurrentActEnvironment() { var isReactActEnvironmentGlobal = "undefined" !== typeof IS_REACT_ACT_ENVIRONMENT @@ -11807,13 +11782,7 @@ __DEV__ && (rootWithPassiveNestedUpdates = null)); remainingLanes = root.pendingLanes; 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null); - transitions || - runWithFiberInDEV( - root.current, - legacyCommitDoubleInvokeEffectsInDEV, - root.current, - !1 - ); + transitions || commitDoubleInvokeEffectsInDEV(root); onCommitRoot(finishedWork.stateNode, renderPriorityLevel); ensureRootIsScheduled(root); if (null !== recoverableErrors) @@ -11901,12 +11870,7 @@ __DEV__ && lanes, priority ); - runWithFiberInDEV( - root$jscomp$0.current, - legacyCommitDoubleInvokeEffectsInDEV, - root$jscomp$0.current, - !0 - ); + commitDoubleInvokeEffectsInDEV(root$jscomp$0); executionContext = prevExecutionContext; flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects @@ -12077,29 +12041,74 @@ __DEV__ && null !== retryCache && retryCache.delete(wakeable); retryTimedOutBoundary(boundaryFiber, retryLane); } - function legacyCommitDoubleInvokeEffectsInDEV(fiber, hasPassiveEffects) { - invokeEffectsInDev(fiber, 67108864, invokeLayoutEffectUnmountInDEV); - hasPassiveEffects && - invokeEffectsInDev(fiber, 134217728, invokePassiveEffectUnmountInDEV); - invokeEffectsInDev(fiber, 67108864, invokeLayoutEffectMountInDEV); - hasPassiveEffects && - invokeEffectsInDev(fiber, 134217728, invokePassiveEffectMountInDEV); - } - function invokeEffectsInDev(firstChild, fiberFlags, invokeEffectFn) { - for (var subtreeRoot = null; null != firstChild; ) { - var primarySubtreeFlag = firstChild.subtreeFlags & fiberFlags; - firstChild !== subtreeRoot && - null != firstChild.child && - 0 !== primarySubtreeFlag - ? (firstChild = firstChild.child) - : (0 !== (firstChild.flags & fiberFlags) && - invokeEffectFn(firstChild), - (firstChild = - null !== firstChild.sibling - ? firstChild.sibling - : (subtreeRoot = firstChild.return))); + function recursivelyTraverseAndDoubleInvokeEffectsInDEV( + root$jscomp$0, + parentFiber, + isInStrictMode + ) { + if (0 !== (parentFiber.subtreeFlags & 33562624)) + for (parentFiber = parentFiber.child; null !== parentFiber; ) { + var root = root$jscomp$0, + fiber = parentFiber, + isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; + isStrictModeFiber = isInStrictMode || isStrictModeFiber; + 22 !== fiber.tag + ? fiber.flags & 33554432 + ? isStrictModeFiber && + runWithFiberInDEV( + fiber, + doubleInvokeEffectsOnFiber, + root, + fiber, + 0 === (fiber.mode & 64) + ) + : recursivelyTraverseAndDoubleInvokeEffectsInDEV( + root, + fiber, + isStrictModeFiber + ) + : null === fiber.memoizedState && + (isStrictModeFiber && fiber.flags & 8192 + ? runWithFiberInDEV( + fiber, + doubleInvokeEffectsOnFiber, + root, + fiber + ) + : fiber.subtreeFlags & 33554432 && + runWithFiberInDEV( + fiber, + recursivelyTraverseAndDoubleInvokeEffectsInDEV, + root, + fiber, + isStrictModeFiber + )); + parentFiber = parentFiber.sibling; + } + } + function doubleInvokeEffectsOnFiber(root, fiber) { + var shouldDoubleInvokePassiveEffects = + 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : !0; + setIsStrictModeForDevtools(!0); + try { + disappearLayoutEffects(fiber), + shouldDoubleInvokePassiveEffects && disconnectPassiveEffect(fiber), + reappearLayoutEffects(root, fiber.alternate, fiber, !1), + shouldDoubleInvokePassiveEffects && + reconnectPassiveEffects(root, fiber, 0, null, !1); + } finally { + setIsStrictModeForDevtools(!1); } } + function commitDoubleInvokeEffectsInDEV(root) { + var doubleInvokeEffects = !0; + root.current.mode & 24 || (doubleInvokeEffects = !1); + recursivelyTraverseAndDoubleInvokeEffectsInDEV( + root, + root.current, + doubleInvokeEffects + ); + } function warnAboutUpdateOnNotYetMountedFiberInDEV(fiber) { if ((executionContext & RenderContext) === NoContext) { var tag = fiber.tag; @@ -15003,10 +15012,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-909ed63e-20241216", + version: "19.1.0-www-modern-8dab5920-20241216", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216" + reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15026,7 +15035,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1109, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1094, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -15141,5 +15150,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-modern-909ed63e-20241216"; + exports.version = "19.1.0-www-modern-8dab5920-20241216"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 088e91b4c8d53..5939cc7649af9 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-909ed63e-20241216 \ No newline at end of file +19.1.0-www-classic-8dab5920-20241216 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 808b23974d82f..52c4183682612 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-909ed63e-20241216 \ No newline at end of file +19.1.0-www-modern-8dab5920-20241216 \ No newline at end of file