You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Adrian, I am having an issue with the onAdd function, where the setCartItems only updates on the second click of the add to cart button. I have asked the question on StackOverflow and the link is below.
If you have any insights please, can you help? And also, thank you for all the amazing work that you are doing.
The text was updated successfully, but these errors were encountered:
uc129
changed the title
setCartItems only updates when
setCartItems only updates on second click of add to cart button, with the previous product and quantity
Dec 12, 2022
Hi Adrian, I am having an issue with the onAdd function, where the setCartItems only updates on the second click of the add to cart button. I have asked the question on StackOverflow and the link is below.
If you have any insights please, can you help? And also, thank you for all the amazing work that you are doing.
console logs of updating the state
Thank You.
Question with details on stack overflow-
The text was updated successfully, but these errors were encountered: