woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
303 stars 109 forks source link

[Woo POS] PointOfSaleDashboardViewModel not deinitialized after exiting POS #13895

Open staskus opened 1 month ago

staskus commented 1 month ago

Describe the bug

PointOfSaleDashboardViewModel not deinitialized after exiting POS

image

To Reproduce Steps to reproduce the behavior:

  1. Open POS
  2. Exit POS
  3. Open POS
  4. Exit POS
  5. Open memory debugger
  6. Notice PointOfSaleDashboardViewModel and related dependencies are not cleared and appear as many times as POS was opened

Expected behavior

POS dependencies should be cleared after closing POS

Isolating the problem (mark completed items with an [x]):

Mobile Environment Please include:

WordPress Environment

``` Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin. ```
dangermattic commented 1 month ago

Thanks for reporting! 👍