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
It is simple. Use trim-redux package and write like this in componentDidMount or other place and kill it in componentWillUnmount.
componentDidMount
componentWillUnmount
componentDidMount() { this.tm = setTimeout(function() { setStore({ age: 20 }); }, 3000); } componentWillUnmount() { clearTimeout(this.tm); }