Question: I can see in this file (<https://github.com/ReactTraining/react-router/blob/v0.13.3/modules/createRouter.js>) that there is a refresh function but I have no idea how to call it. I'm fairly new to react-router, I've only used it to move between some pages a couple times using hashHistory. 

Right now I am trying to use it so that when an install fails, the user is given the option to 'retry' which I plan to execute by refreshing the page where the install happens (the page the user would be currently on). Any help would be appreciated.

This is a node app that runs on electron, not a web app.

Answer: 
I guess that you're using react-router. 
I'll copy my answer from another post.
So you have few possibilities to do that, currently my favorite way to do that is using anonymous function in component prop: 

```
<Switch>
  <Route exact path="/" component={()=><HomeContainer/>} />
  <Route exact path="/file/:itemPath/:refHash" component={()=><File/>} />
  <Route exact path="/:folderName" component ={()=><Folder/>}/>
</Switch>

```

Or if you want to refresh with current url params, you'll need extra route (reload), and play a little with router stack:

```
reload = ()=>{
 const current = props.location.pathname;
 this.props.history.replace(`/reload`);
    setTimeout(() => {
      this.props.history.replace(current);
    });
}

<Switch>
  <Route path="/reload" component={null} key="reload" />
  <Route exact path="/" component={HomeContainer} />
  <Route exact path="/file/:itemPath/:refHash" component={File} />
  <Route exact path="/:folderName" component ={Folder}/>
</Switch>

<div onClick={this.reload}>Reload</div>

```
I know that this is old, but I found a simple solution according to the documentation of react-router.

Just **put that attribute on your Router**, and whenever you are on a new Path **it will force** the page **to reload itself**.

```
<Router forceRefresh={true}>

```

> 
> Source:
> <https://reactrouter.com/web/api/BrowserRouter/forcerefresh-bool>
> 
> 
>