We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variants
No response
hydrogen-react
2023.1.7
n/a
We need to have a better error/warning for this situation:
ProductProvider
flattenConnection
hydrogen/packages/hydrogen-react/src/ProductProvider.tsx
Lines 55 to 58 in 1440953
ProductProvider should have a warning with details of what's missing on the product prop.
product
flattenConnection(): The connection did not contain either "nodes" or "edges.node". Returning an empty array.
The text was updated successfully, but these errors were encountered:
Also need to do this for sellingPlanGroups and sellingPlanAllocations
sellingPlanGroups
sellingPlanAllocations
In other words, any place that flattenConnection is used there.
Sorry, something went wrong.
No branches or pull requests
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?
2023.1.7
What version of Remix are you using?
n/a
Steps to Reproduce
We need to have a better error/warning for this situation:
ProductProvider
, passing a data prop that doesn't containvariants
flattenConnection
that it couldn't flatten the connectionhydrogen/packages/hydrogen-react/src/ProductProvider.tsx
Lines 55 to 58 in 1440953
Expected Behavior
ProductProvider should have a warning with details of what's missing on the
product
prop.Actual Behavior
The text was updated successfully, but these errors were encountered: