p
recoil
package recoil
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- recoil
- hooks
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait AbstractRecoilValue[+T] extends Object
Generic selector, state handle.
Generic selector, state handle.
- Annotations
- @JSType() @native()
- trait AbstractRecoilValueReadOnly[+T] extends Object
- Annotations
- @JSType() @native()
- trait Accessors[+T] extends Object
- Annotations
- @JSType() @native()
- trait AtomOptions[T] extends Object
- Annotations
- @JSType()
- type AtomValues = Dictionary[Loadable[Any]]
- trait CallbackInterface extends Object
- Annotations
- @JSType() @native()
- class DefaultValue extends Object
- Annotations
- @JSType() @native() @JSImport("recoil", "DefaultValue")
- type FlexiValue[T] = |[|[T, RecoilValue[T]], Thenable[T]]
- type GetRecoilValue[T] = Function1[RecoilValue[T], T]
- trait Loadable[T] extends Object with Accessors[T]
- Annotations
- @JSType() @native()
- trait LoadableEffect[+T] extends Object with LoadableValue[T] with Accessors[T]
- Annotations
- @JSType() @native()
- trait LoadableError[+T] extends Object with LoadableValue[T]
- Annotations
- @JSType() @native()
- type LoadablePromise[T] = Promise[ResolvedLoadablePromiseInfo[T]]
- trait LoadableState extends Any
- Annotations
- @JSType() @native()
- trait LoadableStrict[+T] extends Object with LoadableValue[T]
- Annotations
- @JSType() @native()
- trait LoadableValue[+T] extends Object
- Annotations
- @JSType() @native()
- type NodeKey = String
- trait ReadOnlyAccessors extends Object
- Annotations
- @JSType() @native()
- trait ReadOnlySelectorOptions[T] extends Object
- Annotations
- @JSType()
- trait ReadWriteAccessors extends Object with ReadOnlyAccessors
- Annotations
- @JSType() @native()
- trait RecoilState[+T] extends Object with AbstractRecoilValue[T]
Writable
Writable
- Annotations
- @JSType() @native()
- type RecoilValue[T] = |[RecoilValueReadOnly[T], RecoilState[T]]
Value.
Value. Note this has poor type inference.
- trait RecoilValueReadOnly[+T] extends Object with AbstractRecoilValueReadOnly[T]
Read only.
Read only.
- Annotations
- @JSType() @native()
- type ResetRecoilState[T] = Function1[RecoilState[T], Unit]
- type Resetter = Function0[Unit]
- trait ResolvedLoadablePromiseInfo[T] extends Object
- Annotations
- @JSType() @native()
- type Return[T] = |[|[T, RecoilValue[T]], Thenable[T]]
- type SetRecoilState[T] = Function2[RecoilState[T], |[|[T, DefaultValue], Function1[T, |[T, DefaultValue]]], Unit]
- type SetVal[T] = Function1[T, Unit]
- type SetValOrUpdater[T] = |[SetVal[T], Updater[T]]
- trait SetterOrUpdater[T] extends Object
- Annotations
- @JSType() @native()
- type Updater[T] = Function1[Function1[T, T], Unit]
- trait WriteableSelectorOptions[T] extends Object with ReadOnlySelectorOptions[T]
- Annotations
- @JSType()
- trait hooks extends AnyRef
- trait recoil_module extends Object
- Annotations
- @JSType() @native()
Value Members
- def atom[T](options: AtomOptions[T]): RecoilState[T]
- Definition Classes
- hooks
- def isRecoilValue(value: Any): Boolean
- Definition Classes
- hooks
- def makeAtom[T](k: String, d: FlexiValue[T]): RecoilState[T]
- def readonlySelector[T](options: ReadOnlySelectorOptions[T]): RecoilValueReadOnly[T]
- Definition Classes
- hooks
- def useRecoilCallback[T](deps: AllType*)(f: Function1[CallbackInterface, Return[T]]): Function0[T]
- Definition Classes
- hooks
- def useRecoilCallback1[A1, T](deps: AllType*)(f: Function2[CallbackInterface, A1, Return[T]]): Function1[A1, T]
- Definition Classes
- hooks
- def useRecoilCallback1A[A1, T](deps: Dependencies)(f: Function2[CallbackInterface, A1, Return[T]]): Function1[A1, T]
- Definition Classes
- hooks
- def useRecoilCallback2[A1, A2, T](deps: AllType*)(f: Function3[CallbackInterface, A1, A2, Return[T]]): Function2[A1, A2, T]
- Definition Classes
- hooks
- def useRecoilCallback2A[A1, A2, T](deps: Dependencies)(f: Function3[CallbackInterface, A1, A2, Return[T]]): Function2[A1, A2, T]
- Definition Classes
- hooks
- def useRecoilCallback3[A1, A2, A3, T](deps: AllType*)(f: Function4[CallbackInterface, A1, A2, A3, Return[T]]): Function3[A1, A2, A3, T]
- Definition Classes
- hooks
- def useRecoilCallback3A[A1, A2, A3, T](deps: Dependencies)(f: Function4[CallbackInterface, A1, A2, A3, Return[T]]): Function3[A1, A2, A3, T]
- Definition Classes
- hooks
- def useRecoilCallback4[A1, A2, A3, A4, T](deps: AllType*)(f: Function5[CallbackInterface, A1, A2, A3, A4, Return[T]]): Function4[A1, A2, A3, A4, T]
- Definition Classes
- hooks
- def useRecoilCallback4A[A1, A2, A3, A4, T](deps: Dependencies)(f: Function5[CallbackInterface, A1, A2, A3, A4, Return[T]]): Function4[A1, A2, A3, A4, T]
- Definition Classes
- hooks
- def useRecoilCallback5[A1, A2, A3, A4, A5, T](deps: AllType*)(f: Function6[CallbackInterface, A1, A2, A3, A4, A5, Return[T]]): Function5[A1, A2, A3, A4, A5, T]
- Definition Classes
- hooks
- def useRecoilCallback5A[A1, A2, A3, A4, A5, T](deps: Dependencies)(f: Function6[CallbackInterface, A1, A2, A3, A4, A5, Return[T]]): Function5[A1, A2, A3, A4, A5, T]
- Definition Classes
- hooks
- def useRecoilCallbackA[T](deps: Dependencies)(f: Function1[CallbackInterface, Return[T]]): Function0[T]
- Definition Classes
- hooks
- def useRecoilCallbackMounting[T](f: Function1[CallbackInterface, Return[T]]): Function0[T]
- Definition Classes
- hooks
- def useRecoilCallbackMounting1[A1, T](f: Function2[CallbackInterface, A1, Return[T]]): Function1[A1, T]
- Definition Classes
- hooks
- def useRecoilCallbackMounting2[A1, A2, T](f: Function3[CallbackInterface, A1, A2, Return[T]]): Function2[A1, A2, T]
- Definition Classes
- hooks
- def useRecoilCallbackMounting3[A1, A2, A3, T](f: Function4[CallbackInterface, A1, A2, A3, Return[T]]): Function3[A1, A2, A3, T]
- Definition Classes
- hooks
- def useRecoilCallbackMounting4[A1, A2, A3, A4, T](f: Function5[CallbackInterface, A1, A2, A3, A4, Return[T]]): Function4[A1, A2, A3, A4, T]
- Definition Classes
- hooks
- def useRecoilCallbackMounting5[A1, A2, A3, A4, A5, T](f: Function6[CallbackInterface, A1, A2, A3, A4, A5, Return[T]]): Function5[A1, A2, A3, A4, A5, T]
- Definition Classes
- hooks
- def useRecoilState[T](atom: RecoilState[T]): (T, SetterOrUpdater[T])
- Definition Classes
- hooks
- def useRecoilStateLoadable[T](state: RecoilState[T]): (Loadable[T], SetterOrUpdater[T])
- Definition Classes
- hooks
- def useRecoilValue[T](selector: RecoilValue[T]): T
If pending, throws Promise to suspend, or throws an error.
If pending, throws Promise to suspend, or throws an error.
- Definition Classes
- hooks
- def useRecoilValueLoadable[T](value: RecoilValue[T]): Loadable[T]
- Definition Classes
- hooks
- def useResetRecoilState[T](state: RecoilState[T]): Resetter
- Definition Classes
- hooks
- def useSetRecoilState[T](state: RecoilState[T]): SetterOrUpdater[T]
- Definition Classes
- hooks
- def writableSelector[T](options: WriteableSelectorOptions[T]): RecoilState[T]
- Definition Classes
- hooks
- object AtomOptions
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object LoadableState
- object RecoilRoot
- object module extends Object with recoil_module
- Annotations
- @native() @JSImport("recoil", JSImport.Namespace)