What could be going wrong — and is it possible to make the documentation on Observers a bit clearer?
For example, it doesn't actually mention how to throw an error in the Observable at all — the "Failure" example just returns Promise.reject straight off, and replacing the observer.error('nope') with return Promise.reject('nope') results in an infinite loop of UnhandledPromiseRejectionWarnings.
Let me start out by saying that this is almost certainly something wrong with my code — but the README isn't providing any clues!
When I run the following, I expect to see
but what I get is
with no spinner next to "ugly" — and it never exits.
What could be going wrong — and is it possible to make the documentation on Observers a bit clearer?
For example, it doesn't actually mention how to throw an error in the Observable at all — the "Failure" example just returns
Promise.reject
straight off, and replacing theobserver.error('nope')
withreturn Promise.reject('nope')
results in an infinite loop ofUnhandledPromiseRejectionWarning
s.