diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 6aa0ca1ab2..52d1646bbf 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -caa716d50bdeef3a1ac5e3e0cfcc14f4d91f2028 +d6dcad6a8beaeec0513a9851d1e0fe1181932360 diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index e438fc10cf..c46b988626 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-classic-360a070f"; +var ReactVersion = "18.3.0-www-classic-a7988d89"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -10392,11 +10392,10 @@ function finishFunctionComponent( ) { var didEmitFormStateMarkers = false; - if (formStateCount !== 0) { + if (formStateCount !== 0 && request.formState !== null) { // For each useFormState hook, emit a marker that indicates whether we - // rendered using the form state passed at the root. - // TODO: As an optimization, Fizz should only emit these markers if form - // state is passed at the root. + // rendered using the form state passed at the root. We only emit these + // markers if form state is passed at the root. var segment = task.blockedSegment; if (segment === null); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index a490c8426a..3850dc5456 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-modern-b814d906"; +var ReactVersion = "18.3.0-www-modern-de2d6098"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -10140,11 +10140,10 @@ function finishFunctionComponent( ) { var didEmitFormStateMarkers = false; - if (formStateCount !== 0) { + if (formStateCount !== 0 && request.formState !== null) { // For each useFormState hook, emit a marker that indicates whether we - // rendered using the form state passed at the root. - // TODO: As an optimization, Fizz should only emit these markers if form - // state is passed at the root. + // rendered using the form state passed at the root. We only emit these + // markers if form state is passed at the root. var segment = task.blockedSegment; if (segment === null); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 8c30155eb5..c45619df51 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -3063,7 +3063,7 @@ function finishFunctionComponent( formStateMatchingIndex ) { var didEmitFormStateMarkers = !1; - if (0 !== formStateCount) { + if (0 !== formStateCount && null !== request.formState) { var segment = task.blockedSegment; if (null !== segment) { didEmitFormStateMarkers = !0; @@ -4556,4 +4556,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 = "18.3.0-www-classic-f04a97ef"; +exports.version = "18.3.0-www-classic-5dc27933"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index c91401559e..72258d195c 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -3055,7 +3055,7 @@ function finishFunctionComponent( formStateMatchingIndex ) { var didEmitFormStateMarkers = !1; - if (0 !== formStateCount) { + if (0 !== formStateCount && null !== request.formState) { var segment = task.blockedSegment; if (null !== segment) { didEmitFormStateMarkers = !0; @@ -4523,4 +4523,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 = "18.3.0-www-modern-b31a402c"; +exports.version = "18.3.0-www-modern-a538c776"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index d2f3aee27e..05052873ef 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -10043,11 +10043,10 @@ function finishFunctionComponent( ) { var didEmitFormStateMarkers = false; - if (formStateCount !== 0) { + if (formStateCount !== 0 && request.formState !== null) { // For each useFormState hook, emit a marker that indicates whether we - // rendered using the form state passed at the root. - // TODO: As an optimization, Fizz should only emit these markers if form - // state is passed at the root. + // rendered using the form state passed at the root. We only emit these + // markers if form state is passed at the root. var segment = task.blockedSegment; if (segment === null); diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index f25e38ed8a..200204bc0d 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -2849,7 +2849,7 @@ function finishFunctionComponent( formStateMatchingIndex ) { var didEmitFormStateMarkers = !1; - if (0 !== formStateCount) { + if (0 !== formStateCount && null !== request.formState) { var segment = task.blockedSegment; if (null !== segment) { didEmitFormStateMarkers = !0; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index b400b78838..85e4e5a3eb 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -24360,7 +24360,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-f5e6bf9d"; +var ReactVersion = "18.3.0-www-modern-fa8b400b"; // Might add PROFILE later.