Package

japgolly.scalajs.react

extra

Permalink

package extra

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

Type Members

  1. trait Broadcaster[A] extends Listenable[A]

    Permalink

    Implementation of Listener.

    Implementation of Listener. Subclasses can broadcast data of type A via the broadcast method.

  2. class DefaultReusabilityOverlay extends ReusabilityOverlay with TimerSupport

    Permalink
  3. trait Listenable[A] extends AnyRef

    Permalink

    External entities can register with this to listen (receive) data of type A.

    External entities can register with this to listen (receive) data of type A.

    Install in ScalaComponent.build via .configure(Listenable.listen).

  4. trait OnUnmount extends AnyRef

    Permalink

    Accrues procedures to be run automatically when its component unmounts.

    Accrues procedures to be run automatically when its component unmounts.

    Install in ScalaComponent.build via .configure(OnUnmount.install).

  5. sealed abstract class Px[A] extends AnyRef

    Permalink

    A mechanism for caching data with dependencies.

    A mechanism for caching data with dependencies.

    This is basically a performance-focused, lightweight implementation of pull-based FRP, pull-based meaning that in the chain A→B→C, an update to A doesn't affect C until the value of C is requested.

    What does Px mean? I don't know, I just needed a name and I liked the way @lihaoyi's Rx type name looked in code. You can consider this "Performance eXtension". If this were Java it'd be named AutoRefreshOnRequestDependentCachedVariable.

  6. implicit final class ReactExtrasExt_Any[A] extends AnyVal

    Permalink
  7. final class Reusability[A] extends AnyVal

    Permalink

    Tests whether one instance can be used in place of another.

    Tests whether one instance can be used in place of another. Used mostly to compare properties and state of a component to avoid unnecessary updates.

    If you imagine a class with 8 fields, equality would compare all 8 fields where as this would typically just compare the ID field, the update-date, or the revision number. You might think of this as a very quick version of equality.

    Don't miss Reusability.shouldComponentUpdate which can be applied to a component via ScalaComponent.build#configure.

    Since

    0.9.0

  8. trait ReusabilityOverlay extends AnyRef

    Permalink
  9. final class Reusable[+A] extends AnyRef

    Permalink

    A value that has been explicitly paired with a (potentially ad-hoc) Reusability instance.

    A value that has been explicitly paired with a (potentially ad-hoc) Reusability instance.

    A

    The type of value.

    Since

    1.0.0

  10. final class StateSnapshot[S] extends Write[CallbackTo, S]

    Permalink
  11. trait TimerSupport extends OnUnmount

    Permalink

    Alternatives to window.setTimeout/window.setInterval that automatically unregister installed callbacks when the component unmounts.

    Alternatives to window.setTimeout/window.setInterval that automatically unregister installed callbacks when the component unmounts.

    Provides interval methods that guarentee duration between callbacks. Regular use of setInterval is fine for callbacks with determined execution time. However, if your callback could possibly take as long or longer than your timeout, you can end up with callbacks firing back to back.

    Install in ScalaComponent.build via .configure(TimerSupport.install).

  12. type ~=>[-A, +B] = Reusable[(A) ⇒ B]

    Permalink

Value Members

  1. object Ajax

    Permalink

    Purely-functional AJAX that runs a Callback, and accepts XHR-callbacks as Callback instances.

    Purely-functional AJAX that runs a Callback, and accepts XHR-callbacks as Callback instances.

    See https://japgolly.github.io/scalajs-react/#examples/ajax for a demo

  2. object DefaultReusabilityOverlay

    Permalink
  3. object EventListener

    Permalink
  4. object Listenable

    Permalink
  5. object LogLifecycle

    Permalink

    Installing this will cause logging to occur at React component lifecycle stages.

    Installing this will cause logging to occur at React component lifecycle stages.

    Install in ScalaComponent.build via .configure(LogLifecycle.xxxxxx).

  6. object OnUnmount

    Permalink
  7. object Px

    Permalink
  8. object Reusability

    Permalink
  9. object ReusabilityOverlay

    Permalink

    Heavily inspired by https://github.com/redsunsoft/react-render-visualizer

  10. object Reusable

    Permalink
  11. object StateSnapshot

    Permalink
  12. object TimerSupport

    Permalink
  13. package components

    Permalink
  14. package internal

    Permalink
  15. package router

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped