Skip to content

Stats not loaded right after connecting Jetpack  #9352

@planarvoid

Description

@planarvoid

If you try to connect a self-hosted site to Jetpack to open stats, the loading fails the first time (you have to leave the screen and go back). The reason is that after the Jetpack install is finished the SiteModel is not yet updated with the remote siteId. We're triggering a fetchSite operation and it's up to race whether it can make it or not.

Steps to reproduce:

  • Create a self-hosted site (jurassic.ninja)
  • Add the self-hosted site in the app
  • Go to stats
  • Install Jetpack and connect it to your account
  • The stats open with en error "Data not loaded" and a retry button

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions