Queue JS calls that come in before JS bundle has started loading instead of crashing

Summary: This mimics (some of) the behavior we have on iOS where if you call a JS module method before the JS bundle has started loading, we just queue up those calls and execute them after the bundle has started loading.

Reviewed By: javache

Differential Revision: D4117581

fbshipit-source-id: 58c5a6f87aeeb86083385334d92f2716a0574ba1
This commit is contained in:
Andy Street
2016-11-03 09:33:10 -07:00
committed by Facebook Github Bot
parent 52d90da75e
commit 68aeffe01f
3 changed files with 46 additions and 13 deletions

View File

@@ -40,7 +40,6 @@ public interface CatalystInstance extends MemoryPressureListener {
*/
void destroy();
boolean isDestroyed();
boolean isAcceptingCalls();
/**
* Initialize all the native modules