2 ms·
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 createSt
by nwienert 6y ago
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.