react-native-macos/React
Ramanpreet Nara 8c746dfc7e Fix CMD + OPT + R with Bridgeless mode only
Summary:
When you reload React Native surfaces via the CMD + OPT + R keystroke, this is the actual code that executes:

https://www.internalfb.com/code/fbsource/[9c79fc6a17b7738b391a605412abf1cb15ef8ea1]/xplat/js/react-native-github/React/CoreModules/RCTDevSettings.mm?lines=172-175%2C179-183

It's only executed when RCTDevSettings is instantiated by the bridge. So, if only bridgeless surfaces are loaded, then CMD + OPT + R doesn't work.

## Fix
In this diff, I ensure that
1. We set up the reload listener when RCTDevSettings is *first* instantiated
2. We clear the reload listener when all instances of RCTDevSettings are invalidated.

Changelog: [Internal]

Reviewed By: PeteTheHeat

Differential Revision: D29437952

fbshipit-source-id: 9f2ff8340575c0ed881df26249433b2075bbd2ac
2021-06-29 14:55:40 -07:00
..
AccessibilityResources/en.lproj VoiceOver reads Tab elements as "Tab Description" (#30689) 2021-01-15 11:09:01 -08:00
Base Remove feature flag for promises block guard 2021-06-24 03:33:05 -07:00
CoreModules Fix CMD + OPT + R with Bridgeless mode only 2021-06-29 14:55:40 -07:00
CxxBridge Make LeakChecker available on Android 2021-05-21 10:39:43 -07:00
CxxModule Fix crash in RCTCoreModulesClassProvider during quit 2021-04-28 13:29:06 -07:00
CxxUtils Clang format for all React Native files 2020-03-08 23:01:17 -07:00
DevSupport Respect port information if available from RCTBundleURLProvider 2020-08-28 16:01:02 -07:00
FBReactNativeSpec Bump Flipper-Folly to 2.5.3 and RCT-Folly to 2021.04.26.00 2021-04-29 10:39:25 -07:00
Fabric Back out "Add option to disable sending scroll events to Paper" 2021-06-23 02:02:03 -07:00
Inspector Clang format for all React Native files 2020-03-08 23:01:17 -07:00
Modules Bridgeless Mode: Migrate modules away from invokeJS 2021-05-14 09:22:58 -07:00
Profiler Apply clang-format update fixes 2021-01-09 22:11:00 -08:00
Tests Fix accessibility when entire text node is a link 2021-05-11 01:23:04 -07:00
UIUtils A couple of checks for corner cases in RCTGetDimensions and RCTExportedDimensions 2020-10-01 13:19:52 -07:00
Views Allow PlatformColor to work with RCTView border colors (#29728) 2021-06-23 13:37:22 -07:00
React-RCTFabric.podspec Bump Flipper-Folly to 2.5.3 and RCT-Folly to 2021.04.26.00 2021-04-29 10:39:25 -07:00
third-party.xcconfig Bump Flipper-Folly to 2.5.3 and RCT-Folly to 2021.04.26.00 2021-04-29 10:39:25 -07:00