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
#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
#drainingWhileUnmountedIxUUID Source
drainingWhileUnmountedIxUUID :: 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)
#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.