0.0.10 • Published 3 years ago

@quarkly/project-store v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Work in progress

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)
})
0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago