mobxjs / mobx-react-devtools

[DEPRECATED] Tools to perform runtime analyses of React applications powered by MobX and React
MIT License
1.23k stars 49 forks source link

Use devtools in React Native with Mobx State Tree #69

Closed alexlevy0 closed 6 years ago

alexlevy0 commented 7 years ago

Hello,

I'm trying to use mobx-remotedev with React Native and MobX-State-Tree but I don't know how to do. I tried with export default remotedev(AppStore, { global: true, remote: true }) in my rootStore but I get an error Unhandled JS Exception: Cannot read property 'create' of undefined cause I create the tree with const appStore = AppStore.create({ users: {} }, { logger: logger })

Can you orient me?

Thanks for readding

mweststrate commented 7 years ago

Note that this isn't the mobx-remotedev package ;-). Which can be found here: https://github.com/zalmoxisus/mobx-remotedev

The mobx-react-devtools (this repo) are specifically geared to DOM rendering (unlike remote dev), and offers fancy in-DOM visualization of updates.

Note that it is even possible to use generic Redux based devtools like demonstrated here: https://github.com/mobxjs/mobx-state-tree/blob/master/examples/todomvc/src/index.js#L23

cc @zalmoxisus