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(resource: UrlResource): Boolean

Returns true if the route can handle a given path.

Returns true if the route can handle a given path.

Attributes

Definition Classes
override def preTitle(resource: UrlResource): String

Title displayed while loading.

Title displayed while loading.

Attributes

Definition Classes
override def target(resource: UrlResource)(using AssemblerContext): Effect[RoutingTarget]

Execute the route, can load lazy.

Execute the route, can load lazy.

Attributes

Definition Classes

Abstract fields