aperture
, two observables are observed: the USER_REQUEST
action, and the getUsers
selector. Every time an action with the type USER_REQUEST
is dispatched to the store, it is passed to the stream; every time the users
object in the redux store changes, it is also passed to the stream.combined$
- each time anything is sent to either stream, this new stream emits a new tuple containing the most recent value from both source streams.selectUser
action.handler
inspects the type of each effect, and causes different effects for different action types. If the effect is an error, it logs the effect; if the effect is either a USER_RECEIVE
or a USER_SELECT
effect, it is dispatched to the store.