package extra
- Alphabetic
- By Inheritance
- extra
- HooksApiExt
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Broadcaster[A] extends BroadcasterF[Sync, A] with Listenable[A]
- trait BroadcasterF[F[_], A] extends ListenableF[F, A]
Implementation of
Listener.Implementation of
Listener. Subclasses can broadcast data of type A via thebroadcastmethod. - class EventListenerF[F[_]] extends AnyRef
- trait Listenable[A] extends ListenableF[Sync, A]
- trait ListenableF[F[_], 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.buildvia.configure(Listenable.listen). - trait OnUnmount extends OnUnmountF[Sync]
Accrues procedures to be run automatically when its component unmounts.
Accrues procedures to be run automatically when its component unmounts.
Install in
ScalaComponent.buildvia.configure(OnUnmount.install). - trait OnUnmountF[F[_]] 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.buildvia.configure(OnUnmount.install). - 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. - type StateSnapshot[S] = StateSnapshotF[Sync, util.DefaultEffects.Async, S]
- final class StateSnapshotF[F[_], A[_], S] extends Write[F, A, S]
- trait TimerSupport extends TimerSupportF[Sync] with OnUnmount
Alternatives to
window.setTimeout/window.setIntervalthat automatically unregister installed callbacks when the component unmounts.Alternatives to
window.setTimeout/window.setIntervalthat automatically unregister installed callbacks when the component unmounts.Provides interval methods that guarentee duration between callbacks. Regular use of
setIntervalis fine for callbacks with determined execution time. However, if your callback could possibly take as long or longer than yourtimeout, you can end up with callbacks firing back to back.Install in
ScalaComponent.buildvia.configure(TimerSupport.install). - trait TimerSupportF[F[_]] extends OnUnmountF[F]
Alternatives to
window.setTimeout/window.setIntervalthat automatically unregister installed callbacks when the component unmounts.Alternatives to
window.setTimeout/window.setIntervalthat automatically unregister installed callbacks when the component unmounts.Provides interval methods that guarentee duration between callbacks. Regular use of
setIntervalis fine for callbacks with determined execution time. However, if your callback could possibly take as long or longer than yourtimeout, you can end up with callbacks firing back to back.Install in
ScalaComponent.buildvia.configure(TimerSupport.install).
Deprecated Type Members
- class DefaultReusabilityOverlay[F[_]] extends ReusabilityOverlay[F] with TimerSupportF[F]
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0 / React v18) ReusabilityOverlays are deprecated and will be removed in the next major release.
- trait ReusabilityOverlay[F[_]] extends AnyRef
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0 / React v18) ReusabilityOverlays are deprecated and will be removed in the next major release.
Value Members
- lazy val StateSnapshot: extra.internal.StateSnapshot.type
- implicit def hooksExtUseStateSnapshot1[Ctx, Step <: AbstractStep](api: Primary[Ctx, Step]): Primary[Ctx, Step]
- Definition Classes
- HooksApiExt
- implicit def hooksExtUseStateSnapshot2[Ctx, CtxFn[_], Step <: SubsequentStep[Ctx, CtxFn]](api: Secondary[Ctx, CtxFn, Step]): Secondary[Ctx, CtxFn, Step]
- Definition Classes
- HooksApiExt
- def useStateSnapshot[S](initialState: => S): HookResult[extra.StateSnapshotF.StateSnapshot[S]]
- Definition Classes
- HooksApiExt
- Annotations
- @inline()
- def useStateSnapshotWithReuse[S](initialState: => S)(implicit r: Reusability[S]): HookResult[extra.StateSnapshotF.StateSnapshot[S]]
- Definition Classes
- HooksApiExt
- Annotations
- @inline()
- object Ajax extends AjaxF[Sync, util.DefaultEffects.Async]
- object EventListener extends EventListenerF[Sync]
- object EventListenerF
- object Listenable
- object ListenableF
- object OnUnmount
- object OnUnmountF
- object Px
- object StateSnapshotF
- object TimerSupport
- object TimerSupportF
Deprecated Value Members
- object DefaultReusabilityOverlay
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0 / React v18) ReusabilityOverlays are deprecated and will be removed in the next major release.
- object ReusabilityOverlay
Heavily inspired by https://github.com/redsunsoft/react-render-visualizer
Heavily inspired by https://github.com/redsunsoft/react-render-visualizer
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0 / React v18) ReusabilityOverlays are deprecated and will be removed in the next major release.