kitze / mobx-router

A simple router for MobX + React apps
509 stars 66 forks source link

Allow router.goTo to find route based on string #29

Open jayalfredprufrock opened 7 years ago

jayalfredprufrock commented 7 years ago

Having to pass the actual Route component instance to router.goTo is really inconvenient. What if the router views object took an optional name (defaulting to the views object key name) for each route that could be used in router.goTo instead of passing the Route instance explicitly? This would also be handy when you need to pass a specific route via a query string.

criloz commented 7 years ago

also for avoid, circular dependencies