2 people reported

All time, since Jun 13, 2024.

Cart query mishandles cart IDs

“otherwise the given cartId member with cartInput object is completely ignored, getCartId may return null and exit the function early.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/shopify/issues/6860/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Cart query mishandles provided or invalid cart IDs in Hydrogen. In cartGetDefault, a passed cartId is ignored, and an invalid cart ID returns {} instead of null.

Is this your bug?

File my report
Where
Hydrogen cart
Versions
2024.4.3
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. ignored cartId in cartGetDefaultOn GitHubhydrogen #3639
  2. cart.get returns empty object when cart ID is invalidOn GitHubhydrogen #2242

Do you work on Shopify?

Claim its RAP Sheet to see what your users report and answer them in one place.