You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After trying out the latest create-react-app and mobx 4's decorate, I found that my classes were no longer observable. At first glance, it looks like it's Babel 7's class property transform.
You will have to use this plugin in loose mode. Without that, properties become simply undecoratable until the new decorators proposal is implemented as well. Which is currently WIP and tracked in #1352
After trying out the latest create-react-app and mobx 4's
decorate
, I found that my classes were no longer observable. At first glance, it looks like it's Babel 7's class property transform.Here's a codesandbox: https://codesandbox.io/s/623qwprm8k
I'd expect the updated value of
FooBabel7
to trigger theautorun
.Differences in babel output:
Source:
Babel 6:
Babel 7:
Versions:
mobx
:4.1.1
babel
:7.0.0-beta.42
react-scripts
:2.0.0-next.b2fd8db8
Chrome
:65.0.3325.181
The text was updated successfully, but these errors were encountered: