Module

Radox.React.Internal.Dispatcher

Package
purescript-react-radox
Repository
danieljharvey/purescript-react-radox

#DispatcherEvent Source

data DispatcherEvent

bit odd this - accessing context (in our case, the dispatch function from Radox) is not a thing you can comfortably do in React. Therefore, to fire a dispatch method from componentDidMount we use this component that renders nothing but fires whatever you like on first mount.

Constructors

#DispatcherProps Source

type DispatcherProps = { action :: DispatcherEvent }