diff --git a/Libraries/Utilities/HMRClient.js b/Libraries/Utilities/HMRClient.js index 0b1ad36f5d5..c29b8770c2b 100644 --- a/Libraries/Utilities/HMRClient.js +++ b/Libraries/Utilities/HMRClient.js @@ -211,6 +211,7 @@ Error: ${e.message}`; client.on('update', ({isInitialUpdate}) => { if (client.isEnabled() && !isInitialUpdate) { dismissRedbox(); + LogBoxData.clearSyntaxErrors(); } }); @@ -297,8 +298,6 @@ function flushEarlyLogs(client) { } function dismissRedbox() { - LogBoxData.clearSyntaxErrors(); - if ( Platform.OS === 'ios' && NativeRedBox != null &&