refactor(core): publish sync events to global event stream (#22347)

This commit is contained in:
James Long 2026-04-13 16:51:59 -04:00 committed by GitHub
commit b22add292c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 597 additions and 409 deletions

View file

@ -155,7 +155,12 @@ export const { use: useGlobalSDK, provider: GlobalSDKProvider } = createSimpleCo
resetHeartbeat()
streamErrorLogged = false
const directory = event.directory ?? "global"
const payload = event.payload
if (event.payload.type === "sync") {
continue
}
const payload = event.payload as Event
const k = key(directory, payload)
if (k) {
const i = coalesced.get(k)