Skip to content

Conversation

@kdaviduik
Copy link
Contributor

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

HOW to test your changes?

Post-merge steps

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

@kdaviduik kdaviduik mentioned this pull request Sep 25, 2025
5 tasks
@kdaviduik kdaviduik changed the title All changes to skeleton template and packages/* c Sep 25, 2025
@kdaviduik kdaviduik changed the title c All changes to skeleton template and packages/* Sep 25, 2025
const cartId = result?.cart?.id;
const headers = cartId ? cart.setCartId(result.cart.id) : new Headers();
const {cart: cartResult, errors, warnings, userErrors} = result;
const {cart: cartResult, errors, warnings} = result;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

userErrors stuff got deleted

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this was the one I discovered that prompted this whole thing!

warnings={actionData?.warnings}
userErrors={actionData?.userErrors}
/>
<CartMain layout="page" cart={cart} />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was definitely unintentional

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, however these warnings and userErrors would only be rendered on the /cart route which is almost impossible to access as most cart is managed on the side cart (warnings and userErrors) would still not show in it.

LENGTH: ['MM', 'CM', 'M', 'IN', 'FT', 'YD'],
AREA: ['M2', 'FT2'],
COUNT: ['ITEM'],
WEIGHT: ['MG', 'G', 'KG'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These modifications ended up on main. Ie: the new units we had added got deleted and are still deleted. We need to add them back.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing with the tests too

"@react-router/dev": "7.8.2",
"@react-router/fs-routes": "7.8.2",
"@shopify/cli": "~3.83.3",
"@shopify/cli": "~3.80.4",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! This one was later updated though so not an issue now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants