March 2018
Intermediate to advanced
592 pages
13h 44m
English
Now for the second half of this section I want to make some user experience improvements to the form next.
One improvement we're going to make is wiping the text value once a message was successfully sent. We're also going to do something similar with Send Location. As you might have noticed it can take up to a second or two for the Send Location geolocation call to actually complete, we're going to set this button to be disabled so someone doesn't spam it wondering what's happened. We're also going to update the text to say Sending Location so someone knows that something is happening in the background.
In order to get both those things done all we need to do is modify a few lines over inside of index.js ...