Design comparison
Solution retrospective
Most of my problems i had with the advices generated from API, because it doesn`t work on Firefox(it works fine on Chrome and Edge). If you have time please tell my what could be the cause of this problem. Any other comments will be also helpful.
Community feedback
- @msunjiPosted over 2 years ago
Hiya! Great work solving this challenge! 👍
So I think it's a cache issue or something. Anyway, I added:
{ cache: 'no-store' }
to yourfetch
method, so it becomes:const response = await fetch('https://api.adviceslip.com/advice', { cache: 'no-store', });
This seems to solve the issue. Hope this helps and best of luck with future challenges!
Marked as helpful0@T-BaranPosted over 2 years ago@msunji Thank you for your reply It really works, I would have never think about because i didnt know such parameters existed.
0
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