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
withEffectsalong 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.
errorHandlerhas an identical function signature to a
handler, but with an
errorinstead of an
effectpassed in as the second argument:
aperturefunction 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!