RouterLogicF

final class RouterLogicF[F[_], Page, Props](val baseUrl: BaseUrl, cfg: RouterWithPropsConfigF[F, Page, Props]) extends BroadcasterF[F, Unit]

Performs all routing logic.

Type parameters:
Page

Routing rules context. Prevents different routing rule sets being mixed up.

Value parameters:
baseUrl

The prefix of all routes in a set.

trait BroadcasterF[F, Unit]
trait ListenableF[F, Unit]
class Object
trait Matchable
class Any

Type members

Types

type Action = ActionF[F, Page, Props]
type Redirect = Redirect[Page]
type Renderer = RendererF[F, Page, Props]
type Resolution = ResolutionWithProps[Page, Props]

Value members

Concrete methods

def interpret[A](r: RouteCmd[A]): F[A]
def parseUrl(url: AbsUrl): Option[Path]
def render(r: Resolution, props: Props): VdomElement
def resolveAction(page: Page, action: Action): F[RouteCmd[Resolution]]
def resolveActionForPage(path: Path, page: Page): F[RouteCmd[Resolution]]
def setPath(path: Path, via: SetRouteVia): RouteCmd[Unit]
def withEffect[G[_]](implicit G: Sync[G]): RouterLogicF[G, Page, Props]
def wrongBase(wrongUrl: AbsUrl): F[RouteCmd[Resolution]]

Inherited methods

protected def broadcast(a: Unit): F[Unit]
Inherited from:
BroadcasterF
final protected def listenerIterator: Iterator[Unit => F[Unit]]
Inherited from:
BroadcasterF
override def register(listener: Unit => F[Unit]): F[F[Unit]]
Definition Classes
Inherited from:
BroadcasterF
final def registerF[G[_]](listener: Unit => G[Unit])(implicit G: Dispatch[G]): F[F[Unit]]
Inherited from:
ListenableF

Concrete fields

val ctl: RouterCtlF[F, Page]