FromThunkReusability

japgolly.scalajs.react.extra.Px$.FromThunkReusability
final class FromThunkReusability[A](thunk: () => A, reusability: Reusability[A])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def autoRefresh: Px[A]

Every time japgolly.scalajs.react.extra.Px.value is called, the underlying data function is re-evaluated. If a non-reusable change is detected, the value is replaced.

Every time japgolly.scalajs.react.extra.Px.value is called, the underlying data function is re-evaluated. If a non-reusable change is detected, the value is replaced.

Attributes

The underlying data function will only be re-evaluated and checked for non-reusable change when japgolly.scalajs.react.extra.Px.ThunkM.refresh is called.

The underlying data function will only be re-evaluated and checked for non-reusable change when japgolly.scalajs.react.extra.Px.ThunkM.refresh is called.

japgolly.scalajs.react.extra.Px.refresh also exists as a convenience to refresh multiple instances at once.

Attributes

def manualUpdate: Var[A]

The value is never updated until japgolly.scalajs.react.extra.Px.Var.set is called to specify a new value.

The value is never updated until japgolly.scalajs.react.extra.Px.Var.set is called to specify a new value.

Attributes