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: 
This solution won't cause the undesired full page reload but requires you to make this modification to each page that needs refreshing:

```
export const Page = () => {
   const location = useLocation();
   return <PageImpl key={location.key} />
}

```

So the idea is: create a wrapper around your page and make React re-create the actual page every time the location key changes.

Now it's enough to call `history.push(/this-page-route)` again and the page refreshes.
update webpacker.yml

```
  devServer: {
    historyApiFallback: true,
  }

```