Store

const store = createStore(...args);

这里store只新增了一个方法 replaceMutations,其他用法可以参考redux store

Store 方法

replaceMutations(mutations)

replaceMutations(mutations);

reduxreplaceReducer一样,replaceMutations可以用来动态加载mutations,和热替换。

参数

  1. mutations (array | object):

    mutation定义,详细看这里

Last updated

Was this helpful?