mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41335 `inspector-proxy` has special behaviour to allow a debugger connection to persist across app reloads. In the React Native runtime, a reload is modelled as the creation of an entirely new "page" with its own ID. To insulate the debugger from this detail, the proxy advertises a separate, synthetic page on each device, with ID `-1`, that always maps to the latest React Native page reported by that device. Here we test the message forwarding part of this functionality. The proxy also injects CDP messages (in both directions) as part of simulating a reload, but that will be tested in a separate diff. Changelog: [Internal] Reviewed By: blakef Differential Revision: D51002262 fbshipit-source-id: 296135177321a511ebbe7d9696e4e7a61275aa32