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. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def always[A](a: A): Reusable[A]
  5. def ap[A, B, C](ra: Reusable[A], rb: Reusable[B])(f: (A, B) => C): Reusable[C]

    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]
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. implicit def autoValue[A](r: Reusable[A]): A
    Annotations
    @inline()
  9. def byRef[A <: AnyRef](a: A): Reusable[A]

    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]

    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]

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

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

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

  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. def const[A](a: A, isReusable: Boolean): Reusable[A]

    Use constant reusability (i.e.

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

  15. lazy val emptyVdom: Reusable[TagMod]
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def explicitly[A](a: A)(r: Reusability[A])(implicit arg0: ClassTag[A]): Reusable[A]
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def implicitly[A](a: A)(implicit arg0: ClassTag[A], arg1: Reusability[A]): Reusable[A]
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def never[A](a: A): Reusable[A]
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def reusabilityInstance[A](r: Reusability[A]): Reusable[Reusability[A]]
  29. implicit def reusableReusability[A]: Reusability[Reusable[A]]
  30. def sequenceOption[A](o: Option[Reusable[A]]): Reusable[Option[A]]
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. lazy val unit: Reusable[Unit]
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. object fn

    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

  38. object fnOutput

    Convenience methods that help you create I => Reusable[O] functions.

    Convenience methods that help you create I => Reusable[O] functions.

    The reason this is more convenient than the underlying methods is that this makes it easier to create and share a single Reusability instance at the function definition site, before it's used.

    Also note, that it's important that the functions you provide are pure. If you don't always return the same output given the same input, then you can expect different outputs to be discarded or "lost".

    Since

    1.5.0

Inherited from AnyRef

Inherited from Any

Ungrouped