Advice Generator Solution

Solution retrospective
This was a great exercise to start my morning off with. The one major issue I had initially was that the cache utilized in the API caused the function to call the same quote despite waiting the 2 seconds before hitting for a new quote. I utilized StackOverflow to look up solutions in order to resolve this issue that every time the user hits the dice they would receive a new quote. The solution I ended up using includes an object cache and sets it to no cache that way the data is constantly refreshing when the dice button is clicked.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Kelsey Hughes's solution.
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