mirror of
https://github.com/status-im/react-native.git
synced 2025-01-29 18:54:58 +00:00
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:
parent
afc114364b
commit
3f8af2deee
@ -239,7 +239,8 @@ public class CatalystInstanceImpl implements CatalystInstance {
|
|||||||
final String method,
|
final String method,
|
||||||
final NativeArray arguments) {
|
final NativeArray arguments) {
|
||||||
if (mDestroyed) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (!mAcceptCalls) {
|
if (!mAcceptCalls) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user