Skip to content

Commit babdfe4

Browse files
bjoergebinoy14
authored andcommittedDec 20, 2024··
fix(core): merge in listenerEvents in _keepalive stream (#8122)
1 parent cd989d1 commit babdfe4

File tree

1 file changed

+1
-1
lines changed
  • packages/sanity/src/core/store/_legacy/document/document-pair

1 file changed

+1
-1
lines changed
 

‎packages/sanity/src/core/store/_legacy/document/document-pair/checkoutPair.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,6 @@ export function checkoutPair(
254254
},
255255
// Use this to keep the mutation pipeline active.
256256
// It won't ever emit any events, but it will prevent the eventsource connection from completing for as long as it is subscribed to
257-
_keepalive: commits$.pipe(mergeMap(() => EMPTY)),
257+
_keepalive: merge(listenerEvents$, commits$).pipe(mergeMap(() => EMPTY)),
258258
}
259259
}

0 commit comments

Comments
 (0)
Please sign in to comment.