mobx-devtools icon indicating copy to clipboard operation
mobx-devtools copied to clipboard

React Dev Tool

Open tomitrescak opened this issue 5 years ago • 2 comments

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!

tomitrescak avatar Feb 25 '19 21:02 tomitrescak

@mweststrate

andykog avatar Mar 09 '19 14:03 andykog

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

mweststrate avatar Apr 15 '19 12:04 mweststrate