From cf976568b23e997722f4262d010cd581f3ecbc42 Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Fri, 11 Sep 2026 03:45:24 -0700 Subject: [PATCH] Downgrade HMR client console.warn to console.log (#58478) Summary: Pull Request resolved: https://github.com/react/react-native/pull/58478 Downgrade a `console.warn` to `console.log` in HMRClient when the bundle is not loaded from Metro. This message is informational rather than a warning condition. Changelog: [Internal] ___ Differential Revision: D119640117 fbshipit-source-id: 4af3765af7601929faf37c7f9b8a323b79903610 --- packages/react-native/Libraries/Utilities/HMRClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Utilities/HMRClient.js b/packages/react-native/Libraries/Utilities/HMRClient.js index 60f63e54249..c42b3feaca7 100644 --- a/packages/react-native/Libraries/Utilities/HMRClient.js +++ b/packages/react-native/Libraries/Utilities/HMRClient.js @@ -167,7 +167,7 @@ const HMRClient: HMRClientNativeInterface = { // there's nothing to hot-reload — registering with the server would just log // spurious "Unable to resolve module" errors. if (!getDevServer().bundleLoadedFromServer) { - console.warn( + console.log( 'Not enabling Hot Module Reloading: the JS bundle was loaded from a local ' + 'file, not from Metro. To use HMR, load the bundle from the packager.', );