react redux wait for props
snippet in javascript

react redux wait for props

user3074

componentWillReceiveProps(nextProps){
 if(this.props.auth.token !== nextProps.auth.token){
   //make a api call here
 }
}