Module
Halogen.Helix.Store
- Package
- purescript-halogen-helix
- Repository
- katsujukou/purescript-halogen-helix
#HelixStore Source
newtype HelixStore :: Type -> Type -> (Type -> Type) -> Type
newtype HelixStore s a m
#dispatch Source
dispatch :: forall m s a. MonadEffect m => HelixStore s a m -> a -> m Unit
#emitState Source
emitState :: forall s a m. HelixStore s a m -> Emitter s
#getState Source
getState :: forall m s a. MonadEffect m => HelixStore s a m -> m s
#mkHelixStore Source
mkHelixStore :: forall s a m. MonadEffect m => String -> s -> (s -> a -> s) -> Maybe (HelixMiddleware s a m) -> Effect (HelixStore s a m)