Closed iroy2000 closed 8 years ago
I have a Route
<Route path="/school/:schoolAlias" component={SchoolDetailHandler} />
And in that handler, I have that
static needs = [ () => { return schoolActions.getSchoolByAlias(this.props.params.schoolAlias) } ]
Note that my action depends on the "router params --> schoolAlias"
But it throws me error on props undefined. How do you get the schoolAlias ?
props
schoolAlias
LOL, resloved ... I <3 your tutorial :)
I have a Route
<Route path="/school/:schoolAlias" component={SchoolDetailHandler} />
And in that handler, I have that
Note that my action depends on the "router params --> schoolAlias"
But it throws me error on
props
undefined. How do you get theschoolAlias
?