mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Drop calls to [RCTCxxBridge enqueueCallback:args:] on an invalid instance
Reviewed By: mmmulani Differential Revision: D4655339 fbshipit-source-id: a6cb026325a030fa15a25638ebfb17ac9ea53767
This commit is contained in:
committed by
Facebook Github Bot
parent
31c99433ea
commit
d1411f11d3
@@ -1137,6 +1137,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
*/
|
||||
- (void)enqueueCallback:(NSNumber *)cbID args:(NSArray *)args
|
||||
{
|
||||
if (!self.valid) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* AnyThread
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user