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.
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-