Module

React.Signal.WhileMounted

#Mounted

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

#whileMounted

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

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

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

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

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

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

Modules