Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Dev Tool #47

Open
tomitrescak opened this issue Feb 25, 2019 · 2 comments
Open

React Dev Tool #47

tomitrescak opened this issue Feb 25, 2019 · 2 comments
Labels

Comments

@tomitrescak
Copy link

Hello, in your tweet you mention that Mobx Dev tools are becoming obsolete as we can use React Dev tools now. Can you please elaborate on how can we do the same tasks in Dev tools such as:

  • track updates
  • detect observers
  • list observables

Thanks!

@andykog
Copy link
Member

andykog commented Mar 9, 2019

@mweststrate

@mweststrate
Copy link
Member

mweststrate commented Apr 15, 2019

it is still WIP,but the current devtools provide a bunch of features, and some features might become obsolete

  1. show re-rendering
  2. show dependency tree
  3. show mutations (spying)
  4. show MST models (correct? didn't use them for a while)

Regarding those:

  1. Is available in the standard React devtools for a long time now
  2. Can be done from mobx-react@6 and upward, by showing the dependency tree of the useObserver hook (this is still WIP, as the devtools only support primitive values now, but this will most probably chagne)
  3. cannot be done in the react-devtools. So that would be great to still do in these devtools. However, note that similar things could also be achieved with packages like mobx-logger
  4. I don't think we have a good alternative for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants