Note: This only applies if you have Persistent Cart enabled and are using a custom checkout built with the Checkout JS SDK.

Persistent cart is now in the process of rolling out to BigCommerce stores.

With this new feature, when a customer signs out from checkout, the cart associated with the customer’s account will be removed. The error (error.type = 'checkout_not_available') indicating absence of the cart will be thrown when signOutCustomer() is called.

If this applies to you, you will want to handle this error. One method of doing this could be redirecting the customer to your store’s login page.