Module

Halogen.Store.UseSelector

Package
purescript-halogen-store
Repository
thomashoneyman/purescript-halogen-store

#UseSelector Source

data UseSelector :: Type -> Type -> Type -> HookTypedata UseSelector t0 t1 t2

Instances

#UseSelector' Source

type UseSelector' :: Type -> Type -> Type -> HookTypetype UseSelector' act store ctx = (UseState (Maybe ctx)) <> UseEffect <> Pure

Instances

#useSelector Source

useSelector :: forall m act store ctx. MonadStore act store m => Selector store ctx -> Hook m (UseSelector act store ctx) (Maybe ctx)