I use withRouter to get the location prop. When the component is updated because of a new route, I check if the value changed:
確定! 回上一頁