Module
Halogen.Hooks.Internal.UseHookF
- Package
- purescript-halogen-hooks
- Repository
- thomashoneyman/purescript-halogen-hooks
#UseHookF Source
data UseHookF :: (Type -> Type) -> Type -> Type
data UseHookF m a
The Hook API: a set of primitive building blocks for writing stateful logic
in Halogen. These should not be used directly; the hook functions supplied
in Hooks
should be used instead.
Constructors
UseState StateValue ((StateValue /\ (StateId StateValue)) -> a)
UseEffect (Maybe MemoValues) (HookM m (Maybe (HookM m Unit))) a
UseQuery (QueryToken QueryValue) (forall b. QueryValue b -> HookM m (Maybe b)) a
UseMemo MemoValues (Unit -> MemoValue) (MemoValue -> a)
UseRef RefValue ((RefValue /\ (Ref RefValue)) -> a)