Advice Generator App

Solution retrospective
I've seen this challenge come by multiple times and every time I was not able to get new Advice data. So I thought I'd give this challenge a shot myself.
I also encountered this issue and managed to resolve it by using a cache
prop in the request options.
async function refetch() { const response = await fetch("https://api.adviceslip.com/advice", { cache: "reload", }); }
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Ruben'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