woocommerce / woocommerce-ios

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

Avoid changing dashboard cards multiple times #12611

Closed selanthiraiyan closed 2 weeks ago

selanthiraiyan commented 2 weeks ago

Closes: #12610

Description

I suspect that it could be related to this code. Let me know your thoughts.

My hypothesis,

Reason for crash

Possible solution What if we refactor the code to write to dashboardCards and unavailableDashboardCards only once from the updateDashboardCards method? We can push this onto a branch and ask Paolo to reproduce the crash.

Testing instructions

Screenshots


dangermattic commented 2 weeks ago
1 Message
:book: This PR is still a Draft: some checks will be skipped.

Generated by :no_entry_sign: Danger

wpmobilebot commented 2 weeks ago

WooCommerce iOS📲 You can test the changes from this Pull Request in WooCommerce iOS by scanning the QR code below to install the corresponding build.

App NameWooCommerce iOS WooCommerce iOS
Build Numberpr12611-583284e
Version18.4
Bundle IDcom.automattic.alpha.woocommerce
Commit583284ea9412191b67f9fd8bfe9691bb9eea22c8
App Center BuildWooCommerce - Prototype Builds #8897

Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

selanthiraiyan commented 2 weeks ago

Closing this PR as this didn't fix the issue. I raised another PR with a fix. https://github.com/woocommerce/woocommerce-ios/pull/12616