observe method
Implementation
@override
bool observe(
Object error,
StackTrace stackTrace,
ReduxAction<St> action,
Store store,
) {
if (error is UserException)
return false;
else {
// We have to dispatch another action, since we cannot do:
// store._addError(errorAsUserException);
// store._changeController.add(store.state);
Future.microtask(() => store.dispatch(
UserExceptionAction(error.toString(), cause: error),
));
return true;
}
}