io.github.nafg.scalajs.react.util

Members list

Type members

Classlikes

Reuse logic for componentDidMount and componentWillReceiveProps to asynchronously compute the state from the props Can accept a predicate to use in componentWillReceiveProps, to compare currentProps with nextProps Methods with "always" in the name don't take a predicate Methods with "const" in the name expect the computation to produce a Future[S] for setState; the other methods expect it to produce a Future[S => S] for modState.

Reuse logic for componentDidMount and componentWillReceiveProps to asynchronously compute the state from the props Can accept a predicate to use in componentWillReceiveProps, to compare currentProps with nextProps Methods with "always" in the name don't take a predicate Methods with "const" in the name expect the computation to produce a Future[S] for setState; the other methods expect it to produce a Future[S => S] for modState.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object Debounce

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Debounce.type
case class FutureValue[A](value: Option[Try[A]])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object FutureValue

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
abstract class FutureValueView extends FutureValueViewLike

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
abstract class FutureValueViewLike extends HasBusyIndicator

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class FutureView extends FutureValueViewLike

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object FutureView

Attributes

Companion
class
Supertypes
class FutureView
class Object
trait Matchable
class Any
Show all
Self type
FutureView.type
abstract class GlobalBusyIndicator extends HasBusyIndicator

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait IsUnmounted

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Backend
object IsUnmounted

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
case class KeyedFunction[+R](key: Any)(function: () => R) extends () => R

Function (wrapper) whose equality is delegated to another value. Two KeyedFunctions whose key compares equal will themselves compare equal. Useful to control when React component props should appear equal or not

Function (wrapper) whose equality is delegated to another value. Two KeyedFunctions whose key compares equal will themselves compare equal. Useful to control when React component props should appear equal or not

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait () => R
class Object
trait Matchable
class Any
Show all

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class Messages

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Messages
object Messages extends Messages

Attributes

Companion
class
Supertypes
class Messages
class Object
trait Matchable
class Any
Self type
Messages.type
trait PublicBroadcaster[A] extends Broadcaster[A]

Allows publishing a message from outside the class.

Allows publishing a message from outside the class.

Broadcaster#broacast is protected so it can only be called from within.

Due to https://github.com/scala/bug/issues/12809, we can't override broadcast so this trait adds a public alternative called publish instead.

Type parameters

A

The type of messages that can be broadcasted.

Attributes

Supertypes
trait Broadcaster[A]
trait Listenable[A]
trait BroadcasterF[Sync, A]
trait ListenableF[Sync, A]
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object SnapshotUtils

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object Spinner

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Spinner.type
object SpinnerImage

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class WatchTaskExtensionMethods(busyIndicator: GlobalBusyIndicator, messages: Messages)

Attributes

Supertypes
class Object
trait Matchable
class Any
object confirm

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
confirm.type

Value members

Concrete methods

def addOnBeforeUnload(preventLeaveCondition: => Boolean): Callback
def suspendFuture[A](f: => Future[A])(render: A => VdomElement)(implicit loadingIndicator: LoadingIndicator): VdomElement