Object/Class

japgolly.scalajs.react

Reusable

Related Docs: class Reusable | package react

Permalink

object Reusable

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reusable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def always[A](a: A): Reusable[A]

    Permalink
  5. def ap[A, B, C](ra: Reusable[A], rb: Reusable[B])(f: (A, B) ⇒ C): Reusable[C]

    Permalink

    Create a new Reusable[C] that is reusable so long as Reusable[A] and Reusable[B] are.

  6. def apply[A](a: A)(reuse: (A, A) ⇒ Boolean)(implicit arg0: ClassTag[A]): Reusable[A]

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. implicit def autoValue[A](r: Reusable[A]): A

    Permalink
    Annotations
    @inline()
  9. def byRef[A <: AnyRef](a: A): Reusable[A]

    Permalink

    Compare by reference.

    Compare by reference. Reuse if both values are the same instance.

  10. def byRefIso[A, B <: AnyRef](a: A)(iso: (A) ⇒ B): Reusable[A]

    Permalink

    Compare by reference through an isomorphism.

    Compare by reference through an isomorphism. Reuse if both values are the same instance.

  11. def byRefOr_==[A <: AnyRef](a: A): Reusable[A]

    Permalink

    Compare by reference and if different, compare using universal equality (Scala's == operator).

  12. def by_==[A](a: A): Reusable[A]

    Permalink

    Compare using universal equality (Scala's == operator).

  13. def callbackByRef[A](c: CallbackTo[A]): Reusable[CallbackTo[A]]

    Permalink
  14. def callbackOptionByRef[A](c: CallbackOption[A]): Reusable[CallbackOption[A]]

    Permalink
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def const[A](a: A, isReusable: Boolean): Reusable[A]

    Permalink

    Use constant reusability (i.e.

    Use constant reusability (i.e. always-reuse or never-reuse)

  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def explicitly[A](a: A)(r: Reusability[A])(implicit arg0: ClassTag[A]): Reusable[A]

    Permalink
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. object fn

    Permalink

    A function that facilitates stability and reuse.

    A function that facilitates stability and reuse.

    In effective usage of React, callbacks are passed around as component properties. Due to the ease of function creation in Scala it is often the case that functions are created inline and thus provide no means of determining whether a component can safely skip its update. This exists as a solution.

    Since

    0.9.0

  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def implicitly[A](a: A)(implicit arg0: ClassTag[A], arg1: Reusability[A]): Reusable[A]

    Permalink
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def never[A](a: A): Reusable[A]

    Permalink
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. implicit def reusableReusability[A]: Reusability[Reusable[A]]

    Permalink
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped