Repository navigation
Realease v2.0.9
API:
- createStore: (initData: T) Creates a new isolated store instance.
- addListener: (key: K) => T[K] Attach listener to a specific store key.
- removeListener: (key: K) => T[K] Attach listener to a specific store key.
- get: (key: K) => T[K] Reads the value by key.
- set: (key: K, value: T[K], isCallListener?: boolean = true) => void Updates a value by key and calls listeners optional.