标签: javascript mobx mobx-react
我尝试用@computed在商店中装饰此功能:
@computed
public isSelected = () => { return this.session.selection === this; };
例如:
@computed get isSelected() { return this.selection === this; };
但是,this并没有绑定到我的对象。 是否有类似@computed.bound的东西?
this
@computed.bound