Module

React.Signal.WhileMounted

Package
purescript-react-queue
Repository
athanclark/purescript-react-queue

#Mounted Source

type Mounted r = (componentDidMount :: ComponentDidMount, componentWillUnmount :: ComponentWillUnmount | r)

#whileMounted Source

whileMounted :: forall a rw spec state props. Signal (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (Mounted spec) -> ReactClassConstructor props state (Mounted spec)

#whileMountedIx Source

whileMountedIx :: forall a rw spec state props. IxSignal (read :: READ | rw) a -> String -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (Mounted spec) -> ReactClassConstructor props state (Mounted spec)

#whileMountedIxDiff Source

whileMountedIxDiff :: forall a rw spec state props. Eq a => IxSignal (read :: READ | rw) a -> String -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (Mounted spec) -> ReactClassConstructor props state (Mounted spec)

#signalToProvider Source

signalToProvider :: forall a. Signal (read :: READ) a -> Effect { consumer :: (a -> ReactElement) -> ReactElement, provider :: String -> Array ReactElement -> ReactElement }

Provider takes the component name as the first argument

#ixSignalToProvider Source

ixSignalToProvider :: forall a. IxSignal (read :: READ) a -> Effect { consumer :: (a -> ReactElement) -> ReactElement, provider :: String -> String -> Array ReactElement -> ReactElement }

Provider takes the index of the signal to bind to as the first argument, the second is the component name

#ixSignalDiffToProvider Source

ixSignalDiffToProvider :: forall a. Eq a => IxSignal (read :: READ) a -> Effect { consumer :: (a -> ReactElement) -> ReactElement, provider :: String -> String -> Array ReactElement -> ReactElement }

Provider takes the index of the signal to bind to as the first argument, the second is the component name