wechat-miniprogram / mobx-miniprogram-bindings

小程序的 MobX 绑定辅助库
MIT License
206 stars 20 forks source link

异步action #28

Closed 812781385 closed 4 months ago

812781385 commented 2 years ago

请问发送axios请求相应式改变store状态要怎么做? 我现在store里的action里写了异步改变状态没有用

Wyatex commented 1 year ago

貌似异步的话只能用runInAction,可以这样写