Permalink
Browse files

Handle invalidation error in RCTObjcExecutor

Differential Revision: D6748200

fbshipit-source-id: eb98782c2ba080273c1f027846984f5f4caddf26
  • Loading branch information...
fromcelticpark authored and facebook-github-bot committed Jan 18, 2018
1 parent 65184ec commit 493f3e8da5a112e1b33bfb3e9f51e7a2bd7edc7a
Showing with 4 additions and 1 deletion.
  1. +4 −1 React/CxxBridge/RCTObjcExecutor.mm
@@ -45,7 +45,10 @@
{
m_jsCallback = ^(id json, NSError *error) {
if (error) {
m_errorBlock(error);
// Do not use "m_errorBlock" here as the bridge might be in the middle
// of invalidation as a result of error handling and "this" can be
// already deallocated.
errorBlock(error);
return;
}

0 comments on commit 493f3e8

Please sign in to comment.