title: react-async-poll with a connected component
body: <p>Looking at the <a href="https://www.npmjs.com/package/react-async-poll" rel="nofollow noreferrer">docs for react-async-poll</a> I'm following the Usage example to integrate <code>asyncPoll</code> into my component, but I'm getting a <code>Uncaught TypeError: dispatch is not a function</code> complaint from within my <code>onPollinterval</code> function</p>
  
  <pre><code>import React, { Component } from 'react';
  import { connect } from 'react-redux';
  import asyncPoll from 'react-async-poll';
  import { fetchCaCities, } from '../actions';
  import MyMap from './my-map';
  
  class CaliforniaMap extends Component {
    componentDidMount() {
      this.props.fetchCaCities();
    } 
  
    render() {
      return (
        &lt;div&gt;
          &lt;h1&gt;California Map&lt;/h1&gt;
          &lt;MyMap center={[37.5, -120]} zoom={6} layers={[this.props.caCities]} /&gt;
        &lt;/div&gt;
      );
    }
  }
  
  const onPollInterval = (props, dispatch) =&gt; {
    console.log(dispatch); // undefined
    return dispatch(fetchCaCities());
  };
  
  const mapStateToProps = state =&gt; ({
    caCities: state.map.california.caCities,
  });
  
  export default asyncPoll(60 * 1000, onPollInterval)(connect(
    mapStateToProps, { fetchCaCities }
  )(CaliforniaMap)
  </code></pre>
  
  <p>Maybe <code>react-async-poll</code> doesn't work for connected components?</p>