Store
const store = createStore(...args);这里store只新增了一个方法 replaceMutations,其他用法可以参考redux store。
Store 方法
replaceMutations(mutations)
replaceMutations(mutations);跟redux的replaceReducer一样,replaceMutations可以用来动态加载mutations,和热替换。
参数
mutations(array | object):mutation定义,详细看这里。
Last updated
Was this helpful?