Module

React.Queue.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. Queue (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (Mounted spec) -> ReactClassConstructor props state (Mounted spec)

Deletes all handlers from Queue when unmounting

#drainingWhileUnmounted Source

drainingWhileUnmounted :: forall a rw spec state props. Queue (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. IxQueue (read :: READ | rw) a -> String -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (Mounted spec) -> ReactClassConstructor props state (Mounted spec)

Uses specified index

#drainingWhileUnmountedIx Source

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

#whileMountedOne Source

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

Is the only handler for the singleton queue.

#drainingWhileUnmountedOne Source

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