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 props state spec rw a. 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 props state spec rw a. 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 props state spec rw a. 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