You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using react-router-bootstrap, and trying to make a generic pagination component, that can generate pagination links without knowing the current path. When clicking this link, I want the URL query to be changed to "?page=2", without changing the rest of the URL:
This generates the correct links, but the current page link isn't tagged as 'active'. It turns out that router.isActive doesn't work as I expected when the first argument is the pathname, and the query is given as a third argument. More precisely, it doesn't handle arguments in the same way as router.makeHref.
Given a route for the path /categories/:category, and the current URL is /categories/foo, I expected all these to be true:
Most of the development effort over here is on react-router 1.0.0. If you bump your react-router-bootstrap to version 0.19.0 or higher, you'll be updated to react-router 1.0.0-rc1. We've proceeded a little farther to rc3, so if @taion has some time to update it to that version as well, this should mostly go away. There are a lot of API changes, but you shouldn't run into this issue.
Right, the v0.18.x releases of React-Router-Bootstrap are unsupported. v0.19.0 and v0.19.1 both support almost everything in RC3 except for the new hash prop.
I think this will largely be superseded by #2186. For comparison, IIRC, angular-ui-router lets you build links that only override e.g. query parameters without otherwise changing the route you're on.
I'm going to close this because there's nothing actionable here. Development has moved to the 1.x line rather than the 0.13.x line, so there's no way to address this.
Using react-router-bootstrap, and trying to make a generic pagination component, that can generate pagination links without knowing the current path. When clicking this link, I want the URL query to be changed to "?page=2", without changing the rest of the URL:
This generates the correct links, but the current page link isn't tagged as 'active'. It turns out that router.isActive doesn't work as I expected when the first argument is the pathname, and the query is given as a third argument. More precisely, it doesn't handle arguments in the same way as router.makeHref.
Given a route for the path
/categories/:category
, and the current URL is/categories/foo
, I expected all these to be true:However:
Since the name of the current route isn't easily available, this makes it hard to come up with the correct
<Link>
params.The text was updated successfully, but these errors were encountered: