From 498b7e41f2612106caa31d7e5c657883d63aa764 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)), } }