Browse Source

refactor: reactive stream of save context

Andrew Bastin 3 years ago
parent
commit
fc4e945a7e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      newstore/RESTSession.ts

+ 5 - 0
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()