Get your text back when adding fails
Without it
anna@example.com
The field empties as soon as you press Enter; if the request then fails, the text is gone and you type it again.
With it
anna@example.com
While the request runs, a second Enter or Add sends nothing, the field shows a spinner, a screen reader announces “Adding…”, and you can keep typing. If the request fails, or the handler throws, the text returns to the field with a line saying it could not be added and that Enter tries again. If you typed something new while the request ran, that text stays instead, and the line only says what could not be added.
Without it
anna@example.com
The field empties as soon as you press Enter; if the request then fails, the text is gone and you type it again.
With it
anna@example.com
While the request runs, a second Enter or Add sends nothing, the field shows a spinner, a screen reader announces “Adding…”, and you can keep typing. If the request fails, or the handler throws, the text returns to the field with a line saying it could not be added and that Enter tries again. If you typed something new while the request ran, that text stays instead, and the line only says what could not be added.