-
Notifications
You must be signed in to change notification settings - Fork 202
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
Streamable cart #1913
Streamable cart #1913
Conversation
🦋 Changeset detectedLatest commit: 3db640e 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 Skipped Deployments
|
|
||
useEffect(() => { | ||
if (lastResult?.error) { | ||
console.log(lastResult.error); |
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.
Should we throw a toast here?
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.
Now that we have the Streamable pattern in the component, we should actually pass in promises instead of awaiting for the cart. Is this something you planned to do in a different PR? I can also help with this, let me know.
69f6fb2
to
c6272e8
Compare
c6272e8
to
5b0cf63
Compare
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. No additional comments other than the ones that have already been made
⚡️🏠 Lighthouse reportLighthouse ran against https://catalyst-canary-2thz3q3m2-bigcommerce-platform.vercel.app 🖥️ DesktopWe ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:
📱 MobileWe ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:
|
What/Why?
Refactored Cart to use Streamable pattern. Also fixed positioning of Toaster.
Testing
CleanShot.2025-01-16.at.13.54.30.mp4