mapStateToProps
getResources
and getStatus
within mapStateToProps
. That way, you can access this information from any of the component's lifecycle methods, without needing to compute them within each method.componentDidUpdate
. This might look like: