mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
9c4afce70f
commit
e9fd102c33
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user