Subscriber thrown errors are not unsubscribing the Observable #6537
Maheshbiradar
started this conversation in
Report issues other than bug
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In case of v6 rxjs when an error is thrown from the observer will actually closes the subscription and the error is propagated to calls tack. This is demonstrated in the below stack blitz.
https://stackblitz.com/edit/angular-ivy-v7dojh?file=src%2Fapp%2Fhello.component.ts
The same code when executed for v7 then the un-subscription did not happen and it prints all the 4 values before it throws the error from calls tack.
https://stackblitz.com/edit/angular-ivy-p8zj2k?file=src%2Fapp%2Fhello.component.ts]
From the below commit it looks like the un-subscription code is removed.
54ace0b#diff-f66f51cfa3d371eb91a4d6f6be963f6beb18ac30b421b8055f0e10474a7628da
Is this a bug in v7?
Beta Was this translation helpful? Give feedback.
All reactions