Packages

object EffectArg

Implicit conversions that are very careful on the return value. If the return value is a parameterless function, it is assumed to be the reactjs "after-effect" callback. Otherwise, the return value is discarded.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EffectArg
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def convertEffectCallbackArg[A](arg: () => () => A): Any

    Convert a scala EffectCallbackArg to js using a proxy approach.

    Convert a scala EffectCallbackArg to js using a proxy approach. Use a general return of A vs unit to be more friendly. Requires 2 scala => js function conversions. Ugh!

    Annotations
    @inline()
  2. implicit def fromThunk[U](f: () => U): EffectArg

    No final callback.

    No final callback.

    Annotations
    @inline()
  3. implicit def fromThunkCbA[A](f: () => () => A): EffectArg

    Return value from the callback is discarded.

    Return value from the callback is discarded.

    Annotations
    @inline()
  4. implicit def fromThunkCbJS[A](f: () => Function0[A]): EffectArg

    Return value form the callback is discarded.

    Return value form the callback is discarded.

    Annotations
    @inline()
  5. implicit def fromThunkJS[U](f: Function0[U]): EffectArg

    No final callback.

    No final callback.

    Annotations
    @inline()
    To do

    Not sure inner definition is needed.