TypeError: addItem is not a function
brixNessia opened this issue · comments
AddItem is working at first, but when I refresh the page this AddItem is not a function error is displayed. I've tried console.log() the value of useCart and all the function is gone when I refresh it.
Hello
please provide some kind of codesandbox showing the error so I can help further.
Thanks 🙏
please provide some kind of codesandbox showing the error so I can help further.
Here the code sandbox link
https://codesandbox.io/s/modest-sid-gkvyp1?file=/src/App.js
I have been provided the same code in npm package Demo code and it shows the same error.
Please help us!!
You have no CartProvider 😄
@notrab Thank you for your response.
I already found it.