Module

React.Queue.WhileMounted

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

#whileMounted Source

whileMounted :: forall a rw eff render state props. Queue (read :: READ | rw) (ref :: REF | eff) a -> (ReactThis props state -> a -> Eff (ref :: REF | eff) Unit) -> ReactSpec props state render (ref :: REF | eff) -> ReactSpec props state render (ref :: REF | eff)

Deletes all handlers from Queue when unmounting

#whileMountedIx Source

whileMountedIx :: forall a rw eff render state props. IxQueue (read :: READ | rw) (ref :: REF | eff) a -> String -> (ReactThis props state -> a -> Eff (ref :: REF | eff) Unit) -> ReactSpec props state render (ref :: REF | eff) -> ReactSpec props state render (ref :: REF | eff)

Uses specified index

#whileMountedIxUUID Source

whileMountedIxUUID :: forall a rw eff render state props. IxQueue (read :: READ | rw) (exception :: EXCEPTION, ref :: REF, uuid :: GENUUID | eff) a -> (ReactThis props state -> a -> Eff (exception :: EXCEPTION, ref :: REF, uuid :: GENUUID | eff) Unit) -> ReactSpec props state render (exception :: EXCEPTION, ref :: REF, uuid :: GENUUID | eff) -> ReactSpec props state render (exception :: EXCEPTION, ref :: REF, uuid :: GENUUID | eff)

Generates a random index - useful for broadcasted data

#whileMountedOne Source

whileMountedOne :: forall a rw eff render state props. Queue (read :: READ | rw) (ref :: REF | eff) a -> (ReactThis props state -> a -> Eff (ref :: REF | eff) Unit) -> ReactSpec props state render (ref :: REF | eff) -> ReactSpec props state render (ref :: REF | eff)

Is the only handler for the singleton queue.