woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.22k stars 10.74k forks source link

Make loading state less aparent for Express checkout buttons #42148

Open tarunvijwani opened 8 months ago

tarunvijwani commented 8 months ago

Describe the bug

The express checkout buttons are being disabled and enabled every time changes are made to the Checkout form. This may not provide a good user experience.

To reproduce

Steps to reproduce the behavior:

  1. Enable express checkout payment method.
  2. Go to the Checkout block page.
  3. Update the checkout form
  4. Notice express checkout buttons getting disabled and enabled every time changes are made to the Checkout form.

Expected behavior

Express checkout buttons shouldn't refresh after every change in the form.

Screenshots

https://github.com/woocommerce/woocommerce-blocks/assets/11503784/854a6cb0-0ab9-412b-833c-66573e89fbab

Slack:

p1698329324829019-slack-C8X6Q7XQU

opr commented 8 months ago

I don't think the answer is making the loading state less apparent, but figuring out if we can stop them from reloading when inconsequential changes are made. They will need to reload when certain changes are made, e.g. the country changes, a certain method may not be available in a specific country.