Contramap

final case class Contramap[F[_], A, B](u: RouterCtlF[F, A], f: B => A)(implicit x: Sync[F]) extends RouterCtlF[F, B]
trait Serializable
trait Product
trait Equals
class RouterCtlF[F, B]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def baseUrl: BaseUrl
Definition Classes
override def byPath: RouterCtlF[F, Path]
Definition Classes
override def pathFor(b: B): Path
Definition Classes
override def refresh: F[Unit]
Definition Classes
override def set(b: B, v: SetRouteVia): F[Unit]
Definition Classes

Inherited methods

final def contramap[B](f: B => B): RouterCtlF[F, B]
Inherited from:
RouterCtlF
final def narrow[B <: B]: RouterCtlF[F, B]
Inherited from:
RouterCtlF
final def onLinkClick(route: B): ReactMouseEvent => Option[F[Unit]]
Inherited from:
RouterCtlF
final def onSet(f: F[Unit] => F[Unit]): RouterCtlF[F, B]

Change the behaviour of set and all derivatives.

Change the behaviour of set and all derivatives.

For example, this can be used to set a component's state immediately before setting a new route.

Inherited from:
RouterCtlF
final def onSet(f: (B, F[Unit]) => F[Unit]): RouterCtlF[F, B]

Change the behaviour of set and all derivatives.

Change the behaviour of set and all derivatives.

For example, this can be used to set a component's state immediately before setting a new route.

Inherited from:
RouterCtlF
final def onSetRun(f: F[Unit]): RouterCtlF[F, B]

Return a new version of this that executes the specified callback after setting new routes.

Return a new version of this that executes the specified callback after setting new routes.

Inherited from:
RouterCtlF
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
final def set(route: B): F[Unit]
Inherited from:
RouterCtlF
final def setEH(route: B): ReactEvent => F[Unit]
Inherited from:
RouterCtlF
final def setOnClick(route: B): TagMod
Inherited from:
RouterCtlF
final def setOnLinkClick(route: B): TagMod
Inherited from:
RouterCtlF
final def urlFor(route: B): AbsUrl
Inherited from:
RouterCtlF
def withEffect[G[_]](implicit G: Sync[G]): RouterCtlF[G, B]
Inherited from:
RouterCtlF

Deprecated and Inherited methods

@deprecated("Use .onSetRun(callback).setOnClick(route)", "forever")
final def setOnClick(route: B, callback: F[Unit]): TagMod
Deprecated
Inherited from:
RouterCtlF
@deprecated("Use .onSetRun(callback).setOnLinkClick(route)", "forever")
final def setOnLinkClick(route: B, callback: F[Unit]): TagMod
Deprecated
Inherited from:
RouterCtlF