class Fetcher2[F[_], P, E, T] extends Fetcher[F, P, E, T]
A Fetcher that keeps the runner at the class level.
- Alphabetic
- By Inheritance
- Fetcher2
- Fetcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Type Members
- case class Error(content: E) extends FetchState with Product with Serializable
Load resulted in an error.
Load resulted in an error.
- Definition Classes
- Fetcher
- sealed trait FetchState extends AnyRef
Load state passed to a child.
Load state passed to a child.
- Definition Classes
- Fetcher
- trait Props extends Object
- Definition Classes
- Fetcher
- Annotations
- @JSType()
- case class Success(item: T) extends FetchState with Product with Serializable
Load was successful, hold item.
Load was successful, hold item.
- Definition Classes
- Fetcher
- type FetchCallback = (F[P]) => Unit
Initiate a fetch for P.
Initiate a fetch for P.
- Definition Classes
- Fetcher
- 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
- case object Fetching extends FetchState with Product with Serializable
Loading still in progress.
Loading still in progress.
- Definition Classes
- Fetcher
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(children: (FetchState, FetchCallback) => ReactNode, initialValue: Option[F[P]] = None): ReactNode
- def apply(props: Props): ReactNode
Provide data loading status to a child.
Provide data loading status to a child.
- Definition Classes
- Fetcher
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val render: (Props) => ReactNode
- Definition Classes
- Fetcher
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])