mobx-devtools
mobx-devtools copied to clipboard
React Dev Tool
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!
@mweststrate
it is still WIP,but the current devtools provide a bunch of features, and some features might become obsolete
- show re-rendering
- show dependency tree
- show mutations (spying)
- show MST models (correct? didn't use them for a while)
Regarding those:
- Is available in the standard React devtools for a long time now
- 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) - 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
- I don't think we have a good alternative for this