Packages

c

fetch

Fetcher2

class Fetcher2[F[_], P, E, T] extends Fetcher[F, P, E, T]

A Fetcher that keeps the runner at the class level.

Linear Supertypes
Fetcher[F, P, E, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Fetcher2
  2. Fetcher
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Fetcher2(Name: String, runner: (F[P]) => ((Either[E, T]) => Unit) => Unit)

Type Members

  1. case class Error(content: E) extends FetchState with Product with Serializable

    Load resulted in an error.

    Load resulted in an error.

    Definition Classes
    Fetcher
  2. sealed trait FetchState extends AnyRef

    Load state passed to a child.

    Load state passed to a child.

    Definition Classes
    Fetcher
  3. trait Props extends Object
    Definition Classes
    Fetcher
    Annotations
    @JSType()
  4. case class Success(item: T) extends FetchState with Product with Serializable

    Load was successful, hold item.

    Load was successful, hold item.

    Definition Classes
    Fetcher
  5. type FetchCallback = (F[P]) => Unit

    Initiate a fetch for P.

    Initiate a fetch for P.

    Definition Classes
    Fetcher
  6. type Runner = (F[P]) => ((Either[E, T]) => Unit) => Unit

    Given a fetch request F[P] and a callback, run the F and call the callback to process the results.

    Given a fetch request F[P] and a callback, run the F and call the callback to process the results. The results have to be split into an error part and a "value" part so that the proper fetch state can be passed to the child.

    Definition Classes
    Fetcher

Value Members

  1. case object Fetching extends FetchState with Product with Serializable

    Loading still in progress.

    Loading still in progress.

    Definition Classes
    Fetcher
  2. case object NotRequested extends FetchState with Product with Serializable

    Initial state until a fetch request is made.

    Initial state until a fetch request is made.

    Definition Classes
    Fetcher
  3. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def ##: Int
    Definition Classes
    AnyRef → Any
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def apply(children: (FetchState, FetchCallback) => ReactNode, initialValue: Option[F[P]] = None): ReactNode
  7. def apply(props: Props): ReactNode

    Provide data loading status to a child.

    Provide data loading status to a child.

    Definition Classes
    Fetcher
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. val render: (Props) => ReactNode
    Definition Classes
    Fetcher
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Fetcher[F, P, E, T]

Inherited from AnyRef

Inherited from Any

Ungrouped