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:
Rick Hanlon 2019-11-15 06:16:29 -08:00 коммит произвёл Facebook Github Bot
Родитель 9c4afce70f
Коммит e9fd102c33
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -242,9 +242,7 @@ Error: ${e.message}`;
client.on('close', data => { client.on('close', data => {
LoadingView.hide(); LoadingView.hide();
setHMRUnavailableReason( setHMRUnavailableReason('Disconnected from the Metro server.');
'Disconnected from the Metro server. Reload to reconnect.',
);
}); });
if (isEnabled) { if (isEnabled) {