3 ms·
`await` is essentially syntactic sugar that means "wrap everything after this in a callback to be executed after this function does something asynchronously."
by rcfox 8y ago
`await` is essentially syntactic sugar that means "wrap everything after this in a callback to be executed after this function does something asynchronously."
- chriswarbo 8y agoI see. That would presumably still have the problem of multiple spinners, as I mentioned at the end of my original comment?
- rcfox 8y agoYes. You'd want to guard against this running more then once, probably by disabling the button until the submit finished.