\'react-router-dom\' has refresh function here, but I don\'t know how to call this method, also their well formatted document doesn\'t bother to explain this.
windo
This is how I achieved it :
if (currentUrl == newUrl) { props.history.push("/temp"); props.history.goBack(); }