await in custom Redux middleware

前端 未结 0 1810
既然无缘
既然无缘 2020-12-22 11:01

How would I use await inside a custom middleware.

const customMiddleware= (store) => (next) => (action) => {
  if(action.type === \'Start\'){
    con         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题