Async Validation Race Condition #3076
Unanswered
mattsputnikdigital
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Lets say im validating a postcode M21 9LK and I have an async validation test which checks with an api if the postcode is valid.
If the user types a wrong postcode M21 9LL, which initiates an async lookup, but then corrects to M21 9LL which initiates a second async lookup the first is not cancelled.
So is the response for M21 9LL (bad) comes back after M21 9LK (good) the fields is set to invalid even though the value was changed to a valid value.
Beta Was this translation helpful? Give feedback.
All reactions