diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index a404c80f59..b0bbc865ab 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -51a7c45f8799cab903693fcfdd305ce84ba15273 +f77099b6f1ccc658eff3467c6b9337e1b77ec854 diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 304625280c..60a50e767e 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-b092829f"; +var ReactVersion = "18.3.0-www-classic-6cfaaf36"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -9737,21 +9737,6 @@ function useRef(initialValue) { } } -function useLayoutEffect(create, inputs) { - { - currentHookNameInDev = "useLayoutEffect"; - - error( - "useLayoutEffect does nothing on the server, because its effect cannot " + - "be encoded into the server renderer's output format. This will lead " + - "to a mismatch between the initial, non-hydrated UI and the intended " + - "UI. To avoid this, useLayoutEffect should only be used in " + - "components that render exclusively on the client. " + - "See https://reactjs.org/link/uselayouteffect-ssr for common fixes." - ); - } -} - function dispatchAction(componentIdentity, queue, action) { if (numberOfReRenders >= RE_RENDER_LIMIT) { throw new Error( @@ -9914,7 +9899,7 @@ var HooksDispatcher = { useRef: useRef, useState: useState, useInsertionEffect: noop$1, - useLayoutEffect: useLayoutEffect, + useLayoutEffect: noop$1, useCallback: useCallback, // useImperativeHandle is not run in the server environment useImperativeHandle: noop$1, diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index d6e70e44df..354fb3c819 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-ec55733c"; +var ReactVersion = "18.3.0-www-modern-51b09081"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -9496,21 +9496,6 @@ function useRef(initialValue) { } } -function useLayoutEffect(create, inputs) { - { - currentHookNameInDev = "useLayoutEffect"; - - error( - "useLayoutEffect does nothing on the server, because its effect cannot " + - "be encoded into the server renderer's output format. This will lead " + - "to a mismatch between the initial, non-hydrated UI and the intended " + - "UI. To avoid this, useLayoutEffect should only be used in " + - "components that render exclusively on the client. " + - "See https://reactjs.org/link/uselayouteffect-ssr for common fixes." - ); - } -} - function dispatchAction(componentIdentity, queue, action) { if (numberOfReRenders >= RE_RENDER_LIMIT) { throw new Error( @@ -9673,7 +9658,7 @@ var HooksDispatcher = { useRef: useRef, useState: useState, useInsertionEffect: noop$1, - useLayoutEffect: useLayoutEffect, + useLayoutEffect: noop$1, useCallback: useCallback, // useImperativeHandle is not run in the server environment useImperativeHandle: noop$1, diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index f1fe048b07..bbd334055f 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -2395,7 +2395,7 @@ var HooksDispatcher = { return useReducer(basicStateReducer, initialState); }, useInsertionEffect: noop$1, - useLayoutEffect: function () {}, + useLayoutEffect: noop$1, useCallback: function (callback, deps) { return useMemo(function () { return callback; @@ -3791,4 +3791,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-589bfcce"; +exports.version = "18.3.0-www-classic-6b3bdd74"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index f714112bae..708c436e77 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -2328,7 +2328,7 @@ var HooksDispatcher = { return useReducer(basicStateReducer, initialState); }, useInsertionEffect: noop$1, - useLayoutEffect: function () {}, + useLayoutEffect: noop$1, useCallback: function (callback, deps) { return useMemo(function () { return callback; @@ -3688,4 +3688,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-5ac25261"; +exports.version = "18.3.0-www-modern-ee5be7f3"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index a63d08099f..fbefff04dd 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -9388,21 +9388,6 @@ function useRef(initialValue) { } } -function useLayoutEffect(create, inputs) { - { - currentHookNameInDev = "useLayoutEffect"; - - error( - "useLayoutEffect does nothing on the server, because its effect cannot " + - "be encoded into the server renderer's output format. This will lead " + - "to a mismatch between the initial, non-hydrated UI and the intended " + - "UI. To avoid this, useLayoutEffect should only be used in " + - "components that render exclusively on the client. " + - "See https://reactjs.org/link/uselayouteffect-ssr for common fixes." - ); - } -} - function dispatchAction(componentIdentity, queue, action) { if (numberOfReRenders >= RE_RENDER_LIMIT) { throw new Error( @@ -9565,7 +9550,7 @@ var HooksDispatcher = { useRef: useRef, useState: useState, useInsertionEffect: noop$1, - useLayoutEffect: useLayoutEffect, + useLayoutEffect: noop$1, useCallback: useCallback, // useImperativeHandle is not run in the server environment useImperativeHandle: noop$1, diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 7f201a2af7..9bde111ed9 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -2360,7 +2360,7 @@ var HooksDispatcher = { return useReducer(basicStateReducer, initialState); }, useInsertionEffect: noop$1, - useLayoutEffect: function () {}, + useLayoutEffect: noop$1, useCallback: function (callback, deps) { return useMemo(function () { return callback; diff --git a/compiled/facebook-www/WARNINGS b/compiled/facebook-www/WARNINGS index c94338cdd3..a285210d95 100644 --- a/compiled/facebook-www/WARNINGS +++ b/compiled/facebook-www/WARNINGS @@ -400,7 +400,6 @@ "unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s" "unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React." "useInsertionEffect must not schedule updates." -"useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes." "validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s" "validateDOMNesting(...): %s cannot appear as a descendant of <%s>." "validateDOMNesting: when childText is passed, childTag should be null"