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
Supporting breadcrumb will be a nice feature.
From @japgolly words:
It'll be a bit tough because the router doesn't have good support for dynamically identifying which route you're on - it was something I didn't think of when I wrote it - but I think that's the only piece of the puzzle you need to write breadcrumb nicely.
The text was updated successfully, but these errors were encountered:
New router that:
* uses an ADT to represent pages
* allows rules to be composed and then modified collectively
* clarifies the difference between Router component and controller
* accomodates stateful logic
Addresses #96, #103, #102, #94
New router that:
* uses an ADT to represent pages
* allows rules to be composed and then modified collectively
* clarifies the difference between Router component and controller
* accomodates stateful logic
Addresses #96, #103, #102, #94
There's a new Router coming in 0.9 that fixes this.
Unlike the v1 Router which uses vals in a RoutingRules object, the new one expects that you create a tiny model for your pages (solving this). For example, if there is a page showing a photo, the model can be case class ViewPhotoPage(photoId: Long) and when the page is being rendered, you will get a ViewPhotoPage instance which will make breadcrumbs very easy - it will just be pattern matching on your pages.
Supporting breadcrumb will be a nice feature.
From @japgolly words:
The text was updated successfully, but these errors were encountered: