From 7ea335a4c8baeb5839d6bccfd78e582007f0a3d7 Mon Sep 17 00:00:00 2001 From: rickhanlonii Date: Tue, 9 Apr 2024 03:26:13 +0000 Subject: [PATCH] Soften useFormState warning (#28788) It's not deprecated, it's really just renamed. Let's make the warning less scary. DiffTrain build for commit https://github.com/facebook/react/commit/9644d206e8d92d0e31a9252d78933a48c62eb427. --- .../react-test-renderer/cjs/ReactTestRenderer-dev.js | 8 ++++---- .../js/react-native-github/Libraries/Renderer/REVISION | 2 +- .../Renderer/implementations/ReactFabric-dev.fb.js | 8 ++++---- .../implementations/ReactNativeRenderer-dev.fb.js | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js index 40cc8cea405f2..5f75cc04fb888 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<6e42bfca9701ca8864d4f9604499cd79>> + * @generated SignedSource<> */ "use strict"; @@ -7956,8 +7956,8 @@ if (__DEV__) { didWarnAboutUseFormState.add(componentName); error( - "ReactDOM.useFormState has been deprecated and replaced by " + - "React.useActionState. Please update %s to use React.useActionState.", + "ReactDOM.useFormState has been renamed to React.useActionState. " + + "Please update %s to use React.useActionState.", componentName ); } @@ -26590,7 +26590,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-canary-0c4d3f45"; + var ReactVersion = "19.0.0-canary-8e2720f2"; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index adba7d17dc418..16b1366047d8a 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -d50323eb845c5fde0d720cae888bf35dedd05506 +9644d206e8d92d0e31a9252d78933a48c62eb427 diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index 8b4ef9d240097..534e08027c521 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<0a8d8b8854497345c20ddcfdc4519d53>> + * @generated SignedSource<> */ "use strict"; @@ -11411,8 +11411,8 @@ to return true:wantsResponderID| | didWarnAboutUseFormState.add(componentName); error( - "ReactDOM.useFormState has been deprecated and replaced by " + - "React.useActionState. Please update %s to use React.useActionState.", + "ReactDOM.useFormState has been renamed to React.useActionState. " + + "Please update %s to use React.useActionState.", componentName ); } @@ -30237,7 +30237,7 @@ to return true:wantsResponderID| | return root; } - var ReactVersion = "19.0.0-canary-ba45b8b0"; + var ReactVersion = "19.0.0-canary-0c451732"; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index 7a17bd889b903..080f63357be67 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<37233a4ad08d9bcf021f585ac680bdb6>> */ "use strict"; @@ -11682,8 +11682,8 @@ to return true:wantsResponderID| | didWarnAboutUseFormState.add(componentName); error( - "ReactDOM.useFormState has been deprecated and replaced by " + - "React.useActionState. Please update %s to use React.useActionState.", + "ReactDOM.useFormState has been renamed to React.useActionState. " + + "Please update %s to use React.useActionState.", componentName ); } @@ -30677,7 +30677,7 @@ to return true:wantsResponderID| | return root; } - var ReactVersion = "19.0.0-canary-e9c8d4c9"; + var ReactVersion = "19.0.0-canary-94b5e823"; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol