Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: defer ReactDevToolsOverlay import (#43690)
Summary: Pull Request resolved: #43690 # Changelog: [Internal] Fixes #43678. The issue is that once `getInspectorDataForViewAtPoint` is imported, it should throw if RDT global hook was not injected. ReactDevTools overlay imports `getInspectorDataForViewAtPoint`, this is why it did throw in testing environment. ReactDevToolsOverlay JSX-element is already gated with RDT global hook check, adding a deferred import, same as it was already implemented for Inspector. Still unclear to me how this didn't throw all this time while using the Catalyst / RNTester. Reviewed By: cortinico Differential Revision: D55474774 fbshipit-source-id: 759e5e8227cc7534193e5b95616b6099c15f5cb5
- Loading branch information