Module

Chapagetti

Package
purescript-chapagetti
Repository
justinwoo/purescript-chapagetti

#reduxProvider Source

reduxProvider :: forall reactElement action state. Store state action -> reactElement -> reactElement

a Redux Provider element that takes a store

#MapState Source

newtype MapState state props

Newtype helper for mapStateToProps

Constructors

#MapDispatch Source

newtype MapDispatch action props

Newtype helper for mapDispatchToProps

Constructors

#connect Source

connect :: forall reactComponent props topProps merged dispatchP stateP action state. Union stateP dispatchP merged => Union merged topProps props => MapState state stateP -> MapDispatch action dispatchP -> reactComponent (Record props) -> reactComponent (Record topProps)

connect a mapState and mapDispatch to a tree. Use the merged total props for our class, but expose top level props explicitly. Note that this function is Partial because it relies on the upstream component tree having a reduxProvider with the correct state and action types.

#_reduxProvider Source

_reduxProvider :: forall reactClass reactElement store. Fn2 store reactElement reactClass

#_connect Source

_connect :: forall props origProps mapDispatch mapState reactComponent. Fn2 mapState mapDispatch (reactComponent origProps -> reactComponent props)
Modules
Chapagetti