Best practice for root-level state organization in slices #1524
-
I had initially set up my slices to look like this:
I recently did a huge refactor where I removed the
I was thinking it would be a bad practice to nest all my main properties under a So I suppose my question is, does it make a difference if I keep the majority of my state nested under a Thanks for any guidance. Hopefully this makes sense. I can try to provide a more concrete example if not. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your actual state structure is entirely up to you. That said, I've never seen a |
Beta Was this translation helpful? Give feedback.
Your actual state structure is entirely up to you. That said, I've never seen a
data/internalData
sub-naming pattern used before.