WordPress-iOS
WordPress-iOS copied to clipboard
Stats Widget: Widgets do not update automatically
Stats Widgets don't update automatically on their own anymore.
Context: p1714038584459619-slack-C0180B5PRJ4
Steps to reproduce
- Install Jetpack app
- Login
- Go to the home screen
- Any widget
- Notice that it shows zero values when it's loaded
Expected: Widget should load values itself
Investigation
Widget calls StatsServiceRemoteV2.getData by itself to fetch stats info. However, the guard let code fails.
It happens because self is nil since StatsServiceRemoteV2 is not retained in StatsWidgetService. There may have been some internal fixes within StatsServiceRemoteV2 which removed some retain cycles which made the widget code work in the first place.
Thanks for reporting! 👍