[Bug]: some commands used by useCart
composable does not return error object
#1393
Labels
useCart
composable does not return error object
#1393
Expected Behavior
All commands executing graphql requests should (if applicable) return errors so the application can handle it.
Actual Behavior
Some commands eg.
removeItemCommand
do not returnerror
data in the response.Possible Solution
Update returning data structure to include the error object and handle it in the composable.
Broken commands are:
Example implementation can be found in the applyCouponCommand
Steps to reproduce
No response
What version of Magento 2 integration are you using?
What version of Node.js are you using?
What browser (and version) are you using?
What operating system (and version) are you using?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: