What if every React component received the entire state object, and just use pipe/mapProps to get whats needed?
Or do you often pass values derived in a parent component down into a child?
And if so, what if there was a query api for defining the derived state values?
So if two components needs the same computed value of some property in the state object, they can use the same query and it can be optimized/cached there.
I’ve been getting kinda annoyed during development, where I’m like oh.. this parent component computes a value, and has all these children.. and later on I decide one of those children has a child, that needs that same computed value. Then I have to go back up the component tree and make sure I pass that value down.