You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement RTK Query approach for fetching wpcom sites (#2132)
* Implement RTK Query approach for fetching wpcom sites
* Use the new hook and update loading conditions
* Rename function name for clarity
* Remove use-fetch-wpcom-sites and update imports
* Fix tests
* Refetch sites when opening the sites modal instead of using an effect
* Do not fetch sites on mount
* Update files after merge
* Infer the SitesEndpointSite type from the schema
* Remove unnecessary effect on sites modal
* Unify Publish site button in one component with a redirect prop
* Fix comment wording
* Remove isBusy from the publish site button
The query is executed in the background so it is not required to indicate that in the button
* Move fetching sites logic to sites modal selector
* Add and remove comments
* Refactor connected-sites mutation to accept an id and fetch the sites
* Revert "Refactor connected-sites mutation to accept an id and fetch the sites"
This reverts commit 5cfc0f2.
* Use the more declarative refetchOnMount instead of an effect on pull-remote-site
* Remove unnecessary code
* Do not disable Connect site button if any site is syncing
* Refactor Publish site button to remove unnecessary prop
0 commit comments