refactor(core): publish sync events to global event stream (#22347)
This commit is contained in:
parent
67aaecacac
commit
b22add292c
10 changed files with 597 additions and 409 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue