mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
344bc8128b
Both for browser extension, and for React Native (as part of `react-devtools-core`) `Store` is initialized before the Backend (and `Agent` as a part of it): https://github.com/facebook/react/blob/bac33d1f82d9094b45d6f662dd7fa895abab8bce/packages/react-devtools-extensions/src/main/index.js#L111-L113 Any messages that we send from `Store`'s constructor are ignored, because there is nothing on the other end yet. With these changes, `Agent` will send `backendInitialized` message to `Store`, after which `getBackendVersion` and other events will be sent. Note that `isBackendStorageAPISupported` and `isSynchronousXHRSupported` are still sent from `Agent`'s constructor, because we don't explicitly ask for it from `Store`, but these are used. This the pre-requisite for fetching settings and unsupported renderers reliably from the Frontend.
This directory contains code shared between several DevTools packages:
- /packages/react-devtools-core
- /packages/react-devtools-extensions
- /packages/react-devtools-inline
It is not published or released anywhere directly.