teafuljs / teaful

🍵 Tiny, easy and powerful React state management

Home Page:https://npm.im/teaful

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about types to use

Ofer-Gal opened this issue · comments

Can this be used with complex objects? not just strings and numbers?
Arrays of objects?

Yes sure, you can try it here https://codesandbox.io/s/fragmented-store-example-4p5dv?file=/src/App.js

However, at the moment, fragmentation is only done at the first level.

Now in fragstore 0.4 (fragstore is the new name replacing fragmented-store) the fragmentation is in all levels ☺️