mobx5 can't call my object

Created on 14 Jun 2019  ·  3Comments  ·  Source: mobxjs/mobx

I used to use mobx4 and it worked fine when I called my object but when I upgraded to mob5 it won't work.

When I run this code:
console.log(store.memberObject)
I get data like this:
Proxy {Symbol(mobx administration): ObservableObjectAdministration} "memberObject"

How could I call object in mobx5?

❔ question 🚶 stale

Most helpful comment

It's just how console.log works. For everything else it's normal object.
To print it as usual use console.log(mobx.toJS(store.memberObject))
For further details check #1653

All 3 comments

It's just how console.log works. For everything else it's normal object.
To print it as usual use console.log(mobx.toJS(store.memberObject))
For further details check #1653

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions.

Was this page helpful?
0 / 5 - 0 ratings