关于redux的日志问题

黄尼玛 发布于 2017/01/07 13:16
阅读 492
收藏 0

华为云11月刊推送:DIY微信问答机器人,高性能计算代码的20个技巧!>>>

如图 redux-logger怎么打印出来  ‘diff'  这个日志 

加载中
0
huangyanxiong
huangyanxiong
import { applyMiddleware, createStore } from 'redux';
import thunk from 'redux-thunk';
import promise from 'redux-promise';
import createLogger from 'redux-logger';


const logger = createLogger({
 //...
 diff = true,
 //..
});
const store = createStore(
  reducer,
  applyMiddleware(thunk, promise, logger)
); 

返回顶部
顶部