adopted-ember-addons / validated-changeset

Buffering changes to form data
MIT License
36 stars 27 forks source link

async validators can complete out of order #105

Closed BryanCrotaz closed 3 years ago

BryanCrotaz commented 3 years ago

As you type in an input, async validations are fired off for each keypress. The results are not tracked against the current state:

1st keypress - invalid, but slow
1st async validation starts
2nd keypress - valid but fast
2nd async validation starts
2nd async validation completes: TRUE
1st async validation completes: FALSE
Data in the input control is valid, but validation says it isn't.

I'm working on a PR

https://github.com/poteto/ember-changeset-validations/issues/286

snewcomer commented 3 years ago

107 Will be released this Friday! Thank you for bringing this up. Really appreciated.