Skip to content

Clear cache on error #147

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

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Clear cache on error #147

merged 2 commits into from
Oct 29, 2024

Conversation

kiftio
Copy link
Contributor

@kiftio kiftio commented Oct 28, 2024

What changes are you making?

Ensure the preload cache is invalidated on error. I believe a bug was introduced here which stopped this from happening.

There's also a small tweak to the sample to clear the cart on unrecoverable error. Matches up with iOS here

How to test

Force unrecoverable error and check cart is cleared.

Before you merge

Important


Checklist for releasing a new version

Tip

See the Contributing documentation for instructions on how to publish a new version of the library.

@kiftio kiftio requested a review from a team as a code owner October 28, 2024 11:16
@kiftio kiftio changed the title Clear cart on unrecoverable error Clear cache on error Oct 28, 2024
ensure cache entry is marked as stale on failure
@kiftio kiftio force-pushed the dk/clear-cart-on-unrecoverable branch from a79da06 to bb70e6a Compare October 28, 2024 12:03
@kiftio kiftio merged commit a55a6c9 into main Oct 29, 2024
4 checks passed
@kiftio kiftio deleted the dk/clear-cart-on-unrecoverable branch October 29, 2024 09:46
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.

2 participants