Stages Demos:

[ Note: Stages comes without styles, you have to bring your own! ]

Async Validation

In this demo, we simulate an async validation api call with a random timeout. The validation is simple. All odd character counts in the title field will be an error. We disable the action button while async validations happen. Stages meanwhile takes care of any race conditions (each validations can take between 0 and 2 seconds, so this is necessary as later api calls can finish before earlier calls). While validating (on init, blur and action), we display a note below the field.

path: title | type: text


- - -
(c) 2023 by Fredi Bach : Unic : Github