Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agreeing how? By using valtio you avoid needing to know most of that list, by using redux you.. don't.

Also, you can easily wrap valtio with:

  const createStore = (name, store) => {
    if (window.stores[name]) throw 'store already exists'
    window.stores = {
       ...window.stores
       [name]: valtio(store)
    }
  }
And boom, you can see every store just like redux.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: