redux 使用技巧

composeEnhancers

const composeEnhancers = compose(
  applyMiddleware(thunk,logger, ...),
  ((window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && __REDUX_DEVTOOLS_EXTENSION_COMPOSE__()) || compose
)
posted @ 2021-06-03 10:12  boygdm  阅读(42)  评论(0编辑  收藏  举报