Open cmhnk opened 5 months ago
If you didn't have Product B
published to Hydrogen Channel, you shouldn't even able to get the product as part of any products / collection query.
Double check the access token you are using to make the storefront query and make sure that it is indeed the token assigned by the Hydrogen channel (you can see the value of PUBLIC_STOREFRONT_API_TOKEN
in the Hydrogen storefront environment variable section)
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.04
What version of Remix are you using?
2.9.2
Steps to Reproduce
custom.worn-with
.Set up two products, Product A and Product B, each with a single ProductVariant. Product A is in the Hydrogen channel; Product B is not in the Hydrogen channel.
Go to Product A's variant, and add Product B's variant to the
worn-with
metafield.Use the
createCartHandler
function with thecartQueryFragment
to retrieve theworn-with
metafield for every line item in cart.server.ts
Expected Behavior
Product B's variant should not be returned when calling
cart.get()
because it is not in the Hydrogen channel.Actual Behavior
Product B's variant is being returned when calling
cart.get()
, even though it is not in the Hydrogen channel.