quarkx
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

quarkX

Simple usage:

const store = createStore('test')
const unbind = store.listen('some', (path, value) => {
  expect(value).toBe(store.get(path))
})
store.set('some.path', 1)
store.set('some.path.deep.path', 2)

Middleware

const testingStore = createStore('test')
const unuse = use([testingStore], ({ commit, storeName, path }) => {
  console.log(storeName, path)
  // you can log or do something and than commit for fire reaction
  commit(storeName, path)
})

Readme

Keywords

none

Package Sidebar

Install

npm i quarkx

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

15.6 kB

Total Files

22

Last publish

Collaborators

  • eddort