From 6aa2f23d6ecd9ebccecc3ad7f07103d05f34fdf9 Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Thu, 22 May 2025 07:26:32 -0700 Subject: [PATCH] [Fizz] Track boundaries in future rows as postponed (#33329) Follow up to #33321. We can mark boundaries that were blocked in the prerender as postponed but without anything to replayed inside them. That way they're not emitted in the prerender but is unblocked when replayed. Technically this does some unnecessary replaying of the path to the otherwise already completed boundary but it simplifies our model by just marking the boundary as needing replaying. DiffTrain build for [99781d605b6a6fd332bba654ac0c328e41df888c](https://github.com/facebook/react/commit/99781d605b6a6fd332bba654ac0c328e41df888c) --- 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 | 184 ++++++++++---- .../facebook-www/ReactDOMServer-dev.modern.js | 184 ++++++++++---- .../ReactDOMServer-prod.classic.js | 234 +++++++++++------- .../ReactDOMServer-prod.modern.js | 234 +++++++++++------- .../ReactDOMServerStreaming-dev.modern.js | 180 ++++++++++---- .../ReactDOMServerStreaming-prod.modern.js | 195 ++++++++++----- .../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 | 6 +- .../ReactTestRenderer-dev.modern.js | 6 +- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 36 files changed, 892 insertions(+), 483 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 011a64d574..6bb7f72216 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -459a2c4298187cb0ee45605e2575ff35f4a81183 +99781d605b6a6fd332bba654ac0c328e41df888c diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 011a64d574..6bb7f72216 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -459a2c4298187cb0ee45605e2575ff35f4a81183 +99781d605b6a6fd332bba654ac0c328e41df888c diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 00bacce0d3..a3b99c55fe 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1537,7 +1537,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-www-classic-459a2c42-20250521"; + exports.version = "19.2.0-www-classic-99781d60-20250522"; "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 19af3bebac..f34eb5c746 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1537,7 +1537,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-www-modern-459a2c42-20250521"; + exports.version = "19.2.0-www-modern-99781d60-20250522"; "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 d74feee9bd..e8817d0639 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-classic-459a2c42-20250521"; +exports.version = "19.2.0-www-classic-99781d60-20250522"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index b61932a4a7..7c14c6173e 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-modern-459a2c42-20250521"; +exports.version = "19.2.0-www-modern-99781d60-20250522"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 19ecfc227d..8f74df1947 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-classic-459a2c42-20250521"; +exports.version = "19.2.0-www-classic-99781d60-20250522"; "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 0165d645c4..597425e8ad 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-www-modern-459a2c42-20250521"; +exports.version = "19.2.0-www-modern-99781d60-20250522"; "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 f6dd13bb7c..cc0cf7dd6f 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -19080,10 +19080,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-www-classic-459a2c42-20250521", + version: "19.2.0-www-classic-99781d60-20250522", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-classic-99781d60-20250522" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -19117,7 +19117,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.2.0-www-classic-459a2c42-20250521"; + exports.version = "19.2.0-www-classic-99781d60-20250522"; "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 5b5101a87e..86a2731a78 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -18852,10 +18852,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-www-modern-459a2c42-20250521", + version: "19.2.0-www-modern-99781d60-20250522", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-modern-99781d60-20250522" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -18889,7 +18889,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.2.0-www-modern-459a2c42-20250521"; + exports.version = "19.2.0-www-modern-99781d60-20250522"; "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 468e5b920c..5cd9038c52 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -11392,10 +11392,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1624 = { bundleType: 0, - version: "19.2.0-www-classic-459a2c42-20250521", + version: "19.2.0-www-classic-99781d60-20250522", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-classic-99781d60-20250522" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1625 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11421,4 +11421,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.2.0-www-classic-459a2c42-20250521"; +exports.version = "19.2.0-www-classic-99781d60-20250522"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 05b44b55eb..83580346a1 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -11104,10 +11104,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1597 = { bundleType: 0, - version: "19.2.0-www-modern-459a2c42-20250521", + version: "19.2.0-www-modern-99781d60-20250522", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-modern-99781d60-20250522" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1598 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11133,4 +11133,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.2.0-www-modern-459a2c42-20250521"; +exports.version = "19.2.0-www-modern-99781d60-20250522"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index d54e417fbc..e6740fe874 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -31452,11 +31452,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-www-classic-459a2c42-20250521" !== isomorphicReactPackageVersion) + if ("19.2.0-www-classic-99781d60-20250522" !== 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.2.0-www-classic-459a2c42-20250521\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-www-classic-99781d60-20250522\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31499,10 +31499,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-www-classic-459a2c42-20250521", + version: "19.2.0-www-classic-99781d60-20250522", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-classic-99781d60-20250522" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -32102,7 +32102,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-www-classic-459a2c42-20250521"; + exports.version = "19.2.0-www-classic-99781d60-20250522"; "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 4c6187a18c..7557a86211 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -31238,11 +31238,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-www-modern-459a2c42-20250521" !== isomorphicReactPackageVersion) + if ("19.2.0-www-modern-99781d60-20250522" !== 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.2.0-www-modern-459a2c42-20250521\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-www-modern-99781d60-20250522\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -31285,10 +31285,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-www-modern-459a2c42-20250521", + version: "19.2.0-www-modern-99781d60-20250522", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-modern-99781d60-20250522" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -31888,7 +31888,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-www-modern-459a2c42-20250521"; + exports.version = "19.2.0-www-modern-99781d60-20250522"; "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 db7f311f14..f856a50c89 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -19566,14 +19566,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2083 = React.version; if ( - "19.2.0-www-classic-459a2c42-20250521" !== + "19.2.0-www-classic-99781d60-20250522" !== isomorphicReactPackageVersion$jscomp$inline_2083 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2083, - "19.2.0-www-classic-459a2c42-20250521" + "19.2.0-www-classic-99781d60-20250522" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19591,10 +19591,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2696 = { bundleType: 0, - version: "19.2.0-www-classic-459a2c42-20250521", + version: "19.2.0-www-classic-99781d60-20250522", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-classic-99781d60-20250522" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2697 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -20006,4 +20006,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-classic-459a2c42-20250521"; +exports.version = "19.2.0-www-classic-99781d60-20250522"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index c74ab5a760..35bbc1313a 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -19295,14 +19295,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2073 = React.version; if ( - "19.2.0-www-modern-459a2c42-20250521" !== + "19.2.0-www-modern-99781d60-20250522" !== isomorphicReactPackageVersion$jscomp$inline_2073 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2073, - "19.2.0-www-modern-459a2c42-20250521" + "19.2.0-www-modern-99781d60-20250522" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19320,10 +19320,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2678 = { bundleType: 0, - version: "19.2.0-www-modern-459a2c42-20250521", + version: "19.2.0-www-modern-99781d60-20250522", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-modern-99781d60-20250522" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2679 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19735,4 +19735,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-modern-459a2c42-20250521"; +exports.version = "19.2.0-www-modern-99781d60-20250522"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 7b14b205f5..3badbe673c 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -21548,14 +21548,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2327 = React.version; if ( - "19.2.0-www-classic-459a2c42-20250521" !== + "19.2.0-www-classic-99781d60-20250522" !== isomorphicReactPackageVersion$jscomp$inline_2327 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2327, - "19.2.0-www-classic-459a2c42-20250521" + "19.2.0-www-classic-99781d60-20250522" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -21573,10 +21573,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2329 = { bundleType: 0, - version: "19.2.0-www-classic-459a2c42-20250521", + version: "19.2.0-www-classic-99781d60-20250522", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-classic-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-classic-99781d60-20250522" }; enableSchedulingProfiler && ((internals$jscomp$inline_2329.getLaneLabelMap = getLaneLabelMap), @@ -21991,7 +21991,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-classic-459a2c42-20250521"; +exports.version = "19.2.0-www-classic-99781d60-20250522"; "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 dd036d3a58..43ab523ba8 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -21346,14 +21346,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_2317 = React.version; if ( - "19.2.0-www-modern-459a2c42-20250521" !== + "19.2.0-www-modern-99781d60-20250522" !== isomorphicReactPackageVersion$jscomp$inline_2317 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2317, - "19.2.0-www-modern-459a2c42-20250521" + "19.2.0-www-modern-99781d60-20250522" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -21371,10 +21371,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2319 = { bundleType: 0, - version: "19.2.0-www-modern-459a2c42-20250521", + version: "19.2.0-www-modern-99781d60-20250522", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-www-modern-459a2c42-20250521" + reconcilerVersion: "19.2.0-www-modern-99781d60-20250522" }; enableSchedulingProfiler && ((internals$jscomp$inline_2319.getLaneLabelMap = getLaneLabelMap), @@ -21789,7 +21789,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-www-modern-459a2c42-20250521"; +exports.version = "19.2.0-www-modern-99781d60-20250522"; "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 f2f09e998e..efda87ad4b 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -7354,67 +7354,129 @@ __DEV__ && queueCompletedSegment(boundary, childSegment); } else boundary.completedSegments.push(segment); } - function finishedTask(request, boundary, row, segment) { + function finishedTask(request$jscomp$0, boundary$jscomp$0, row, segment) { null !== row && (0 === --row.pendingTasks - ? finishSuspenseListRow(request, row) - : row.together && tryToResolveTogetherRow(request, row)); - request.allPendingTasks--; - if (null === boundary) { + ? finishSuspenseListRow(request$jscomp$0, row) + : row.together && tryToResolveTogetherRow(request$jscomp$0, row)); + request$jscomp$0.allPendingTasks--; + if (null === boundary$jscomp$0) { if (null !== segment && segment.parentFlushed) { - if (null !== request.completedRootSegment) + if (null !== request$jscomp$0.completedRootSegment) throw Error( "There can only be one root segment. This is a bug in React." ); - request.completedRootSegment = segment; + request$jscomp$0.completedRootSegment = segment; } - request.pendingRootTasks--; - 0 === request.pendingRootTasks && completeShell(request); - } else - boundary.pendingTasks--, - boundary.status !== CLIENT_RENDERED && - (0 === boundary.pendingTasks - ? (boundary.status === PENDING && (boundary.status = COMPLETED), - null !== segment && - segment.parentFlushed && - segment.status === COMPLETED && - queueCompletedSegment(boundary, segment), - boundary.parentFlushed && - request.completedBoundaries.push(boundary), - boundary.status === COMPLETED - ? ((row = boundary.row), - null !== row && - hoistHoistables(row.hoistables, boundary.contentState), - 500 < boundary.byteSize || - (boundary.fallbackAbortableTasks.forEach( - abortTaskSoft, - request - ), - boundary.fallbackAbortableTasks.clear(), - null !== row && - 0 === --row.pendingTasks && - finishSuspenseListRow(request, row)), - 0 === request.pendingRootTasks && - null === request.trackedPostpones && - null !== boundary.contentPreamble && - preparePreamble(request)) - : boundary.status === POSTPONED && - ((boundary = boundary.row), - null !== boundary && - 0 === --boundary.pendingTasks && - finishSuspenseListRow(request, boundary))) - : (null !== segment && - segment.parentFlushed && - segment.status === COMPLETED && - (queueCompletedSegment(boundary, segment), - 1 === boundary.completedSegments.length && - boundary.parentFlushed && - request.partialBoundaries.push(boundary)), - (boundary = boundary.row), - null !== boundary && - boundary.together && - tryToResolveTogetherRow(request, boundary))); - 0 === request.allPendingTasks && completeAll(request); + request$jscomp$0.pendingRootTasks--; + 0 === request$jscomp$0.pendingRootTasks && + completeShell(request$jscomp$0); + } else if ( + (boundary$jscomp$0.pendingTasks--, + boundary$jscomp$0.status !== CLIENT_RENDERED) + ) + if (0 === boundary$jscomp$0.pendingTasks) + if ( + (boundary$jscomp$0.status === PENDING && + (boundary$jscomp$0.status = COMPLETED), + null !== segment && + segment.parentFlushed && + segment.status === COMPLETED && + queueCompletedSegment(boundary$jscomp$0, segment), + boundary$jscomp$0.parentFlushed && + request$jscomp$0.completedBoundaries.push(boundary$jscomp$0), + boundary$jscomp$0.status === COMPLETED) + ) + (row = boundary$jscomp$0.row), + null !== row && + hoistHoistables(row.hoistables, boundary$jscomp$0.contentState), + 500 < boundary$jscomp$0.byteSize || + (boundary$jscomp$0.fallbackAbortableTasks.forEach( + abortTaskSoft, + request$jscomp$0 + ), + boundary$jscomp$0.fallbackAbortableTasks.clear(), + null !== row && + 0 === --row.pendingTasks && + finishSuspenseListRow(request$jscomp$0, row)), + 0 === request$jscomp$0.pendingRootTasks && + null === request$jscomp$0.trackedPostpones && + null !== boundary$jscomp$0.contentPreamble && + preparePreamble(request$jscomp$0); + else { + if ( + boundary$jscomp$0.status === POSTPONED && + ((boundary$jscomp$0 = boundary$jscomp$0.row), + null !== boundary$jscomp$0) + ) { + if (null !== request$jscomp$0.trackedPostpones) { + row = request$jscomp$0.trackedPostpones; + var postponedRow = boundary$jscomp$0.next; + if ( + null !== postponedRow && + ((segment = postponedRow.boundaries), null !== segment) + ) + for ( + postponedRow.boundaries = null, postponedRow = 0; + postponedRow < segment.length; + postponedRow++ + ) { + var postponedBoundary = segment[postponedRow]; + var request = request$jscomp$0, + trackedPostpones = row, + boundary = postponedBoundary; + boundary.status = POSTPONED; + boundary.rootSegmentID = request.nextSegmentId++; + request = boundary.trackedContentKeyPath; + if (null === request) + throw Error( + "It should not be possible to postpone at the root. This is a bug in React." + ); + var fallbackReplayNode = boundary.trackedFallbackNode, + children = [], + boundaryNode = trackedPostpones.workingMap.get(request); + void 0 === boundaryNode + ? ((boundary = [ + request[1], + request[2], + children, + null, + fallbackReplayNode, + boundary.rootSegmentID + ]), + trackedPostpones.workingMap.set(request, boundary), + addToReplayParent( + boundary, + request[0], + trackedPostpones + )) + : ((boundaryNode[4] = fallbackReplayNode), + (boundaryNode[5] = boundary.rootSegmentID)); + finishedTask( + request$jscomp$0, + postponedBoundary, + null, + null + ); + } + } + 0 === --boundary$jscomp$0.pendingTasks && + finishSuspenseListRow(request$jscomp$0, boundary$jscomp$0); + } + } + else + null !== segment && + segment.parentFlushed && + segment.status === COMPLETED && + (queueCompletedSegment(boundary$jscomp$0, segment), + 1 === boundary$jscomp$0.completedSegments.length && + boundary$jscomp$0.parentFlushed && + request$jscomp$0.partialBoundaries.push(boundary$jscomp$0)), + (boundary$jscomp$0 = boundary$jscomp$0.row), + null !== boundary$jscomp$0 && + boundary$jscomp$0.together && + tryToResolveTogetherRow(request$jscomp$0, boundary$jscomp$0); + 0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0); } function performWork(request$jscomp$2) { if ( @@ -8498,6 +8560,18 @@ __DEV__ && fatalError(request, error$4, reason, null); } } + function addToReplayParent(node, parentKeyPath, trackedPostpones) { + if (null === parentKeyPath) trackedPostpones.rootNodes.push(node); + else { + var workingMap = trackedPostpones.workingMap, + parentNode = workingMap.get(parentKeyPath); + void 0 === parentNode && + ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]), + workingMap.set(parentKeyPath, parentNode), + addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones)); + parentNode[2].push(node); + } + } function onError() {} function renderToStringImpl( children, @@ -10046,5 +10120,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.2.0-www-classic-459a2c42-20250521"; + exports.version = "19.2.0-www-classic-99781d60-20250522"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index d5a958a47b..a702ebdeec 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -7287,67 +7287,129 @@ __DEV__ && queueCompletedSegment(boundary, childSegment); } else boundary.completedSegments.push(segment); } - function finishedTask(request, boundary, row, segment) { + function finishedTask(request$jscomp$0, boundary$jscomp$0, row, segment) { null !== row && (0 === --row.pendingTasks - ? finishSuspenseListRow(request, row) - : row.together && tryToResolveTogetherRow(request, row)); - request.allPendingTasks--; - if (null === boundary) { + ? finishSuspenseListRow(request$jscomp$0, row) + : row.together && tryToResolveTogetherRow(request$jscomp$0, row)); + request$jscomp$0.allPendingTasks--; + if (null === boundary$jscomp$0) { if (null !== segment && segment.parentFlushed) { - if (null !== request.completedRootSegment) + if (null !== request$jscomp$0.completedRootSegment) throw Error( "There can only be one root segment. This is a bug in React." ); - request.completedRootSegment = segment; + request$jscomp$0.completedRootSegment = segment; } - request.pendingRootTasks--; - 0 === request.pendingRootTasks && completeShell(request); - } else - boundary.pendingTasks--, - boundary.status !== CLIENT_RENDERED && - (0 === boundary.pendingTasks - ? (boundary.status === PENDING && (boundary.status = COMPLETED), - null !== segment && - segment.parentFlushed && - segment.status === COMPLETED && - queueCompletedSegment(boundary, segment), - boundary.parentFlushed && - request.completedBoundaries.push(boundary), - boundary.status === COMPLETED - ? ((row = boundary.row), - null !== row && - hoistHoistables(row.hoistables, boundary.contentState), - 500 < boundary.byteSize || - (boundary.fallbackAbortableTasks.forEach( - abortTaskSoft, - request - ), - boundary.fallbackAbortableTasks.clear(), - null !== row && - 0 === --row.pendingTasks && - finishSuspenseListRow(request, row)), - 0 === request.pendingRootTasks && - null === request.trackedPostpones && - null !== boundary.contentPreamble && - preparePreamble(request)) - : boundary.status === POSTPONED && - ((boundary = boundary.row), - null !== boundary && - 0 === --boundary.pendingTasks && - finishSuspenseListRow(request, boundary))) - : (null !== segment && - segment.parentFlushed && - segment.status === COMPLETED && - (queueCompletedSegment(boundary, segment), - 1 === boundary.completedSegments.length && - boundary.parentFlushed && - request.partialBoundaries.push(boundary)), - (boundary = boundary.row), - null !== boundary && - boundary.together && - tryToResolveTogetherRow(request, boundary))); - 0 === request.allPendingTasks && completeAll(request); + request$jscomp$0.pendingRootTasks--; + 0 === request$jscomp$0.pendingRootTasks && + completeShell(request$jscomp$0); + } else if ( + (boundary$jscomp$0.pendingTasks--, + boundary$jscomp$0.status !== CLIENT_RENDERED) + ) + if (0 === boundary$jscomp$0.pendingTasks) + if ( + (boundary$jscomp$0.status === PENDING && + (boundary$jscomp$0.status = COMPLETED), + null !== segment && + segment.parentFlushed && + segment.status === COMPLETED && + queueCompletedSegment(boundary$jscomp$0, segment), + boundary$jscomp$0.parentFlushed && + request$jscomp$0.completedBoundaries.push(boundary$jscomp$0), + boundary$jscomp$0.status === COMPLETED) + ) + (row = boundary$jscomp$0.row), + null !== row && + hoistHoistables(row.hoistables, boundary$jscomp$0.contentState), + 500 < boundary$jscomp$0.byteSize || + (boundary$jscomp$0.fallbackAbortableTasks.forEach( + abortTaskSoft, + request$jscomp$0 + ), + boundary$jscomp$0.fallbackAbortableTasks.clear(), + null !== row && + 0 === --row.pendingTasks && + finishSuspenseListRow(request$jscomp$0, row)), + 0 === request$jscomp$0.pendingRootTasks && + null === request$jscomp$0.trackedPostpones && + null !== boundary$jscomp$0.contentPreamble && + preparePreamble(request$jscomp$0); + else { + if ( + boundary$jscomp$0.status === POSTPONED && + ((boundary$jscomp$0 = boundary$jscomp$0.row), + null !== boundary$jscomp$0) + ) { + if (null !== request$jscomp$0.trackedPostpones) { + row = request$jscomp$0.trackedPostpones; + var postponedRow = boundary$jscomp$0.next; + if ( + null !== postponedRow && + ((segment = postponedRow.boundaries), null !== segment) + ) + for ( + postponedRow.boundaries = null, postponedRow = 0; + postponedRow < segment.length; + postponedRow++ + ) { + var postponedBoundary = segment[postponedRow]; + var request = request$jscomp$0, + trackedPostpones = row, + boundary = postponedBoundary; + boundary.status = POSTPONED; + boundary.rootSegmentID = request.nextSegmentId++; + request = boundary.trackedContentKeyPath; + if (null === request) + throw Error( + "It should not be possible to postpone at the root. This is a bug in React." + ); + var fallbackReplayNode = boundary.trackedFallbackNode, + children = [], + boundaryNode = trackedPostpones.workingMap.get(request); + void 0 === boundaryNode + ? ((boundary = [ + request[1], + request[2], + children, + null, + fallbackReplayNode, + boundary.rootSegmentID + ]), + trackedPostpones.workingMap.set(request, boundary), + addToReplayParent( + boundary, + request[0], + trackedPostpones + )) + : ((boundaryNode[4] = fallbackReplayNode), + (boundaryNode[5] = boundary.rootSegmentID)); + finishedTask( + request$jscomp$0, + postponedBoundary, + null, + null + ); + } + } + 0 === --boundary$jscomp$0.pendingTasks && + finishSuspenseListRow(request$jscomp$0, boundary$jscomp$0); + } + } + else + null !== segment && + segment.parentFlushed && + segment.status === COMPLETED && + (queueCompletedSegment(boundary$jscomp$0, segment), + 1 === boundary$jscomp$0.completedSegments.length && + boundary$jscomp$0.parentFlushed && + request$jscomp$0.partialBoundaries.push(boundary$jscomp$0)), + (boundary$jscomp$0 = boundary$jscomp$0.row), + null !== boundary$jscomp$0 && + boundary$jscomp$0.together && + tryToResolveTogetherRow(request$jscomp$0, boundary$jscomp$0); + 0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0); } function performWork(request$jscomp$2) { if ( @@ -8431,6 +8493,18 @@ __DEV__ && fatalError(request, error$4, reason, null); } } + function addToReplayParent(node, parentKeyPath, trackedPostpones) { + if (null === parentKeyPath) trackedPostpones.rootNodes.push(node); + else { + var workingMap = trackedPostpones.workingMap, + parentNode = workingMap.get(parentKeyPath); + void 0 === parentNode && + ((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]), + workingMap.set(parentKeyPath, parentNode), + addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones)); + parentNode[2].push(node); + } + } function onError() {} function renderToStringImpl( children, @@ -9975,5 +10049,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.2.0-www-modern-459a2c42-20250521"; + exports.version = "19.2.0-www-modern-99781d60-20250522"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 34352aac1d..8ea0bafba2 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -2906,16 +2906,16 @@ function createRenderState(resumableState, generateStaticMarkup) { "\x3c/script>" )); bootstrapScriptContent = idPrefix + "P:"; - var JSCompiler_object_inline_segmentPrefix_1828 = idPrefix + "S:"; + var JSCompiler_object_inline_segmentPrefix_1845 = idPrefix + "S:"; idPrefix += "B:"; - var JSCompiler_object_inline_preconnects_1841 = new Set(), - JSCompiler_object_inline_fontPreloads_1842 = new Set(), - JSCompiler_object_inline_highImagePreloads_1843 = new Set(), - JSCompiler_object_inline_styles_1844 = new Map(), - JSCompiler_object_inline_bootstrapScripts_1845 = new Set(), - JSCompiler_object_inline_scripts_1846 = new Set(), - JSCompiler_object_inline_bulkPreloads_1847 = new Set(), - JSCompiler_object_inline_preloads_1848 = { + var JSCompiler_object_inline_preconnects_1858 = new Set(), + JSCompiler_object_inline_fontPreloads_1859 = new Set(), + JSCompiler_object_inline_highImagePreloads_1860 = new Set(), + JSCompiler_object_inline_styles_1861 = new Map(), + JSCompiler_object_inline_bootstrapScripts_1862 = new Set(), + JSCompiler_object_inline_scripts_1863 = new Set(), + JSCompiler_object_inline_bulkPreloads_1864 = new Set(), + JSCompiler_object_inline_preloads_1865 = { images: new Map(), stylesheets: new Map(), scripts: new Map(), @@ -2952,7 +2952,7 @@ function createRenderState(resumableState, generateStaticMarkup) { scriptConfig.moduleScriptResources[href] = null; scriptConfig = []; pushLinkImpl(scriptConfig, props); - JSCompiler_object_inline_bootstrapScripts_1845.add(scriptConfig); + JSCompiler_object_inline_bootstrapScripts_1862.add(scriptConfig); bootstrapChunks.push('