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
Selectors should be used to abstract "complex" state queries. "Simple" selectors, selectors that simply pull a property from state without any logic, should be inlined into the mapStateToProps function. This is the case for new components (e.g. #4691) and we will need to adjust recently refactored components to fit this style.
Going forward we can (separately) introduce tooling (a custom lint?) to ensure that no logic is put inside mapStateToProps.
The text was updated successfully, but these errors were encountered:
As per a discussion with @alextsg and @danjm:
Selectors should be used to abstract "complex" state queries. "Simple" selectors, selectors that simply pull a property from state without any logic, should be inlined into the
mapStateToProps
function. This is the case for new components (e.g. #4691) and we will need to adjust recently refactored components to fit this style.Going forward we can (separately) introduce tooling (a custom lint?) to ensure that no logic is put inside
mapStateToProps
.The text was updated successfully, but these errors were encountered: