Create a new Reusable[C]
that is reusable so long as Reusable[A]
and Reusable[B]
are.
Compare by reference.
Compare by reference. Reuse if both values are the same instance.
Compare by reference through an isomorphism.
Compare by reference through an isomorphism. Reuse if both values are the same instance.
Compare by reference and if different, compare using universal equality (Scala's == operator).
Compare using universal equality (Scala's == operator).
Use constant reusability (i.e.
Use constant reusability (i.e. always-reuse or never-reuse)
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.
0.9.0