WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

Stats Widget: Widgets do not update automatically

Open staskus opened this issue 1 year ago • 1 comments

Stats Widgets don't update automatically on their own anymore.

Context: p1714038584459619-slack-C0180B5PRJ4

Steps to reproduce

  1. Install Jetpack app
  2. Login
  3. Go to the home screen
  4. Any widget
  5. 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.

image

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.

staskus avatar Apr 25 '24 10:04 staskus

Thanks for reporting! 👍

dangermattic avatar Apr 25 '24 10:04 dangermattic