-
Notifications
You must be signed in to change notification settings - Fork 221
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
引用webBaseComponents 时 报 BUG [mobx] Deprecated #7
Comments
这个功能应该是mobx更新引起的 虽然仅仅是警告 不过对于我这种有代码洁癖的人... |
这段时间我在用redux重构 |
@ascoders 欧克 thx |
过段时间还是准备用 https://github.com/ascoders/dynamic-object 重构,这个是 mobx 的加强版,用了 proxy。 |
已重写 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[mobx] Deprecated:

In MobX 2.* passing a function without arguments to (extend)observable will automatically be inferred to be a computed value.
This behavior is ambiguous and will change in MobX 3 to create just an observable reference to the value passed in.
To disambiguate, please pass the function wrapped with a modifier: use 'co
mputed(fn)' (for current behavior; automatic conversion), or 'asReference(fn)' (future behavior, just store reference) or 'action(fn)'.
Note that the idiomatic way to write computed properties is 'observable({ get propertyName() { ... }})'.
For more details, see mobxjs/mobx#532: [email protected]
The text was updated successfully, but these errors were encountered: