bradstiff / react-app-location

A package to avoid repetition with Routes and URLs, and reduce boilerplate with location param parsing in React Apps
MIT License
97 stars 8 forks source link

Location not working in Redirect and history.push #8

Open ptrobert opened 5 years ago

ptrobert commented 5 years ago

Hi

Tried to use Location in Redirect like this

<Redirect to {xxxLocation.tourl()} />

its not working, does Location supports Redirection,

and also history.push is not working, syntax

history.push(xxxLocation.toUrl({id:id}));