Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- componentWillReceiveProps(newProps: any){
- let keyword = querystring.parse(this.props.location.search).q;
- let newKeyword = querystring.parse(newProps.location.search).q;
- if(keyword != newKeyword){
- //trigger redux action
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement