wordpress-mobile / WordPress-FluxC-Android

WordPress Network and Persistence layer based on the Flux architecture
GNU General Public License v2.0
57 stars 37 forks source link

Fix order pagination break #3089

Closed atorresveiga closed 2 months ago

atorresveiga commented 2 months ago

Part of: https://github.com/woocommerce/woocommerce-android/issues/12491

Description

Previously, the order list relied on the refresh event to update when changes were detected, leading to inconsistent pagination. This PR addresses the issue by using the invalidate event instead. This ensures that the list is updated only when necessary, improving performance and ensuring a smooth pagination experience.

Testing

It is better to test this PR using the Woo PR