[Woo POS] Avoid triggering dashboard view redraws whenever any POS aggregate model property changes #14869
Labels
feature: POS
priority: medium
Planned tasks usually belonging to ongoing projects
type: enhancement
A request for an enhancement.
For issues #14853 and #14860, whenever
PointOfSaleAggregateModel.itemsViewState
is updated like for the loading state while waiting for the API request, the refresh control async taskrefreshable
gets canceled because the top-level viewPointOfSaleDashboardView
is redrawn (and thus theItemListView
).There are workarounds to preserve the async task for refreshable, but with tradeoffs. Ideally, we can avoid triggering redraws by providing more granular updates instead of the whole ObservableObject
PointOfSaleAggregateModel
being changed. The best candidate so far is iOS 17+ Observation framework. Some refactoring is likely required.The text was updated successfully, but these errors were encountered: