Module
React.Queue.WhileMounted
- Package
- purescript-react-queue
- Repository
- athanclark/purescript-react-queue
#whileMounted Source
whileMounted :: forall a rw snapshot state props. Queue (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)
Deletes all handlers from Queue
when unmounting
#drainingWhileUnmounted Source
drainingWhileUnmounted :: forall a rw snapshot state props. Queue (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)
#whileMountedIx Source
whileMountedIx :: forall a rw snapshot state props. IxQueue (read :: READ | rw) a -> String -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)
Uses specified index
#drainingWhileUnmountedIx Source
drainingWhileUnmountedIx :: forall a rw snapshot state props. IxQueue (read :: READ | rw) a -> String -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)
#whileMountedIxUUID Source
whileMountedIxUUID :: forall a rw snapshot state props. IxQueue (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)
Generates a random index - useful for broadcasted data
#drainingWhileUnmountedIxUUID Source
drainingWhileUnmountedIxUUID :: forall a rw snapshot state props. IxQueue (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)
#whileMountedOne Source
whileMountedOne :: forall a rw snapshot state props. Queue (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)
Is the only handler for the singleton queue.
#drainingWhileUnmountedOne Source
drainingWhileUnmountedOne :: forall a rw snapshot state props. Queue (read :: READ | rw) a -> (ReactThis props state -> a -> Effect Unit) -> ReactClassConstructor props state (ReactSpecAll props state snapshot) -> ReactClassConstructor props state (ReactSpecAll props state snapshot)