Module

Freedom.Store

Package
purescript-freedom
Repository
purescript-freedom/purescript-freedom

#Store Source

newtype Store state

This is for internal. Do not use it.

#Query Source

type Query state = { reduce :: (state -> state) -> Effect Unit, select :: Effect state }

The type of queries to app state.

select: Get app state. reduce: Modify app state.

#createStore Source

createStore :: forall state. state -> Effect (Store state)

This is for internal. Do not use it.

#query Source

query :: forall state. Store state -> Query state

This is for internal. Do not use it.

#subscribe Source

subscribe :: forall state. Effect Unit -> Store state -> Effect Unit

This is for internal. Do not use it.