-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
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
feat(core): fetch and show digital items in Cart #713
Conversation
🦋 Changeset detectedLatest commit: c7cadde The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Ignored Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on my end, few 🍹's but all :gucci:
apps/core/app/[locale]/(default)/cart/_components/shipping-info.tsx
Outdated
Show resolved
Hide resolved
@@ -44,19 +44,5 @@ export async function updateProductQuantity({ | |||
throw new Error('Failed to change product quantity in Cart'); | |||
} | |||
|
|||
// reset shipping estimation on update product quantity | |||
cookies().set({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
export const CartItem = async ({ product }: { product: Product }) => { | ||
const t = await getTranslations('Cart'); | ||
|
||
const extractCartlineItemsData = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍹 Not from this PR but maybe a quick win, thoughts on changing CartItemCounter
to avoid this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like pass in props instead of a single object?
1e4d1dd
to
f854288
Compare
929ee42
to
c7cadde
Compare
⚡️🏠 Lighthouse reportWe ran Lighthouse against the changes and produced this report. Here's the summary:
Lighthouse ran against https://catalyst-latest-g0ctvfdp6-bigcommerce-platform.vercel.app/ |
Builds of #711 to show correct pricing info.
What/Why?
Fetch and show digital items in Cart.
Testing
Locally