Alexander Gundermann
Alexander Gundermann
pathname is simply path without query. You can get the names of the matched routes from `state.routes` or `this.getRoutes()`: ``` js router.run(function(Handler, state){ state.routes[0].name; // name of topmost matched route...
What do you want to with the route name exactly? Are you using the same handler for different routes? > There are certain times I want to check that I'm...
I still don't quite understand. Sounds like `this.isActive("user")` is what you're looking for, isn't it? The equivalent within run callback would be `state.routes.some((route) => route.name === 'user')` . > There...
Perhaps branch via `process.env` in some way? Webpack and browserify users could remove dead code, and library authors could offer pre-bundled versions for each target (`require('library/android')`). Default could be web,...
> One main, distinct, challenge of mobile routing and history management is that there isn't a single history stack, but rather multiple stacks that are parallel and/or hierarchical. Following something...
Thanks for clearing that up. For modals, and android "up navigation" in general, I think more sophisticated navigation methods like `goBackTo(..)` would be enough though.
Looks like someone was too lazy to come up with a real example :smile: It just tells you that with `Navigation` mixin you get to use this three methods on...
The string API is gone, you only have the two `scrollBehavior`s for `Router.create` and the option to add `ignoreScrollBehavior` to your ``s. I think your problem is that the browser...
Unless you don't nest routes, your routes are always matched to multiple handlers; that's why `state.routes` is an array and you need to filter through it if you want to...
I also get this by just running the examples. Not sure if this react change is intentional or not. As far as I can tell the problematic commit is [this](https://github.com/facebook/react/pull/2375/files)...