Open williamtetlow opened 7 years ago
Steps to reproduce.
FlowRouter.route('/example-route/:routeParam', { name: 'exampleRoute', action() { // Some action... }, });
FlowRouter.go('exampleRoute', { routeParam: 0 });
The value 0 for routeParam is ignored.
Guessing a generic is null/undefined check against the param will be causing this (i.e. if (routeParam) { do something })
if (routeParam) { do something }
Workaround is set to parameter as { routeParam: '0' }. However, this is counter intuitive when all other integers work as route parameters.
{ routeParam: '0' }
I can submit PR with fix if this is a feature you wish to include.
Just letting you know a fix for this would be appreciated as it it still an existing issue.
Steps to reproduce.
FlowRouter.go('exampleRoute', { routeParam: 0 });
The value 0 for routeParam is ignored.
Guessing a generic is null/undefined check against the param will be causing this (i.e.
if (routeParam) { do something }
)Workaround is set to parameter as
{ routeParam: '0' }
. However, this is counter intuitive when all other integers work as route parameters.I can submit PR with fix if this is a feature you wish to include.