Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats Widget: Widgets do not update automatically #23087

Open
staskus opened this issue Apr 25, 2024 · 1 comment
Open

Stats Widget: Widgets do not update automatically #23087

staskus opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
Stats [Type] Bug Widgets Anything related to Home Screen widgets

Comments

@staskus
Copy link
Contributor

staskus commented Apr 25, 2024

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 staskus added [Type] Bug Stats Widgets Anything related to Home Screen widgets labels Apr 25, 2024
@staskus staskus self-assigned this Apr 25, 2024
@dangermattic
Copy link
Collaborator

dangermattic commented Apr 25, 2024

Thanks for reporting! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stats [Type] Bug Widgets Anything related to Home Screen widgets
Projects
None yet
Development

No branches or pull requests

2 participants