From babdfe4692b63cdd517f1f76cc58104f199cf534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rge=20N=C3=A6ss?= Date: Fri, 20 Dec 2024 16:38:24 +0100 Subject: [PATCH] fix(core): merge in listenerEvents in _keepalive stream (#8122) --- .../core/store/_legacy/document/document-pair/checkoutPair.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sanity/src/core/store/_legacy/document/document-pair/checkoutPair.ts b/packages/sanity/src/core/store/_legacy/document/document-pair/checkoutPair.ts index 164cf477d4a..34a42be66b2 100644 --- a/packages/sanity/src/core/store/_legacy/document/document-pair/checkoutPair.ts +++ b/packages/sanity/src/core/store/_legacy/document/document-pair/checkoutPair.ts @@ -254,6 +254,6 @@ export function checkoutPair( }, // Use this to keep the mutation pipeline active. // It won't ever emit any events, but it will prevent the eventsource connection from completing for as long as it is subscribed to - _keepalive: commits$.pipe(mergeMap(() => EMPTY)), + _keepalive: merge(listenerEvents$, commits$).pipe(mergeMap(() => EMPTY)), } }