Module
React.Queue
- Package
- purescript-react-queue
- Repository
- athanclark/purescript-react-queue
Re-exports from React.Queue.LifeCycle
#ReactLifeCycle Source
data ReactLifeCycle props stateConstructors
WillMountDidMountWillUnmountWillUpdate { props :: props, state :: state }DidUpdate { props :: props, state :: state }WillReceiveProps { props :: props }DidCatch { componentStack :: String, error :: Error }
#withLifeCycleOne Source
withLifeCycleOne :: forall rw eff render state props. Queue (write :: WRITE | rw) (Effects eff) (ReactLifeCycle props state) -> ReactSpec props state render (Effects eff) -> ReactSpec props state render (Effects eff)#withLifeCycleIx Source
withLifeCycleIx :: forall rw eff render state props. String -> IxQueue (write :: WRITE | rw) (Effects eff) (ReactLifeCycle props state) -> ReactSpec props state render (Effects eff) -> ReactSpec props state render (Effects eff)#withLifeCycle Source
withLifeCycle :: forall rw eff render state props. Queue (write :: WRITE | rw) (Effects eff) (ReactLifeCycle props state) -> ReactSpec props state render (Effects eff) -> ReactSpec props state render (Effects eff)Re-exports from React.Queue.WhileMounted
#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.
#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
#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