title: Access State inside of mapDispatchToProps method
body: <p>I have written a container component using redux and my implementation for <code>mapDispatchToProps</code> looks like this</p>
  <pre><code>const mapDispatchToProps = (dispatch, ownProps) =&gt; {
      return {
          onChange: (newValue) =&gt; {
              dispatch(updateAttributeSelection('genre', newValue));
              dispatch(getTableData(newValue, ownProps.currentYear));
          }
      }
  }
  </code></pre>
  <p>The problem is that in order to getTableData I need the state of some other components. How can I get access to the state object in this method?</p>