AltEffect

japgolly.scalajs.react.extra.router.RouterCtlF$.AltEffect
final case class AltEffect[F[_], G[_], A](u: RouterCtlF[F, A])(implicit G: Sync[G]) extends RouterCtlF[G, A]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class RouterCtlF[G, A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def baseUrl: BaseUrl

Attributes

Definition Classes
override def byPath: RouterCtlF[G, Path]

Attributes

Definition Classes
override def pathFor(a: A): Path

Attributes

Definition Classes
override def refresh: G[Unit]

Attributes

Definition Classes
override def set(a: A, v: SetRouteVia): G[Unit]

Attributes

Definition Classes
override def withEffect[H[_]](implicit H: Sync[H]): RouterCtlF[H, A]

Attributes

Definition Classes

Inherited methods

final def contramap[B](f: B => A): RouterCtlF[F, B]

Attributes

Inherited from:
RouterCtlF
final def narrow[B <: A]: RouterCtlF[F, B]

Attributes

Inherited from:
RouterCtlF
final def onLinkClick(route: A): ReactMouseEvent => Option[F[Unit]]

Attributes

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

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.

Attributes

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

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.

Attributes

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

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.

Attributes

Inherited from:
RouterCtlF
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def set(route: A): F[Unit]

Attributes

Inherited from:
RouterCtlF
final def setEH(route: A): ReactEvent => F[Unit]

Attributes

Inherited from:
RouterCtlF
final def setOnClick(route: A): TagMod

Attributes

Inherited from:
RouterCtlF
final def setOnLinkClick(route: A): TagMod

Attributes

Inherited from:
RouterCtlF
final def urlFor(route: A): AbsUrl

Attributes

Inherited from:
RouterCtlF

Deprecated and Inherited methods

final def setOnClick(route: A, callback: G[Unit]): TagMod

Attributes

Deprecated
true
Inherited from:
RouterCtlF
final def setOnLinkClick(route: A, callback: G[Unit]): TagMod

Attributes

Deprecated
true
Inherited from:
RouterCtlF