React-router: How to reload current page

Created on 17 Jun 2016  路  1Comment  路  Source: ReactTraining/react-router

Scene

I use hashHistory to create router, and hope to implement the function like window.location.reload() .
I try push() and go(0) in router(withRouter),but can't meet my demand, the component that current url maps don't re-render.
How can I solve this problom?

Version

2.4.1

>All comments

just use window.location.href = '/xx'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Waquo picture Waquo  路  3Comments

stnwk picture stnwk  路  3Comments

andrewpillar picture andrewpillar  路  3Comments

sarbbottam picture sarbbottam  路  3Comments

maier-stefan picture maier-stefan  路  3Comments