\'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
You could use this little trick. Push a new path in the history like history.push('/temp') and immediately call the history.goBack()
Here the example:
Create an history and pass it to the router:
import { createBrowserHistory } from "history";
export const appHistory = createBrowserHistory();
then somewhere in your app, change the history:
appHistory.push('/temp');
appHistory.goBack();
In this way the route will "remain" the same, and will be refreshed.