score:1

Accepted answer

you need to check query in componentwillreceiveprops callback. something like this:

componentwillreceiveprops(nextprops) {
  if (!_.isequal(this.props.location.query, nextprops.location.query) {
     this.fetchdatafromserver(nextprops.location.query);
  }
}

Related Query

More Query from same tag