Make flow check async

This commit is contained in:
Ludo Fardel
2015-08-17 02:05:29 -07:00
parent ca38908423
commit 8460db57bc
4 changed files with 111 additions and 9 deletions

View File

@@ -59,6 +59,13 @@ function setUpRedBoxConsoleErrorHandler() {
}
}
function setupFlowChecker() {
if (__DEV__) {
var checkFlowAtRuntime = require('checkFlowAtRuntime');
checkFlowAtRuntime();
}
}
/**
* Sets up a set of window environment wrappers that ensure that the
* BatchedBridge is flushed after each tick. In both the case of the
@@ -143,3 +150,4 @@ setUpGeolocation();
setUpWebSockets();
setupProfile();
setUpProcessEnv();
setupFlowChecker();