From fc4e945a7ede33f560e0036fb6b0e57c3dd8ca58 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 19 Aug 2021 19:38:32 +0530 Subject: [PATCH] refactor: reactive stream of save context --- newstore/RESTSession.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/newstore/RESTSession.ts b/newstore/RESTSession.ts index 80a7b5122..3377bbb05 100644 --- a/newstore/RESTSession.ts +++ b/newstore/RESTSession.ts @@ -608,6 +608,11 @@ export function deleteAllFormDataEntries() { }) } +export const restSaveContext$ = restSessionStore.subject$.pipe( + pluck("saveContext"), + distinctUntilChanged() +) + export const restRequest$ = restSessionStore.subject$.pipe( pluck("request"), distinctUntilChanged()