Answers for "react redux wait for props"

1

react redux wait for props

componentWillReceiveProps(nextProps){
 if(this.props.auth.token !== nextProps.auth.token){
   //make a api call here
 }
}
Posted by: Guest on December-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language