@Itskrish01
Posted
Hey, I just checked and discovered that every time I click the button it does not show me new advice. To fix this you can use the boolean isLoading state to check if the advice is isLoading and add a loading animation and disabled the button while the isLoading is true, add debounce so you can show the data every time you click the button. because right now when I click the button I make another request when the previous one is not even completed you can fix it by using this method.
Marked as helpful
@madosy
Posted
@Itskrish01 Appreciate the feedback! I will try implementing your suggestion to the solution. :)