-
Notifications
You must be signed in to change notification settings - Fork 380
Description
What is the location of your example repository?
No response
Which package or tool is having this issue?
hydrogen-react
What version of that package or tool are you using?
Latest
What version of Remix are you using?
No response
Steps to Reproduce
The storefront API cart mutations return cart, userErrors, and warnings. See the documentation for cartLinesUpdate for example.
The applicable queries in react-hydrogen do not return userErrors or warnings, instead returning only the cart based on the specified cartFragment. See the CartLineUpdate mutation for example.
This means there is no way to display userErrors or warnings as these are effectively swallowed by react-hydrogen. This is confusing for the user as the cart may be updated in a way that is not consistent with what the user requested without any feedback being displayed to the user.
Expected Behavior
userErrors and warnings are surfaced by react-hydrogen so these can be displayed to the user.
Actual Behavior
userErrors and warnings are swallowed by react-hydrogen.