Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

responsive advice-generator application

Walid-Gs 220

@Walid-Gs

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


  • Responsive advice-generator app using the "advice slip" API and async await function.
  • I added a simple spinner while waiting for the fetched advice (you can fully tested if you lower your network connection speed ).
  • it works completely fine on my local machine, but won't let me generate new advice when i click on the button until i reload on the deployed version, please provide feedback guys to help fix it.

Community feedback

P
markus 1,940

@markuslewin

Posted

fetch will use cached responses by default. You're probably disabling caches when testing locally. You can change the behaviour with the cache option:

const response = await fetch(apiUrl, { cache: "no-store" });
1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord