I declare my route like this:
<Row>
<Route exact path="/services" render={() => <RoutesList {...this.props} />} />
<Route exact path="/services/new" render={() => <AddRoute {...this.props} />} />
<Route exact path="/services/edit/:id" render={() => <AddRoute />} />
</Row>
Then in some part of my code i create a link like this :
<Link to={`/services/edit/${record.id}`}>Edit</Link>
in <Route> I can see the id in math.params but in <AddRoute> I cant access this the url parameter even when I pass the {...this.props} for example <AddRoute {...this.props}> I cant see the url parameter and match is empty.
my packages is :
"react-router": "^4.1.1",
"react-router-dom": "^4.1.1",
"react-router-redux": "^5.0.0-alpha.6",