Issue: useLocalizationCountry Hook Fails to Reflect Shipping Address Changes in Checkout Editor

I’m currently working with a Checkout UI Extension. On the storefront, the useLocalizationCountry hook functions correctly with the one-page checkout. However, within the Checkout Editor or the three-page checkout flow, the ISO code returned by this hook does not update when the country is changed in the shipping address selector.

Hey @Chi_n_Nguy_n_Van thanks for reporting. I dug into this a bit. It appears this is an artifact of our three page-checkout. Currently in three-page mode just updating the country field does not update the address for the current session. It’s not until you progress to the next step of checkout where this happens and you will see that hook update.

Checking in with the broader team on whether this is expected behavior or something we may change.

2 Likes