mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
8ea9a1bc94
Summary:
This solves https://github.com/facebook/react-native/issues/5090. Since 5b4e873c68
we had better reporting for when calls from native to JS fail. When trying to load an invalid bundle, this would now cause a stackoverflow, since RCTFatal would schedule a JS call to log, which would RCTFatal, which would ...
By invalidating the jsExecutor immediately after loading fails, we prevent any more attempts to log. We can't invalidate the whole bridge at this point since we still need the redbox module to actually display the error.
public
Reviewed By: majak
Differential Revision: D2834251
fb-gh-sync-id: a3e2ad425e40560beae4d3eacb93f66ace5341bf