react-firebase-starter icon indicating copy to clipboard operation
react-firebase-starter copied to clipboard

Impossible to acces parameters from the URL

Open Space69 opened this issue 8 years ago • 2 comments

Hello everyone,

I have set up the latest version of RSB with th new route.js but it is still impossible to access some value from the url such as:

{ "path": "/item/:itemId", "page": "./process" }

Could you explain me how to achieve this utter simple use?

Thanks in advance

Space69 avatar Feb 13 '17 16:02 Space69

Is the path parameter not stored in this.props.params.itemId?

gordon-to avatar Feb 15 '17 22:02 gordon-to

@Space69 Something like below:

use this.props.route.params.itemId

Page.propTypes = {
  route: PropTypes.object,
};

twxia avatar Mar 21 '17 01:03 twxia