Great tutorial. However, the issue that I would like to point out is that if a user keeps clicking on 'Add To Cart' on the same product, it creates multiple of the same product inside the cart instead of just increasing the quantity.
Is the quantity a string or an int? I was having an error of getting the total price of NaN and it turned out that the values I had in my api were string, not int.
36:56 printing the cart data
42:56 summary of the cart
Great tutorial. However, the issue that I would like to point out is that if a user keeps clicking on 'Add To Cart' on the same product, it creates multiple of the same product inside the cart instead of just increasing the quantity.
Nice, I am the third person to comment, but it is a perfect video, pls provide a tutorial with TS.
Its good that u have started giving source code
when i am clicking the + button ,it shows 11 in the quantity box and in total items box also, can you tell me what 's problem is this ?
i think the reason is string you have added string instead convert that to number to add them
Thanks, i like the tutorial
Please some more projects with useReducer hook.....Thank you ❤
Yo´re good! more proyects please 💪🏻💪🏻
Good you started to provide the source code
any idea why quantity is NaN and not increasing
check in your api does it provide "quantity" or not
it gives all time undefined ?
check in your api does it provide "quantity" or not
@@hammadhasan5159 i found where i'm getting error , we have to pass tow argument in the context competent .
@@NitinkumarSaini-qb6kz can you help me?
My app doesnt increase neither decrease, I have a quantity in my api, but I can making these operations
Is the quantity a string or an int? I was having an error of getting the total price of NaN and it turned out that the values I had in my api were string, not int.
connect payment gateway part video also