title: InfiniteLoader and react-redux
body: <p>Component InfiniteLoader from <a href="https://github.com/bvaughn/react-virtualized" rel="noreferrer">react-virtualised</a> requires function passed as property loadMoreRows to have signature like <code>{ startIndex: number, stopIndex: number }): Promise</code>. 
  I'm using redux in my project, so <code>loadMoreRows</code> is a redux action creator like this:</p>
  
  <pre><code>const fetchEntities(start, stop) {
    return fetch(`${myUrl}&amp;start=${start}?stop=${stop}`)
  }
  const loadMoreRows = ({ startIndex, stopIndex }) =&gt; {
    return (dispatch, getState) =&gt; {
      return function(dispatch) {
        return fetchEntities(startIndex, stopIndex).then(
          items =&gt; dispatch(simpleAction(items)),
          error =&gt; console.log(error)
        )
      }
    }
  }
  </code></pre>
  
  <p>after that, this action is connected to react component containing InfiniteLoader using connect function from react-redux.</p>
  
  <p>So I'm not sure, how can I satisfy signature requirement, as redux action creators don't return any value/</p>