Replies: 1 comment 3 replies
-
In general this wouldn't work because at runtime, the form object you pass from the parent will be used overriding the local validators you defined above. So either way if you COULD pass props into the validator function, this wouldn't actually ever execute. You should actually be getting a type error when trying to pass the form object to the ChildForm since the validators don't align either. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using withForm for a sub form, I need my validators schema to have access to the props of the component, for example if I want to test if a name is unique in a group, where group is given as a prop, so it would like to have access to a props property of all validators :
Beta Was this translation helpful? Give feedback.
All reactions