aperture
's streams, and sometimes via the main handler
. This means that all expected functionality - including common error states - is taken care of within the same context.errorHandler
, an optional function which can be passed into withEffects
along with the main handler
. This is intended to be a way for you to log unexpected errors, so that you can investigate and fix any issues which emerge when your app is being used in the real world.errorHandler
has an identical function signature to a handler
, but with an error
instead of an effect
passed in as the second argument:aperture
function to no longer work and emit effects! Stream libraries have ways to catch or ignore those errors so they don't propagate and cause entire streams to terminate!