react-easy-state icon indicating copy to clipboard operation
react-easy-state copied to clipboard

Nested store function

Open joelpanor opened this issue 3 years ago • 0 comments

Can we call store function in another store ? See the example below :

StoreA = store({
  value : 1,
  incrementVal(){
    StoreA.value++
  }
})

StoreB = store({
  test(){
    StoreA.incrementVal()
  }
})

I want this feature please

joelpanor avatar Dec 07 '21 18:12 joelpanor