Secondary

final class Secondary[Ctx, CtxFn[_], Step <: SubsequentStep[Ctx, CtxFn]](api: Secondary[Ctx, CtxFn, Step]) extends Primary[Ctx, Step]
class Primary[Ctx, Step]
class Object
trait Matchable
class Any

Value members

Concrete methods

def useSingleEffectBy(debounce: CtxFn[FiniteDuration])(implicit step: Step): Next[Reusable[UseSingleEffect[Async]]]

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

A submitted effect can be explicitly canceled too.

debounce can specify a minimum Duration between invocations.

Inherited methods

final def useSingleEffect(implicit step: Step): Next[Reusable[UseSingleEffect[Async]]]

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

A submitted effect can be explicitly canceled too.

Inherited from:
Primary
final def useSingleEffect(debounce: FiniteDuration)(implicit step: Step): Next[Reusable[UseSingleEffect[Async]]]

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

A submitted effect can be explicitly canceled too.

Inherited from:
Primary
final def useSingleEffectBy(debounce: Ctx => FiniteDuration)(implicit step: Step): Next[Reusable[UseSingleEffect[Async]]]

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

Provides a context in which to run a single effect at a time. When a new effect is submitted, the previous one is canceled. Also cancels the effect on unmount.

A submitted effect can be explicitly canceled too.

Inherited from:
Primary