Design comparison
SolutionDesign
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",
});
}
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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