title: How to dispatch a Redux action with a timeout?
body: <p>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 action after 5 seconds that will return the notification state to the initial one, so no notification. The main reason behind this is to provide functionality where notifications disappear automatically after 5 seconds.</p>
  
  <p>I had no luck with using <code>setTimeout</code> and returning another action and can't find how this is done online. So any advice is welcome.</p>