Skip to content

Realease v2.0.9

Choose a tag to compare

@denisso denisso released this 16 Jan 09:25
· 33 commits to main since this release

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.