Packages

package extra

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

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

    Implementation of Listener.

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

  2. class DefaultReusabilityOverlay extends ReusabilityOverlay with TimerSupport
  3. trait Listenable[A] extends AnyRef

    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

    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

    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. trait ReusabilityOverlay extends AnyRef
  7. final class StateSnapshot[S] extends Write[CallbackTo, S]
  8. trait TimerSupport extends OnUnmount

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

Value Members

  1. object Ajax

    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.

    For a demo, see

    • https://japgolly.github.io/scalajs-react/#examples/ajax-1
    • https://japgolly.github.io/scalajs-react/#examples/ajax-2
  2. object DefaultReusabilityOverlay
  3. object EventListener
  4. object Listenable
  5. object OnUnmount
  6. object Px
  7. object ReusabilityOverlay

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

  8. object StateSnapshot
  9. object TimerSupport

Ungrouped