Closed squidsoup closed 5 years ago
With:
<ModalRoute component={Bar} exact path="/bar" parentPath="/foo" />
when I log match from the Bar component, it looks like:
match
Bar
{ isExact: false params: {} path: "/" url: "/" }
Rerendering the ModalRoute with the same props, but as a <Route> I get:
<Route>
{ isExact: true params: {} path: "/bar" url: "/bar" }
react@16.8.6 connected-react-router@6.4.0 (Not using BrowserRouter) react-router-dom@5.0.1
Apologies, looks like this was a webpack configuration issue.
With:
<ModalRoute component={Bar} exact path="/bar" parentPath="/foo" />
when I log
match
from theBar
component, it looks like:Rerendering the ModalRoute with the same props, but as a
<Route>
I get:versions
react@16.8.6 connected-react-router@6.4.0 (Not using BrowserRouter) react-router-dom@5.0.1