AltEffect

final case class AltEffect[F[_], G[_], A](u: RouterCtlF[F, A])(implicit G: Sync[G]) extends RouterCtlF[G, A]
trait Serializable
trait Product
trait Equals
class RouterCtlF[G, A]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def baseUrl: BaseUrl
Definition Classes
override def byPath: RouterCtlF[G, Path]
Definition Classes
override def pathFor(a: A): Path
Definition Classes
override def refresh: G[Unit]
Definition Classes
override def set(a: A, v: SetRouteVia): G[Unit]
Definition Classes
override def withEffect[H[_]](implicit H: Sync[H]): RouterCtlF[H, A]
Definition Classes

Inherited methods

final def contramap[B](f: B => A): RouterCtlF[G, B]
Inherited from:
RouterCtlF
final def narrow[B <: A]: RouterCtlF[G, B]
Inherited from:
RouterCtlF
final def onLinkClick(route: A): ReactMouseEvent => Option[G[Unit]]
Inherited from:
RouterCtlF
final def onSet(f: G[Unit] => G[Unit]): RouterCtlF[G, 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, G[Unit]) => G[Unit]): RouterCtlF[G, 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: G[Unit]): RouterCtlF[G, 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): G[Unit]
Inherited from:
RouterCtlF
final def setEH(route: A): ReactEvent => G[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

Deprecated and Inherited methods

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