IxZeta
- Package
- purescript-zeta
- Repository
- athanclark/purescript-zeta
Indexed signals are similar to normal signals in that they represent a single value at all times, and can have a set of handlers that react to the value's change. However, indexed signals also allow for distinguished values for each handler if necessary (where handlers and these indexed values are indexed by a string). Updating a value for a signal can also be indexed, so the change is only reflected to that one handler. Likewise, you can broadcast the update. IxSignals could be useful for many dynamic handlers that need to listen to a shared value - for instance, the window size, so UI components can react a 'la responsive design at their own individual volition, while allowing the handler to be unregistered when the user interface component unmounts.
#clearSubscribers Source
clearSubscribers :: forall a rw. IxSignal (read :: READ | rw) a -> Effect Unit
Removes all subscribers
#clearIndividual Source
clearIndividual :: forall a rw. IxSignal (read :: READ | rw) a -> Effect Unit
Removes all individual
- Modules
- IxZeta
- Zeta
- Zeta.
Compat - Zeta.
Extra - Zeta.
Types