woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
278 stars 134 forks source link

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

Open iamgabrielma opened 2 years ago

iamgabrielma commented 2 years ago

From testing10.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

peril-woocommerce[bot] commented 2 years ago
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] commented 2 years ago
Fails
:no_entry_sign: Please add a feature label to this issue. e.g. 'feature: stats'

Generated by :no_entry_sign: dangerJS

pachlava commented 2 years ago

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).

hichamboushaba commented 2 years ago

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.