Using Redux middleware for polling

React.js