Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Consolidate packages #489

Closed
22 of 28 tasks
gaearon opened this issue Feb 6, 2017 · 7 comments
Closed
22 of 28 tasks

Consolidate packages #489

gaearon opened this issue Feb 6, 2017 · 7 comments

Comments

@gaearon
Copy link
Contributor

gaearon commented Feb 6, 2017

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

    • React tries to do this here
    • But actually the hook doesn't exist yet until injected so RN just copies the same code here
  • Setting up the connection

  • 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:

@gaearon
Copy link
Contributor Author

gaearon commented Feb 7, 2017

cc @jhen0409, do you have any feedback on this plan? Would it help you to simplify anything in react-native-debugger?

@gaearon
Copy link
Contributor Author

gaearon commented Feb 7, 2017

Some initial work in #494.

@jhen0409
Copy link
Contributor

jhen0409 commented Feb 8, 2017

This is a good news!

Just wondering we could provide Panel component in react-devtools-core? Currently I used it for react-native-debugger with forked server setup, I want to avoid some console.log and all DOM manipulation for use react inspector. If you agree:

  • To avoid Panel use another react instance, add react to externals for standalone config, and export Panel
  • Or a new component webpack config

@gaearon
Copy link
Contributor Author

gaearon commented Feb 8, 2017

Is there anything in particular we could fix in standalone that would make it good for you? For example we could easily remove logs. Is there something else annoying you?

@jhen0409
Copy link
Contributor

jhen0409 commented Feb 8, 2017

@gaearon, looks like it just a little problem, I don't want to set #loading-status (It also not explained in the readme), I simply made a PR for that. #497

@gaearon
Copy link
Contributor Author

gaearon commented Feb 8, 2017

@jhen0409 Published 2.0 with setStatusListener(), do you need anything else? Happy to do more changes.

facebook-github-bot pushed a commit to facebook/react-native that referenced this issue Feb 14, 2017
Summary:
The way React DevTools integration was set up in RN was not entirely supported by the React team, and we had to disable it in c3b25c9 so that we can move forward with enabling Fiber support in React Native.

Here, I am moving the DevTools client setup from RN repo to [React DevTools repo](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/README.md#requirereact-devtools-coreconnecttodevtoolsoptions) so that we can keep it in sync with the rest of React DevTools. This is also a part of a larger effort to consolidate DevTools code (facebook/react-devtools#489). It allows us to remove the double injection of the hook, an lets us replace the `eval` hack with a regular dependency. The implementation [lives here now](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/src/backend.js).

This change re-enables Nuclide Inspector with React Native Stack reconciler and prepares it for compatibi
Closes #12316

Reviewed By: zertosh

Differential Revision: D4545322

Pulled By: gaearon

fbshipit-source-id: ab949916c1a92c6b41cd41e7e1edf9697a71de2e
GaborWnuk pushed a commit to GaborWnuk/react-native that referenced this issue Feb 28, 2017
Summary:
The way React DevTools integration was set up in RN was not entirely supported by the React team, and we had to disable it in c3b25c9 so that we can move forward with enabling Fiber support in React Native.

Here, I am moving the DevTools client setup from RN repo to [React DevTools repo](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/README.md#requirereact-devtools-coreconnecttodevtoolsoptions) so that we can keep it in sync with the rest of React DevTools. This is also a part of a larger effort to consolidate DevTools code (facebook/react-devtools#489). It allows us to remove the double injection of the hook, an lets us replace the `eval` hack with a regular dependency. The implementation [lives here now](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/src/backend.js).

This change re-enables Nuclide Inspector with React Native Stack reconciler and prepares it for compatibi
Closes facebook#12316

Reviewed By: zertosh

Differential Revision: D4545322

Pulled By: gaearon

fbshipit-source-id: ab949916c1a92c6b41cd41e7e1edf9697a71de2e
dudeinthemirror pushed a commit to dudeinthemirror/react-native that referenced this issue Mar 1, 2017
Summary:
The way React DevTools integration was set up in RN was not entirely supported by the React team, and we had to disable it in c3b25c9 so that we can move forward with enabling Fiber support in React Native.

Here, I am moving the DevTools client setup from RN repo to [React DevTools repo](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/README.md#requirereact-devtools-coreconnecttodevtoolsoptions) so that we can keep it in sync with the rest of React DevTools. This is also a part of a larger effort to consolidate DevTools code (facebook/react-devtools#489). It allows us to remove the double injection of the hook, an lets us replace the `eval` hack with a regular dependency. The implementation [lives here now](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/src/backend.js).

This change re-enables Nuclide Inspector with React Native Stack reconciler and prepares it for compatibi
Closes facebook#12316

Reviewed By: zertosh

Differential Revision: D4545322

Pulled By: gaearon

fbshipit-source-id: ab949916c1a92c6b41cd41e7e1edf9697a71de2e
dudeinthemirror pushed a commit to dudeinthemirror/react-native that referenced this issue Mar 1, 2017
Summary:
The way React DevTools integration was set up in RN was not entirely supported by the React team, and we had to disable it in c3b25c9 so that we can move forward with enabling Fiber support in React Native.

Here, I am moving the DevTools client setup from RN repo to [React DevTools repo](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/README.md#requirereact-devtools-coreconnecttodevtoolsoptions) so that we can keep it in sync with the rest of React DevTools. This is also a part of a larger effort to consolidate DevTools code (facebook/react-devtools#489). It allows us to remove the double injection of the hook, an lets us replace the `eval` hack with a regular dependency. The implementation [lives here now](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/src/backend.js).

This change re-enables Nuclide Inspector with React Native Stack reconciler and prepares it for compatibi
Closes facebook#12316

Reviewed By: zertosh

Differential Revision: D4545322

Pulled By: gaearon

fbshipit-source-id: ab949916c1a92c6b41cd41e7e1edf9697a71de2e
grabbou pushed a commit to react-native-community/cli that referenced this issue Sep 26, 2018
Summary:
The way React DevTools integration was set up in RN was not entirely supported by the React team, and we had to disable it in c3b25c9059f57ee8df5505628ff6221f11cf9234 so that we can move forward with enabling Fiber support in React Native.

Here, I am moving the DevTools client setup from RN repo to [React DevTools repo](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/README.md#requirereact-devtools-coreconnecttodevtoolsoptions) so that we can keep it in sync with the rest of React DevTools. This is also a part of a larger effort to consolidate DevTools code (facebook/react-devtools#489). It allows us to remove the double injection of the hook, an lets us replace the `eval` hack with a regular dependency. The implementation [lives here now](https://github.com/facebook/react-devtools/blob/master/packages/react-devtools-core/src/backend.js).

This change re-enables Nuclide Inspector with React Native Stack reconciler and prepares it for compatibi
Closes facebook/react-native#12316

Reviewed By: zertosh

Differential Revision: D4545322

Pulled By: gaearon

fbshipit-source-id: ab949916c1a92c6b41cd41e7e1edf9697a71de2e
@bvaughn
Copy link
Contributor

bvaughn commented Aug 19, 2019

React DevTools has been rewritten and recently launched a new version 4 UI. The source code for this rewrite was done in a separate repository and now lives in the main React repo (github.com/facebook/react).

Because version 4 was a total rewrite, and all issues in this repository are related to the old version 3 of the extension, I am closing all issues in this repository. If you can still reproduce this issue, or believe this feature request is still relevant, please open a new issue in the React repo: https://github.com/facebook/react/issues/new?labels=Component:%20Developer%20Tools

@bvaughn bvaughn closed this as completed Aug 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants