This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
Consolidate packages #489
Closed
Description
Currently there's a lot of forking going on which makes it harder to figure out how everything fits together. For example:
-
Injecting into the hook
-
Setting up the connection
- Happens here in RN
- However Electron shell has very similar code
-
Nuclide vendors the Electron build for the Inspector (although it only uses the client while RN runs its fork of the server).
-
Backends depend on React internals but aren’t colocated with React
The goals for consolidation:
- Reduce the number of forks to make it easier to make changes across them (e.g. to support Fiber).
- Make it easy for downstream packages (RN, Nuclide) to accept changes related to DevTools by packaging them.
- Consolidate the code relying on React internal data structure inside the React repo.
The plan for consolidation:
- Publish
react-devtools
package added in Add npm package for standalone devtools app #487 - Publish
react-devtools-core
separately - Make
nuclide-react-inspector
depend on it instead of vendoring its build ([React Inspector] Replace vendored React DevTools with npm package facebookarchive/nuclide#1016) - Rewrite RN
setupDevtools()
- Use the server from
react-devtools
instead of a fork (WIP: Add connectToDevTools(options) for React Native #494) - Remove the late hook call since the hook would already exist by the time React calls it (Add connectToDevTools(options) for React Native #494)
- Add a way to inject
resolveStyle
in it (Add connectToDevTools(options) for React Native #494) - Pick up changes to the server introduced in RN:
- Make sure we don’t regress on facebook/react-native@d0a26a7
- Try to reconnect automatically facebook/react-native@9a93a3c
- Do we need
attach:agent
? facebook/react-native@9e4af68#diff-31cd378efa6368c1a37db84beec02002R46 - Fix RN WebSocket race condition [WebSocket] Fix race condition during initialization react-native#12305
-
(Maybe) don't reconnect if we started unconnected?Meh - Try to add backwards compat to
[email protected]
so it works with old clients (stable RN) - Remove outdated wording (like "touch the app for bridge to work") which doesn't make sense anymore
-
Maybe Fix Fiber specific stuff?Later, too much of it -
Test on Android simulatorSomebody help plz - Actually send a diff for depending on
react-devtools-core
[React DevTools] Move DevTools integration into its own repo react-native#12316
- Bump Nuclide inspector to use
[email protected]
[React Inspector] Bump react-devtools-core facebookarchive/nuclide#1021 - Figure out why Relay plugin is crashing
- Move (current) backends into React repo
- Use the server from
- Fix Fiber DevTools
-
topsecret-RTView
- Editing styles
- Inspector (dirty solution: [WIP][Not for merge] Support Inspector in Fiber react-native#12421)
-
- Fix RN Inspector internal dependencies on React:
Metadata
Metadata
Assignees
Labels
No labels