SetRouteVia

japgolly.scalajs.react.extra.router.SetRouteVia$
See theSetRouteVia companion trait
object SetRouteVia

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object HistoryPush extends SetRouteVia

The current URL will be recorded in history. User can hit ''Back'' button to reach it.

The current URL will be recorded in history. User can hit ''Back'' button to reach it.

Implemented via pushState in the History API.

Attributes

See also
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait SetRouteVia
class Object
trait Matchable
class Any
Show all
Self type
case object HistoryReplace extends SetRouteVia

The current URL will not be recorded in history. User can't hit ''Back'' button to reach it.

The current URL will not be recorded in history. User can't hit ''Back'' button to reach it.

Implemented via replaceState in the History API.

Attributes

See also
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait SetRouteVia
class Object
trait Matchable
class Any
Show all
Self type
case object WindowLocation extends SetRouteVia

window.location.href will be directly set to the new URL.

window.location.href will be directly set to the new URL.

If the new URL is part of the current SPA, the entire SPA will be reloaded.

The current URL will be recorded in history. User can hit ''Back'' button to reach it.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait SetRouteVia
class Object
trait Matchable
class Any
Show all
Self type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror