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
* Remove updateSingleConnectedWpcomSite IPC handler
Replace all usages with the existing updateConnectedWpcomSites handler
by wrapping the single site in an array. This eliminates a redundant
IPC handler that duplicated logic already present in the bulk variant.
* Restore timestamp updates on push/pull success
The updateSiteTimestamp calls were dropped in #2037 when push/pull
states moved from SyncSitesProvider to a Redux slice. Wire them back
up by dispatching the RTK Query mutation from the thunks.
* Remove updateSiteTimestamp RTK Query mutation, call IPC directly
Replace the RTK Query mutation with a plain async function that calls
getIpcApi().updateConnectedWpcomSites() directly from the thunks.
Await the timestamp write before invalidating the cache to avoid a
race where the re-fetch reads stale data.
0 commit comments