Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

refactor: reactive stream of save context

Andrew Bastinfc4e945a7ede
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()