We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
router.isActive
router.isActive(/^\/hello/) would be great to deal with the problem like #3277 It makes the method much flexible and doesn't seem to destructive.
router.isActive(/^\/hello/)
I know #3277 is due to wrong structure of routes. But, it is quite annoying to take care about it when prototyping app.
I, therefore, prefer to use this.props.location.pathname.match(/^\hello/) for my new app.
this.props.location.pathname.match(/^\hello/)
The text was updated successfully, but these errors were encountered:
You can use whatever semantics you want in user space – checking the pathname explicitly like that is fine, if it's what your application requires.
Sorry, something went wrong.
No branches or pull requests
router.isActive(/^\/hello/)
would be great to deal with the problem like #3277It makes the method much flexible and doesn't seem to destructive.
I know #3277 is due to wrong structure of routes.
But, it is quite annoying to take care about it when prototyping app.
The text was updated successfully, but these errors were encountered: