One big store or bunch of small stores #745
-
I am making React Native app and I want to dodge the context shenanigans and use this library instead. I am wondering if I should create bunch of small stores or one big one. Would there be any differences? If I understand "proxying" correctly, then there should be no difference if I have two stores with array of 10k items, one for news, one for notifications, and useSnapshot them both or just one store with total of 20k items. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Should mostly be the same. Does this help? valtio/docs/how-tos/how-to-split-and-compose-states.mdx Lines 7 to 39 in 5d0eca7 |
Beta Was this translation helpful? Give feedback.
Should mostly be the same.
Does this help?
valtio/docs/how-tos/how-to-split-and-compose-states.mdx
Lines 7 to 39 in 5d0eca7