We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey, just wondering if anyone else has run into this issue I'm having or if anyone can help.
I'm using the embedded checkout and once a checkout is complete the cart doesn't empty unless you do a full page refresh.
I'm using the "useCart" hook to display cart info.
Thanks
The text was updated successfully, but these errors were encountered:
I've used the "onComplete" option from the embedded checkout to revalidate the cart which is working. Is this how it's supposed to be used?
Sorry, something went wrong.
Hey @mattdjenkinson, where are you setting that onComplete option?
onComplete
Hey Joe,
I'm setting it when calling the embedded checkout.
` await module.embedCheckout({ containerId: "checkout", url: embedded_checkout_url, styles: styles, onSignOut: () => logout(), onComplete: () => revalidate(), });`
No branches or pull requests
Hey, just wondering if anyone else has run into this issue I'm having or if anyone can help.
I'm using the embedded checkout and once a checkout is complete the cart doesn't empty unless you do a full page refresh.
I'm using the "useCart" hook to display cart info.
Thanks
The text was updated successfully, but these errors were encountered: