Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Added settings observable
Andrew Bastin02d3b45efc1c
diff --git a/newstore/settings.ts b/newstore/settings.tsindex e51a66598..af99ce721 100644--- a/newstore/settings.ts+++ b/newstore/settings.ts@@ -70,6 +70,11 @@ const dispatchers = defineDispatchers({export const settingsStore = new DispatchingStore(defaultSettings, dispatchers)+/**+ * An observable value to make avail all the state information at once+ */+export const settings$ = settingsStore.subject$.asObservable()+export function getSettingSubject<K extends keyof SettingsType>(settingKey: K): Observable<SettingsType[K]> {