title: How can I do sync field validation based on a param with redux-form?
body: <p>I need sync field validation on a redux-form field. A param  for it (minimum value) is in the redux store.</p>
  
  <p>How can I pass a param to a field validator function? Or even to the form's sync validator func.</p>
  
  <p>As far as I understood I've two options to set field validation:</p>
  
  <ol>
  <li>Pass a validate function to reduxForm()</li>
  </ol>
  
  <p>If i go with this route how can I access the Form props from the validate function?
  Even if I bind the validate function to the form it can't see the form's props. </p>
  
  <pre><code>App = reduxForm({
    form: "MyForm",
    validate: validate.bind(App)
  })(App);
  </code></pre>
  
  <p>I could not either pass a MyForm.Validate function to the reduxForm.</p>
  
  <ol start="2">
  <li>Set a validate function using the validate prop on Field component</li>
  </ol>
  
  <p>This route i would pass the prop as a parameter to the validation function.
  Ie. <code>&lt;Field validate={minValue(this.props.minValue)} /&gt;</code> 
  <a href="https://github.com/erikras/redux-form/issues/2453#issuecomment-272483784" rel="nofollow noreferrer">But in this comment</a> it is said is not a good way because it creates a new function on each form render. Indeed it  doesn't work properly - no validation until an other field's validation error occurs.</p>
  
  <p><a href="https://codepen.io/szert/pen/WZQQKZ?editors=0011" rel="nofollow noreferrer">My attempts on codepen</a></p>