Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
When user chooses 'opt-out Shop Pay' or 'buy as a guest', checkout object seems to change to stale / invalid state.
This is a real webUrl of checkout object:
-> which redirects to:
https://vinyl7records.myshopify.com/checkouts/co/15a391b72db3900d75456b885a6aecdf
-> which redirects to:
https://vinyl7records.myshopify.com/
This redirect itself would be proper behaviour as this checkout object is already 'stale'.
I want to clear checkout object if the object is stale/invalid and create a new checkout object.
But how do I know the object is stale/invalid?