Added settings observable
This commit is contained in:
parent
4ce7f0b487
commit
02d3b45efc
1 changed files with 5 additions and 0 deletions
|
|
@ -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]> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue