object RoutingRule
- Companion:
- class
Type members
Classlikes
- Value parameters:
- action
Attempt to determine the action when a route resolves to some page.
- parse
Attempt to parse a given path.
- path
Attempt to determine the path for some page.
final case class AutoCorrect[Page, Props](underlying: RoutingRule[Page, Props], redirectVia: SetRouteVia) extends RoutingRule[Page, Props]
final case class Conditional[Page, Props](condition: Function0[Boolean], underlying: RoutingRule[Page, Props], otherwise: Page => Option[Action[Page, Props]]) extends RoutingRule[Page, Props]
final case class ConditionalP[Page, Props](condition: Page => Function0[Boolean], underlying: RoutingRule[Page, Props], otherwise: Page => Option[Action[Page, Props]]) extends RoutingRule[Page, Props]
final case class Or[Page, Props](lhs: RoutingRule[Page, Props], rhs: RoutingRule[Page, Props]) extends RoutingRule[Page, Props]
final case class WithFallbackF[F[_], Page, Props](rule: RoutingRule[Page, Props], fallbackPath: Page => Path, fallbackAction: (Path, Page) => ActionF[F, Page, Props])(implicit F: Sync[F])
Exhaustive routing rules. For all Page
s there are Path
s and Action
s.
Exhaustive routing rules. For all Page
s there are Path
s and Action
s.