1. 首页
  2. 移动开发
  3. 其他
  4. redux profiler:Redux商店增强器它使用User Timing API来描述Redux动作和通知商店侦听器所花费的时间 源码

redux profiler:Redux商店增强器它使用User Timing API来描述Redux动作和通知商店侦听器所花费的时间 源码

上传者: 2021-04-04 13:33:18上传 ZIP文件 85.92KB 热度 5次
redux-profiler Redux,它使用用户计时API来描述Redux动作和通知商店监听器所花费的时间 如何安装 npm install redux-profiler --save 用法 import { createStore } from 'redux' import profileStore from 'redux-profiler' function todos ( state = [ ] , action ) { switch ( action . type ) { case 'ADD_TODO' : return state . concat ( [ action . text ] ) default : return state } } ​ const store = c
下载地址
用户评论