Heya Jan!
The animation effect you've added is super neat. Well done! 👍
The reason why you're receiving the same response is likely because of the Advice Slip JSON API itself. From the docs: "Note: Advice is cached for 2 seconds. Any repeat-request within 2 seconds will return the same piece of advice."
What you can do instead is try adding { cache: 'no-store' }
to your fetch request. I've seen this as a suggested solution as well. Hope this helps!
Marked as helpful
@JanWu100
Posted
@msunji Thanks a lot :) I think I need to start reading those docs ;) I will read up on this. Thanks!