Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi, In the frontend I'm using React and when I try to add product with add.js and axios, the product is added but, I'm getting a notice.
[shop_events_listener] Error in handleXhrDone: Inconsistent IDs between server response and request payload
I have searched a lot but don't found any solution. Here is my code:
let data = { items: [{ quantity: 1, id: variantId,//comes from product }] } axios.post('/cart/add.js', data ) .then(res => { console.log(res); }).catch(error => { console.log(error.response.data.message) });
Still finding solution for this
Any luck with this? This is happening to me too.
No, haven’t found any solution 😞
Any luck with finding the cause or a solution? I'm getting this too and it appears to be the cause of a bug I'm trying to fix!
Thanks.