title: Trying to access redux store from within validate function
body: <p>Using Redux-form, I'm running into issues with validation. </p>
  
  <p>I would like to access the store for referencing a piece of state in validation. </p>
  
  <p>I have standard redux form export: </p>
  
  <pre><code>function mapStateToProps({address_object}) {
    return{
      address_object: address_object}
  }
  
      export default reduxForm({
        form: 'wizard',
        destroyOnUnmount: false,
        forceUnregisterOnUnmount: true,
        validate,
      })(
        connect(mapStateToProps,mapDispatchToProps)(WizardFormFirstPage)
      );
  </code></pre>
  
  <p>and my validate function: </p>
  
  <pre><code>const validate = (values, props) =&gt; {
    console.log("DEBUG :",props)
  ... if / else etc
  </code></pre>
  
  <p>which lets me gets at the props of the form</p>
  
  <p>however I would like to run validation against something that is stored in state. something like: </p>
  
  <pre><code>    if (&lt;something in state&gt; === values.&lt;thing&gt;) {
   errors.field = "broken"}
  </code></pre>
  
  <p>console logging the props that validation receives, I can't get it to see anything in state. I can see the address_object in the WizardFormFirstPage component obviously (so actions and reducers are working fine)  </p>
  
  <p>Do I need to declare the validate function inside the component (that's connected with mapStateToProps) in order to access this.props.whatever ?? If thats the case, does it work if I call it from the export reduxForm()?? </p>
  
  <p>redux noob - apologies if dumb question</p>