Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react redux wait for props

componentWillReceiveProps(nextProps){
 if(this.props.auth.token !== nextProps.auth.token){
   //make a api call here
 }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #redux #wait #props
ADD COMMENT
Topic
Name
1+3 =