Skip to content

validateForm with props #63

@sashberd

Description

@sashberd

Hi,
I faced with problem when I used you lib.
E.g. I have to do validate redux form infront of some props values:

 const { form, quantity, totalBought, t } = props;

validateForm({
        [`fieldId${form}`]: numericality({
          greaterThan: quantity - totalBought,
          message: t('error'),
        }),
      });

in regular redux form validation I get props from validate function:

 reduxForm({
    validate: (values, props) => {...})})

In your lib examples, as I can see, the validate object cannot be feed with component props or I missed something?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions