Root

japgolly.scalajs.react.extra.Px$.Root
sealed abstract class Root[A](`__initValue`: () => A) extends Px[A]

Attributes

Graph
Supertypes
class Px[A]
class Object
trait Matchable
class Any
Known subtypes
class ThunkM[A]
class Var[A]

Members list

Value members

Concrete methods

final protected def _updateValue(a: A): Unit
final protected def _value(): A
final override def peek: A

Get the last used value without updating.

Get the last used value without updating.

Attributes

Definition Classes
Px
final override def rev: Int

Revision of its value. Increments when value changes.

Revision of its value. Increments when value changes.

Attributes

Definition Classes
Px
protected def setMaybe(a: A): Unit

Inherited methods

def extract(implicit e: Extract[A]): A

If this Px contains a function, it can be extracted and the Px dropped from the signature. Every time the function is invoked it will use the latest value of this Px, even if you don't explicitly hold a reference to it anymore.

If this Px contains a function, it can be extracted and the Px dropped from the signature. Every time the function is invoked it will use the latest value of this Px, even if you don't explicitly hold a reference to it anymore.

Example. From a Px[Int => String], an Int => String can be extracted.

Attributes

Inherited from:
Px
def flatMap[B](f: A => Px[B]): Derivative[B]

Attributes

Inherited from:
Px
def map[B](f: A => B): Derivative[B]

Attributes

Inherited from:
Px
final def toCallback[F[_]](implicit F: Sync[F]): F[A]

Attributes

Inherited from:
Px
def value(): A

Get the latest value, updating itself if necessary.

Get the latest value, updating itself if necessary.

Attributes

Inherited from:
Px
final def valueSince(r: Int): Option[A]

Attributes

Inherited from:
Px

Abstract fields

protected val reusability: Reusability[A]

Concrete fields

protected var _rev: Int