EagerRoute

kreuzberg.extras.Route$.EagerRoute
trait EagerRoute extends Route

A Route which directly translates a path into a component

Attributes

Graph
Supertypes
trait Route
class Object
trait Matchable
class Any
Known subtypes
class DependentRoute[S]
class SimpleRoute

Members list

Type members

Types

type State

Value members

Abstract methods

def component(state: State): Component

Assembles a component for a given path.

Assembles a component for a given path.

Attributes

def title(state: State): String

Returns a title for that path.

Returns a title for that path.

Attributes

Concrete methods

override def canHandle(path: String): Boolean

Returns true if the route can handle a given path.

Returns true if the route can handle a given path.

Attributes

Definition Classes
def eagerTarget(path: String): RoutingTarget
override def preTitle(path: String): String

Title displayed while loading.

Title displayed while loading.

Attributes

Definition Classes
override def target(path: String)(using AssemblerContext): Effect[RoutingTarget]

Execute the route, can load lazy.

Execute the route, can load lazy.

Attributes

Definition Classes

Abstract fields