woocommerce-android icon indicating copy to clipboard operation
woocommerce-android copied to clipboard

Tapping on "Switch Stores" takes a long time to load

Open iamgabrielma opened this issue 2 years ago • 4 comments

From testing 10.2-rc-1. Ref: p5T066-3yz-p2

When tapping Switch Store, it would seem that it takes a very long time to load the list of sites ( approximately ~10 seconds ).

This happens each time we do so, not only the first time. As this is the only place I could see this happening through the app ( all other network calls and loading time are almost instant ) I wonder if there's some networking overhead we could improve:

!Recording

iamgabrielma avatar Sep 06 '22 18:09 iamgabrielma

Fails
:no_entry_sign: Please add a feature label to this issue. e.g. 'feature: stats'

Generated by :no_entry_sign: dangerJS

peril-woocommerce[bot] avatar Sep 06 '22 18:09 peril-woocommerce[bot]

Fails
:no_entry_sign: Please add a feature label to this issue. e.g. 'feature: stats'

Generated by :no_entry_sign: dangerJS

peril-woocommerce[bot] avatar Sep 06 '22 18:09 peril-woocommerce[bot]

Thanks for the report @iamgabrielma! I wonder how many stores (approximately) are there in the list? In my case, the list is loaded instantly (but I'm using an account with two stores connected).

pachlava avatar Sep 08 '22 09:09 pachlava

Refetching the stores would happen only if there are any Jetpack CP stores connected to the account, this was done for historical reasons, and I believe there is room for improvements there. Still, as pointed by @pachlava, this won't have the same impact on our users, we experience a long delay here just because our test accounts (or work accounts) are connected to many stores, and it's not the case for the users.

So I'd say this is valid issue, but it's not urgent.

hichamboushaba avatar Sep 12 '22 18:09 hichamboushaba