Skip to content
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

cart data in hydrogen react project is not removed realtime, only removed when refresh page #712

Open
sondt1610 opened this issue Mar 22, 2023 · 0 comments

Comments

@sondt1610
Copy link

What is the location of your example repository?

https://shopify.dev/docs/api/hydrogen-react/components/cartcheckoutbutton

Which package or tool is having this issue?

hydrogen-react

What version of that package or tool are you using?

2023-01

What version of Remix are you using?

No response

Steps to Reproduce

  • Build project use custom storefront hydrogen
  • Add item to card use AddToCartButton Component of @shopify/hydrogen-react
  • Use component CartCheckoutButton to redirect user to checkout url
  • Execute checkout success

Expected Behavior

  • Cart Data in hydrogen react project is removed

Actual Behavior

  • Cart Data in hydrogen react project is not removed, only when refresh page => cart removed
  • I want cart data is checked realtime
@sondt1610 sondt1610 changed the title how to clear cart data in hydrogen react project after use CartCheckoutButton (hydrogen react component) and redirect to checkout url and checkout success cart data in hydrogen react project is not removed realtime, only removed when refresh page Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants