DEV Community

Discussion on: React state with a fragmented store

Collapse
 
garystorey profile image
Gary Storey

I like the simplicity of this approach. Nice!

Any specific reason you went with useUnfragmentedStore instead of useStore?
That's a long name and I'm a lazy dev. :-)

Collapse
 
aralroca profile image
Aral Roca

In reallity I'm with you, good catch! Sounds much better useStore! Feel free to PR or I'm going to change It tomorrow β˜ΊοΈπŸ‘

Collapse
 
aralroca profile image
Aral Roca • Edited

Changed! Thanks

Collapse
 
aralroca profile image
Aral Roca

I think one of the reasons was to avoid collisions with some variable named store