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?
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.
Most helpful comment
It's just how
console.logworks. For everything else it's normal object.To print it as usual use
console.log(mobx.toJS(store.memberObject))For further details check #1653