How to dispatch a Redux action with a timeout?

后端 未结 12 1796
花落未央
花落未央 2020-11-22 04:14

I have an action that updates the notification state of my application. Usually, this notification will be an error or info of some sort. I need to then dispatch another act

12条回答
  •  北海茫月
    2020-11-22 04:55

    You can do this with redux-thunk. There is a guide in redux document for async actions like setTimeout.

提交回复
热议问题