As shown in the movie, the image received by the api is displayed on the screen.
When I send a word, I use an api to get an image corresponding to the word.
However, the words and images displayed on the screen do not match.
The reason is that when you send a request to api and the image is not displayed on the screen, the next time you request a word, the picture corresponding to the previously requested word is displayed on the screen.
So the screen does not display the picture corresponding to the word you requested, but rather the image you requested before.
How can I solve this problem?
Can’t I immediately display the requested image on my screen?