LazyRoute

kreuzberg.extras.Route.LazyRoute
case class LazyRoute[S](pathCodec: PathCodec[S], eagerTitle: S => String, routingTarget: S => AssemblerContext ?=> Effect[RoutingTarget]) extends Route

A Lazy route which fetches data.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Route
class Object
trait Matchable
class Any
Show all

Members list

Value members

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)(using AssemblerContext): 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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product