mobxjs / mobx-react

React bindings for MobX
https://mobx.js.org/react-integration.html
MIT License
4.85k stars 349 forks source link

Does `useLocalStore` work recursively? #773

Closed zhaoyao91 closed 5 years ago

zhaoyao91 commented 5 years ago

say, if I have a field error and set an error object to it, will the error be turned into observable, or kept as it is?

mweststrate commented 5 years ago

it works recursively with the same rules as observable(thing) (so it won't recurse into classes).

That being said, there is really no need to fill the issue tracker with questions like these, as you could try this in a couple of minutes, and get the answer as well.

lock[bot] commented 4 years ago

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.