From e9fd102c33b65a0b7cb0a7cd5e934038cf962a86 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Fri, 15 Nov 2019 06:16:29 -0800 Subject: [PATCH] Remove "reload to reconnect" from the metro disconnected message Summary: Changes the Fast Refresh message for when metro disconnects to remove "Reload to reconnect.". The most common use case for this happening is when Metro is stopped, and reloading will not reconnect to a stopped metro server. Long term we should reconnect to Metro automatically and then this message would be followed up with a "Reconnected to Metro" message, never needing a reload. Changelog: [Internal] Reviewed By: cpojer Differential Revision: D18527705 fbshipit-source-id: 40768ce1089348b612e9d86638f07169d2a34b67 --- Libraries/Utilities/HMRClient.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/Utilities/HMRClient.js b/Libraries/Utilities/HMRClient.js index c29b8770c2b..cd9b2cc1150 100644 --- a/Libraries/Utilities/HMRClient.js +++ b/Libraries/Utilities/HMRClient.js @@ -242,9 +242,7 @@ Error: ${e.message}`; client.on('close', data => { LoadingView.hide(); - setHMRUnavailableReason( - 'Disconnected from the Metro server. Reload to reconnect.', - ); + setHMRUnavailableReason('Disconnected from the Metro server.'); }); if (isEnabled) {