class CacheCallContent[Request, Response] extends AnyRef
For many-time loading of content, e.g., via ajax, assuming repeated calls will be cached Request and sendRequest are decoupled because the component is designed to change only when the request changes, since sendRequest functions may be difficult to compare.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CacheCallContent
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new CacheCallContent()(implicit executionContext: ExecutionContext)
Type Members
- class Backend extends AnyRef
- case class Loaded(content: Response) extends State with Product with Serializable
- case class Props(request: Request, sendRequest: (Request) ⇒ OrWrapped[AsyncCallback, Response], willLoad: (Response) ⇒ Callback = _ => Callback.empty, didLoad: (Response) ⇒ Callback = _ => Callback.empty, render: (State) ⇒ japgolly.scalajs.react.vdom.html_<^.VdomElement) extends Product with Serializable
- sealed trait State extends AnyRef
Value Members
-
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
- val Component: japgolly.scalajs.react.component.Js.ComponentWithRoot[Props, [-p, +u]japgolly.scalajs.react.CtorType.Props[p, u], UnmountedWithRoot[Props, MountedWithRoot[[A]A, Props, State, Backend, Props, State], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], Component[Box[Props], Box[State]] with Vars[Props, State, Backend], Box[Props], Box[State]]], Box[Props], [-p, +u]japgolly.scalajs.react.CtorType.Props[p, u], UnmountedWithRoot[Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], Component[Box[Props], Box[State]] with Vars[Props, State, Backend], Box[Props], Box[State]], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], Component[Box[Props], Box[State]] with Vars[Props, State, Backend], Box[Props], Box[State]]]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- 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
- def make(request: Request, sendRequest: (Request) ⇒ OrWrapped[AsyncCallback, Response], willLoad: (Response) ⇒ Callback = _ => Callback.empty, didLoad: (Response) ⇒ Callback = _ => Callback.empty)(render: (State) ⇒ japgolly.scalajs.react.vdom.html_<^.VdomElement): UnmountedWithRoot[Props, MountedWithRoot[[A]A, Props, State, Backend, Props, State], Box[Props], MountedWithRoot[[A]A, Box[Props], Box[State], Component[Box[Props], Box[State]] with Vars[Props, State, Backend], Box[Props], Box[State]]]
-
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()
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object Loading extends State with Product with Serializable