Catch circular dependency between observables
问题 I have a user-programming scenario where user can end up creating two observables that depend on each other. RxJS does not allow circular dependencies, as far as I can see, the memory or stack reaches its limits and the onError callback is triggered with the value true . How to detect the circular dependency explicitly and throw a more descriptive error message? This codes illustrates how to create a circular dependency in RxJS: var obsA, obsB; obsA = Rx.Observable .returnValue(42)