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

View file

@ -8,6 +8,10 @@ export function useEvent() {
function subscribe(handler: (event: Event) => void) {
return sdk.event.on("event", (event) => {
if (event.payload.type === "sync") {
return
}
// Special hack for truly global events
if (event.directory === "global") {
handler(event.payload)