We have added the add to cart api call in the Product.tsx file. The API call was happening successfully but the cart notification and Cartline items are not being updated automatically. Once we refresh the page it is updating.
What needs to done for updating the Cart notifications and cart line item after the successful api call?
Can anyone suggest what method/dataactions need to be called after the successful API call?
Hi Team,
We have added the add to cart api call in the Product.tsx file. The API call was happening successfully but the cart notification and Cartline items are not being updated automatically. Once we refresh the page it is updating. What needs to done for updating the Cart notifications and cart line item after the successful api call?
Can anyone suggest what method/dataactions need to be called after the successful API call?
Any suggestion will be really helpfull.
Thanks in Advance