-
Notifications
You must be signed in to change notification settings - Fork 643
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
Use devtools in React Native with Mobx State Tree #367
Comments
As mobx-remotedev docs says, it expects first parameter to be either a mobx observable value or a class. MST does not use classes, so instead of passing AppStore to remotedev you need to pass appStore (the AppStore model instance). |
@mattiamanzati
Add version info:
|
Seems mobx-remoteDev is using the old Mobx 3 api's. Are you sure you have
the latest version? Otherwise best file an issue at mbox-remotedev. In MobX
4 / 5 all `extras` functions have been moved to top level
Op di 24 jul. 2018 om 05:57 schreef HaveF <[email protected]>:
… @mattiamanzati <https://github.com/mattiamanzati>
I try to using model instance, it seems not work.
TypeError: Cannot read property 'getDebugName' of undefined
init
./node_modules/mobx-remotedev/lib/spy.js:47
44 | }
45 |
46 | function init(store, config) {
> 47 | var name = mobx.extras.getDebugName(store);
48 | configure(name, config);
49 | stores[name] = store;
50 |
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhJhEvI919QrdRBX7GfNyJZln1_Mpks5uJpstgaJpZM4PONZv>
.
|
Yes, it is the newest version. mobx-remotedev/spy.js at master · zalmoxisus/mobx-remotedev It seems mobx-remoteDev is not maintained... Mobx 4 support · Issue #32 · zalmoxisus/mobx-remotedev |
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 errorUnhandled JS Exception: Cannot read property 'create' of undefined
cause I create the tree withconst appStore = AppStore.create({ users: {} }, { logger: logger })
Can you orient me?
Thanks for readding
The text was updated successfully, but these errors were encountered: