我想测试我的商店 - 检查商店数据在操作后是否正确更改。 我无法更改通过alt.dispatcher连接到的操作的存储状态。 alt store test method不适用于我 - 我更改了我的mocha测试文件中的AltWrappedStore.state,但操作连接到的存储状态不同(它显示默认状态)。 如何设置alt商店的状态以测试状态中的更改(通过操作)?
我刚刚使用流量并开始使用alt.js implmentation。我想知道我什么时候会在我的动作中使用dispatch。例如,拿这个代码。 //ImageActions.js
class ImageActions {
getImages(id) {
return Api.get(`topics/${id}`).then(response => {
let ima