You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,9 @@ _Do_: Name things for what they are or do, not if they are connected to state. E
60
60
61
61
###What kind of state to get
62
62
63
-
_Don’t_: Fetch objects and pass the object or their fields around to other components through component properties.
63
+
_Don’t_: Fetch objects and pass the object or their fields around to other components through component properties. Usually referred to as “Prop Drilling”.
64
64
65
-
_Do_:[Fetch primitive values that will be used for rendering or logic, like strings, bools, numbers, etc](https://redux.js.org/style-guide/style-guide#call-useselector-multiple-times-in-function-components). If rendering lists of things,fetch the hashmaporarray to render the list, andpass the child objectsID to the next component so it knows what data to fetch.
65
+
_Do_:[Fetch primitive values that will be used for rendering or logic, like strings, bools, numbers, etc](https://redux.js.org/style-guide/style-guide#call-useselector-multiple-times-in-function-components). If rendering lists of things,create a hashmapof thearray, then render the list but onlypass the child objectsan ID, which will allow a selector access to the sub property directly.
66
66
67
67
##Understand how immutable objects impact performance