ascoders / gaea-editor

Design websites in your browser. A smart web editor!

Home Page:https://gaeajs.github.io/gaea-site/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

引用webBaseComponents 时 报 BUG [mobx] Deprecated

eddyzhang1986 opened this issue · comments

[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
qq 20170214111342
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: ObservableObject@42.onClick

这个功能应该是mobx更新引起的 虽然仅仅是警告 不过对于我这种有代码洁癖的人...

这段时间我在用redux重构

@ascoders 欧克 thx

过段时间还是准备用 https://github.com/ascoders/dynamic-object 重构,这个是 mobx 的加强版,用了 proxy。

已重写