react-native/React
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
..
Base Fixed RCTAssert nullability 2018-06-18 23:46:15 -07:00
CxxBridge iOS: Avoid double reload event when reloading JS 2018-06-19 18:47:41 -07:00
CxxModule Update license headers for MIT license 2018-02-16 18:31:53 -08:00
CxxUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
DevSupport Migrate Android sources to MIT license header 2018-05-31 15:37:30 -07:00
Fabric iOS: Avoid double reload event when reloading JS 2018-06-19 18:47:41 -07:00
Inspector Migrate Android sources to MIT license header 2018-05-31 15:37:30 -07:00
Modules `Invalid JS responder` error was promoted to warning 2018-06-17 21:46:22 -07:00
Profiler Update license headers for MIT license 2018-02-16 18:31:53 -08:00
React.xcodeproj Revert D8489006: [react-native][PR] Update Xcode projects 2018-06-18 12:18:02 -07:00
UIUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Views Fix or mark enum conversions 2018-05-22 09:53:54 -07:00
third-party.xcconfig OSS: upgrade Folly 2016.09.26 => 2016.10.31 2018-04-13 17:33:23 -07:00