mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f3b9226ca0
Summary: This is a follow-up bugfix for expo/expo#27425, related to: - https://github.com/facebook/react-native/issues/43291 - https://github.com/facebook/react-native/issues/43307 - https://github.com/facebook/react-native/issues/43310 - https://github.com/facebook/react-native/issues/43364 The middleware API works as intended and can run our extended CDP events. Unfortunately, this only applies to an actual `Page` from the device, not for the `React Native Experimental (Improved Chrome Reloads)` synthetic / virtual page. That's because the middleware instantiation gets aborted when the page can't be found in `this.#pages.get(pageId)`, which always returns `null` for this synthetic page. ## Changelog: [GENERAL] [FIXED] Create custom message handler for synthetic page Pull Request resolved: https://github.com/facebook/react-native/pull/43559 Test Plan: See added test case. Reviewed By: motiz88 Differential Revision: D55129412 Pulled By: huntie fbshipit-source-id: 9679d8fe68f3cb4104f4a042f93612b995baddc9