I was reading the following two resources about summation identities:
CM is calling the Distributive Law as follows:
\sum_{k \in K} c a_{k}=c \sum_{k \in K} a_
but the book on the algebra of summations calls it "The Second Constant Rule"
\sum_{i=1}^{N} a x_{i}=a \sum_{i=1}^{N} x_
CM is calling the Associative Law as follows:
\sum_{k \in K}\left(a_{k}+b_{k}\right)=\sum_{k \in K} a_{k}+\sum_{k \in K} b_
but the other resource calls it "The Distributive Rule of Summation Algebra"
\sum_{i=1}^{N}\left(x_{i}+y_{i}\right)=\sum_{i=1}^{N} x_{i}+\sum_{i=1}^{N} y_
I can see how "The Second Constant Rule" is
RTK usequery hook should return a singly nested object. Any more nesting than one layer, or having values besides simple primitives in an object, will cause unnecessary rerenders because react can't diff them. Reading from store state should happen further down the tree. Components should be responsible for retrieving their own values from the store.