ModCB

final case class ModCB[F[_], A](u: RouterCtlF[F, A], f: (A, F[Unit]) => F[Unit])(implicit x: Sync[F]) extends RouterCtlF[F, A]
trait Serializable
trait Product
trait Equals
class RouterCtlF[F, A]
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(a: A): Path
Definition Classes
override def refresh: F[Unit]
Definition Classes
override def set(a: A, v: SetRouteVia): F[Unit]
Definition Classes

Inherited methods

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

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: (A, F[Unit]) => F[Unit]): RouterCtlF[F, A]

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, A]

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: A): F[Unit]
Inherited from:
RouterCtlF
final def setEH(route: A): ReactEvent => F[Unit]
Inherited from:
RouterCtlF
final def setOnClick(route: A): TagMod
Inherited from:
RouterCtlF
final def setOnLinkClick(route: A): TagMod
Inherited from:
RouterCtlF
final def urlFor(route: A): AbsUrl
Inherited from:
RouterCtlF
def withEffect[G[_]](implicit G: Sync[G]): RouterCtlF[G, A]
Inherited from:
RouterCtlF

Deprecated and Inherited methods

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