Slice OStore Observables Bound to OStore Keys

Image by Adina Voicu from Pixabay

Scenario

export const OSK:OStoreStart = {
IS_AUTHENTICATED: { value: false, key: '' }
}
os: OStore = new OStore(OSK)

Approach

import { OStoreStart, OStoreKeyValueReset, OStore } from "@fireflysemantics/slice";export const OSK:OStoreStart = {
IS_AUTHENTICATED: { value: false, key: '' }
}
export interface OSKI {
IS_AUTHENTICATED: OStoreKeyValueReset
}
export const os: OStore<OSKI> = new OStore<OSKI>(OSK)export const s: OSKI = os.S

Demo

Founder of Firefly Semantics Corporation