Better context for "Calling JS function after bridge has been destroyed" warning

Reviewed By: AaaChiuuu

Differential Revision: D5091701

fbshipit-source-id: 9bf66cf35ffc3ade82a0ee61227760f0946d410d
This commit is contained in:
Alex Kotliarskyi 2017-05-18 16:58:46 -07:00 committed by Facebook Github Bot
parent afc114364b
commit 3f8af2deee
1 changed files with 2 additions and 1 deletions

View File

@ -239,7 +239,8 @@ public class CatalystInstanceImpl implements CatalystInstance {
final String method,
final NativeArray arguments) {
if (mDestroyed) {
FLog.w(ReactConstants.TAG, "Calling JS function after bridge has been destroyed.");
final String call = module + "." + method + "(" + arguments.toString() + ")";
FLog.w(ReactConstants.TAG, "Calling JS function after bridge has been destroyed: " + call);
return;
}
if (!mAcceptCalls) {