react-native/React/CxxBridge
Kevin Gozali 7b9b1559a7 iOS: Avoid double reload event when reloading JS
Summary:
@public
The bridge may send the reload event twice when reloading JS in some rare condition. The 2nd one was actually when the "new" bridge wasn't valid yet, so log an error if that happens. This may happen if the connection to Metro server gets into a weird state. Restarting Metro would solve the problem.

The issue was that `RCTBridgeWillReloadNotification` fired twice for each reload with metro connected.

Reviewed By: mmmulani

Differential Revision: D8509448

fbshipit-source-id: 647fb98c0a97503409a10451b8f152145947ae20
2018-06-19 18:47:41 -07:00
..
NSDataBigString.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
NSDataBigString.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTCxxBridge.mm iOS: Avoid double reload event when reloading JS 2018-06-19 18:47:41 -07:00
RCTCxxBridgeDelegate.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTJSCHelpers.h Migrate Android sources to MIT license header 2018-05-31 15:37:30 -07:00
RCTJSCHelpers.mm Migrate Android sources to MIT license header 2018-05-31 15:37:30 -07:00
RCTMessageThread.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTMessageThread.mm Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTObjcExecutor.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTObjcExecutor.mm RCTObjcExecutor: fix initializer-list initialization order build warning. 2018-03-19 15:51:59 -07:00