我是Redux和Redux Logger的新手。
我有如下代码段:
import {
createStore,
applyMiddleware } from 'redux'; import
thunk
from 'redux-thunk'; import
{ createLogger }
from 'redux-logger'; import
rootReducer
from '../reducers';
let middlewares = [];
middlewares.push(createLogger({}));
const store = createStore(rootReducer, applyMiddleware(thunk, ...middlewares));
export default store;
我的问题是:
我要保存redux显示的所有历史redux突变 控制台中的JSON格式的logger(我知道控制台上显示的每个变异)。如何实现?