Example - https://codesandbox.io/s/react-final-form-field-level-validation-example-jlqfx?fontsize=14
I have a form with age which is a required numerical field. I want to run two different validations
When the user enters a input, it should validate if the entry is a number. If the user leaves it empty, no error should be surfaced
When the user clicks submit, it should validate that the entry is not empty AND it's a number.
Basically, the non-empty validation should only run on submit. How do I achieve this using react-final-form