Increase RN devtools retry timeout

Summary:The 200ms timeout was causing resource issues and causing a lot of overhead when you're not running the devtools, since it will basically create a new socket every 200ms.

Also clean up the way we do logging so it's completely compiled out in prod, and standardize all the names we use for threading to lowercase react.

Reviewed By: frantic

Differential Revision: D3115975

fb-gh-sync-id: e6e51c0621d8e9fc4eadb864acd678b8b5d322a1
fbshipit-source-id: e6e51c0621d8e9fc4eadb864acd678b8b5d322a1
This commit is contained in:
Pieter De Baets
2016-04-01 07:01:51 -07:00
committed by Facebook Github Bot 6
parent dc3836a9d3
commit b00c77af80
9 changed files with 48 additions and 62 deletions

View File

@@ -40,7 +40,7 @@ function setupDevtools() {
function handleClose() {
if (!hasClosed) {
hasClosed = true;
setTimeout(setupDevtools, 200);
setTimeout(setupDevtools, 2000);
closeListeners.forEach(fn => fn());
}
}