After implementation of the fetch() method, I found that if clicking multiple times to generate a new request, the content starts throttling as it changes to the loading message, then it uploads the content from the cache (meaning the text is the same as in the previous advice). Is there any way to avoid this behavior? So, if I click multiple times, every time I click the button, a new request is fetched.
invictus
@invictus1032All comments
- @mikhailkollenSubmitted almost 2 years ago@invictus1032Posted almost 2 years ago
Yes, add
{cache: "no-store"}
param to yourfetch()
call to prevent caching.Marked as helpful2 - @R-ThibaultSubmitted about 2 years ago
I've started coding 4month ago, any advices or tips are welcome ! I will be happy to have feedback regarding my challenge !
I also have a question.
I did some research because I wanted to disabled the Tips button when you select the custom input. I have found the way to disabled a button when input field are empty, but I wasn't capabe to the opposite. Do you know how to do it ?
Have fun ! Best regards !
@invictus1032Posted about 2 years agoHi, the live url isn't working. Are you sure the site has been published? Or maybe you typed the wrong URL?
0 - @sbetavSubmitted about 2 years ago@invictus1032Posted about 2 years ago
How did you freeze the container's width? Mine is adapting to the advice's length.
0 - @sbetavSubmitted about 2 years ago@invictus1032Posted about 2 years ago
You should add
{cache: "no-store"}
param to yourfetch
call to prevent your request from getting cached. That way, you wouldn't receive the same advice when you roll the dice. Other than that, it's excellent!Marked as helpful1 - @MikssxedSubmitted about 2 years ago@invictus1032Posted about 2 years ago
You should add
{cache: "no-store"}
param to yourfetch
call to prevent your request from getting cached. That way, you wouldn't receive the same advice when you roll the dice. Other than that, it's pretty good.Marked as helpful1