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.
- Alphabetic
- By Inheritance
- EffectArg
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- 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()
- implicit def fromThunk[U](f: () => U): EffectArg
No final callback.
No final callback.
- Annotations
- @inline()
- implicit def fromThunkCbA[A](f: () => () => A): EffectArg
Return value from the callback is discarded.
Return value from the callback is discarded.
- Annotations
- @inline()
- implicit def fromThunkCbJS[A](f: () => Function0[A]): EffectArg
Return value form the callback is discarded.
Return value form the callback is discarded.
- Annotations
- @inline()
- implicit def fromThunkJS[U](f: Function0[U]): EffectArg
No final callback.
No final callback.
- Annotations
- @inline()
- To do
Not sure inner definition is needed.