@MelvinAguilar
Posted
Hi @Andy-Esm π, good job on completing this challenge! π
This API mentions the following in its documentation: Note: Advice is cached for 2 seconds. Any repeat-request within 2 seconds will return the same piece of advice. You can add the header cache: 'no-cache'
to your fetch, but this will allow the button to be spammed. During the first two seconds after pressing the button, the button should be disabled or something should indicate that it is loading
Good job, and happy coding!
Marked as helpful
@Andy-Esm
Posted
@MelvinAguilar Didn't know that. Thank you!