From 78620c30f728176e23f19c0f99ad1769cd1af91e Mon Sep 17 00:00:00 2001 From: "pull[bot]" Date: Tue, 10 Dec 2024 17:08:31 -0800 Subject: [PATCH] react-hooks/rules-of-hooks: Improve support for `do/while` loops (#31720) DiffTrain build for [7c4a7c9ddf2f1c8e223565af1256ea201ec0f303](https://github.com/facebook/react/commit/7c4a7c9ddf2f1c8e223565af1256ea201ec0f303) --- 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 +- compiled/facebook-www/React-profiling.classic.js | 2 +- compiled/facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 6 +++--- compiled/facebook-www/ReactART-dev.modern.js | 6 +++--- compiled/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 +++++----- compiled/facebook-www/ReactDOM-prod.classic.js | 10 +++++----- compiled/facebook-www/ReactDOM-prod.modern.js | 10 +++++----- .../facebook-www/ReactDOM-profiling.classic.js | 10 +++++----- .../facebook-www/ReactDOM-profiling.modern.js | 10 +++++----- .../facebook-www/ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../facebook-www/ReactDOMServer-prod.classic.js | 2 +- .../facebook-www/ReactDOMServer-prod.modern.js | 2 +- .../facebook-www/ReactDOMTesting-dev.classic.js | 10 +++++----- .../facebook-www/ReactDOMTesting-dev.modern.js | 10 +++++----- .../facebook-www/ReactDOMTesting-prod.classic.js | 10 +++++----- .../facebook-www/ReactDOMTesting-prod.modern.js | 10 +++++----- .../facebook-www/ReactReconciler-dev.classic.js | 2 +- .../facebook-www/ReactReconciler-dev.modern.js | 2 +- .../facebook-www/ReactReconciler-prod.classic.js | 2 +- .../facebook-www/ReactReconciler-prod.modern.js | 2 +- .../ReactTestRenderer-dev.classic.js | 6 +++--- .../facebook-www/ReactTestRenderer-dev.modern.js | 6 +++--- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- .../facebook-www/eslint-plugin-react-hooks.js | 16 ++++++++++++---- 35 files changed, 98 insertions(+), 90 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 115784112b4a6..c78ca31ce40dd 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -4a8fc0f92e0f75257962522b51a938bf4dfda77a +7c4a7c9ddf2f1c8e223565af1256ea201ec0f303 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 115784112b4a6..c78ca31ce40dd 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -4a8fc0f92e0f75257962522b51a938bf4dfda77a +7c4a7c9ddf2f1c8e223565af1256ea201ec0f303 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 1143c8de61274..94bbce84868a0 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1841,7 +1841,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; "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 5ab75bc10db8d..3ad98da31bb9d 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1841,7 +1841,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; "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 fc8efc10285ba..cf7261f1dc8ce 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -634,4 +634,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index decdb2ab4692c..cff91e6011fb5 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -634,4 +634,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index dae3705a1f1f5..3f92d1b75bfb6 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -638,7 +638,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; "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 08037db30e5d3..72a5b2f9f839d 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -638,7 +638,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; "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 6dcd2dfa3c64f..3505805b474c4 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -17126,10 +17126,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17163,7 +17163,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; "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 342d87dd9243c..0f2e5250478cb 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -16889,10 +16889,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16926,7 +16926,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; "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 5e52d99ec3b04..760adf7c9cf0c 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -10827,10 +10827,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1509 = { bundleType: 0, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1510 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10856,4 +10856,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 17472f1a40d65..8c75861ec9ea8 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -10543,10 +10543,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1488 = { bundleType: 0, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1489 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10572,4 +10572,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index de5fd7776d894..d882c57f17c0d 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -27569,11 +27569,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-4a8fc0f9-20241210" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-7c4a7c9d-20241210" !== 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.0.0-www-classic-4a8fc0f9-20241210\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-7c4a7c9d-20241210\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27616,10 +27616,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28224,7 +28224,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; "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 7a2a6cfd15973..d4fbb4d8be982 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -27348,11 +27348,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-4a8fc0f9-20241210" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-7c4a7c9d-20241210" !== 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.0.0-www-modern-4a8fc0f9-20241210\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-7c4a7c9d-20241210\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27395,10 +27395,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28003,7 +28003,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; "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 c40ff7589bb90..3b63ba1648eab 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -17277,14 +17277,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version; if ( - "19.0.0-www-classic-4a8fc0f9-20241210" !== + "19.0.0-www-classic-7c4a7c9d-20241210" !== isomorphicReactPackageVersion$jscomp$inline_1774 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1774, - "19.0.0-www-classic-4a8fc0f9-20241210" + "19.0.0-www-classic-7c4a7c9d-20241210" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17302,10 +17302,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2315 = { bundleType: 0, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2316 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17668,4 +17668,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 94bf7b02b18f7..3aafbc432929c 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -17008,14 +17008,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1764 = React.version; if ( - "19.0.0-www-modern-4a8fc0f9-20241210" !== + "19.0.0-www-modern-7c4a7c9d-20241210" !== isomorphicReactPackageVersion$jscomp$inline_1764 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1764, - "19.0.0-www-modern-4a8fc0f9-20241210" + "19.0.0-www-modern-7c4a7c9d-20241210" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17033,10 +17033,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2297 = { bundleType: 0, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2298 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17399,4 +17399,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 68ffdfd5093f6..41fb09cacfc00 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -17966,14 +17966,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1867 = React.version; if ( - "19.0.0-www-classic-4a8fc0f9-20241210" !== + "19.0.0-www-classic-7c4a7c9d-20241210" !== isomorphicReactPackageVersion$jscomp$inline_1867 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1867, - "19.0.0-www-classic-4a8fc0f9-20241210" + "19.0.0-www-classic-7c4a7c9d-20241210" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17991,10 +17991,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1869 = { bundleType: 0, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; enableSchedulingProfiler && ((internals$jscomp$inline_1869.getLaneLabelMap = getLaneLabelMap), @@ -18360,7 +18360,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; "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 43921c6807147..4c1d638f61023 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -17696,14 +17696,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1857 = React.version; if ( - "19.0.0-www-modern-4a8fc0f9-20241210" !== + "19.0.0-www-modern-7c4a7c9d-20241210" !== isomorphicReactPackageVersion$jscomp$inline_1857 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1857, - "19.0.0-www-modern-4a8fc0f9-20241210" + "19.0.0-www-modern-7c4a7c9d-20241210" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17721,10 +17721,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1859 = { bundleType: 0, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; enableSchedulingProfiler && ((internals$jscomp$inline_1859.getLaneLabelMap = getLaneLabelMap), @@ -18090,7 +18090,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; "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 57ffb232d96ad..84eefe0babf14 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -8991,5 +8991,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.0.0-www-classic-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index ec5a569e85cc7..e9039f2bbe886 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8809,5 +8809,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.0.0-www-modern-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index ab18aacfcaf61..ea54ffed7e03c 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5910,4 +5910,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.0.0-www-classic-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 72bba5537be10..ac0eaf88be71f 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5822,4 +5822,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.0.0-www-modern-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 7acedc721fb71..bbc615488ce33 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -27903,11 +27903,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-4a8fc0f9-20241210" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-7c4a7c9d-20241210" !== 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.0.0-www-classic-4a8fc0f9-20241210\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-7c4a7c9d-20241210\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27950,10 +27950,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28724,5 +28724,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 1464745eb9e46..19f6774ebd809 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -27682,11 +27682,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-4a8fc0f9-20241210" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-7c4a7c9d-20241210" !== 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.0.0-www-modern-4a8fc0f9-20241210\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-7c4a7c9d-20241210\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27729,10 +27729,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28503,5 +28503,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 54d84d5510cec..cb03fd7850533 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -17606,14 +17606,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1803 = React.version; if ( - "19.0.0-www-classic-4a8fc0f9-20241210" !== + "19.0.0-www-classic-7c4a7c9d-20241210" !== isomorphicReactPackageVersion$jscomp$inline_1803 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1803, - "19.0.0-www-classic-4a8fc0f9-20241210" + "19.0.0-www-classic-7c4a7c9d-20241210" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17631,10 +17631,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2349 = { bundleType: 0, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2350 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18148,4 +18148,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index d7aea526ef6d9..4a7056ffe1cd2 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -17337,14 +17337,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1793 = React.version; if ( - "19.0.0-www-modern-4a8fc0f9-20241210" !== + "19.0.0-www-modern-7c4a7c9d-20241210" !== isomorphicReactPackageVersion$jscomp$inline_1793 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1793, - "19.0.0-www-modern-4a8fc0f9-20241210" + "19.0.0-www-modern-7c4a7c9d-20241210" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17362,10 +17362,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2331 = { bundleType: 0, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2332 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17879,4 +17879,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; +exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 548105845b369..a40d063ff6431 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -19278,7 +19278,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index f7fdc82ba5f29..6e3c0b9dea45c 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -19052,7 +19052,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 7c082bc5a2bb2..5e40bd414116d 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -12851,7 +12851,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index aca987e2b9483..3ba06f709afb9 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -12570,7 +12570,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index db435463ffff8..4601c9ef8cfc9 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -15030,10 +15030,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-4a8fc0f9-20241210", + version: "19.0.0-www-classic-7c4a7c9d-20241210", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-classic-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15168,5 +15168,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-classic-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-classic-7c4a7c9d-20241210"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 6f7725c885a00..c05fe4abf6b63 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -15030,10 +15030,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-4a8fc0f9-20241210", + version: "19.0.0-www-modern-7c4a7c9d-20241210", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-4a8fc0f9-20241210" + reconcilerVersion: "19.0.0-www-modern-7c4a7c9d-20241210" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15168,5 +15168,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-modern-4a8fc0f9-20241210"; + exports.version = "19.0.0-www-modern-7c4a7c9d-20241210"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index d1e8fbc40bb33..d4578be0d58fd 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-4a8fc0f9-20241210 \ No newline at end of file +19.0.0-www-classic-7c4a7c9d-20241210 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 2c32d9ef4bd64..12e64ee112103 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-4a8fc0f9-20241210 \ No newline at end of file +19.0.0-www-modern-7c4a7c9d-20241210 \ No newline at end of file diff --git a/compiled/facebook-www/eslint-plugin-react-hooks.js b/compiled/facebook-www/eslint-plugin-react-hooks.js index 8569e01a4ec12..973e9ff8b0851 100644 --- a/compiled/facebook-www/eslint-plugin-react-hooks.js +++ b/compiled/facebook-www/eslint-plugin-react-hooks.js @@ -141,6 +141,13 @@ } return !1; } + function isInsideDoWhileLoop(node) { + for (; node; ) { + if ("DoWhileStatement" === node.type) return !0; + node = node.parent; + } + return !1; + } function isUseEffectEventIdentifier$1(node) { return "Identifier" === node.type && "useEffectEvent" === node.name; } @@ -700,7 +707,7 @@ pathHistory = new Set(pathHistory); if (pathHistory.has(segment.id)) { cache = Array.from(pathHistory); - segment = cache.slice(cache.indexOf(segment.id) - 1); + segment = cache.slice(cache.indexOf(segment.id) + 1); segment = _createForOfIteratorHelper(segment); var _step5; try { @@ -830,8 +837,8 @@ ) { var hook = _step10.value; - cycled && - !isReactFunction(hook, "use") && + (!cycled && !isInsideDoWhileLoop(hook)) || + isReactFunction(hook, "use") || context.report({ node: hook, message: @@ -852,7 +859,8 @@ !cycled && pathsFromStartToEnd !== allPathsFromStartToEnd && - !isReactFunction(hook, "use")) + !isReactFunction(hook, "use") && + !isInsideDoWhileLoop(hook)) ) { var message = 'React Hook "' +