How is it possible to check has a value already existed using React Final Form? I'm interested in the general approach. Also, be thankful for some links, etc, because could find nothing relevant.
Now details:
- I have a form: a text input "User name" and a button "Submit".
- I type a value (let say, "John") and press "Submit".
- The value is saved into a database and becomes to display on my web page.
- The input field is cleared and I am able to enter the new value.
- I'm entering "John" again.
I should get an error message "Such name has already existed" once I moved the focus out of the field, or click on the "Submit" button.