Is unsubscribe() required in operator teardown? #7496
palamccc
started this conversation in
Report issues other than bug
Replies: 1 comment
-
One of the operator, where the subscription is not unsusubscribed. rxjs/packages/rxjs/src/internal/operators/bufferWhen.ts Lines 81 to 95 in f9f07f1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As per official operator guide https://rxjs.dev/guide/operators#creating-new-operators-from-scratch
subscription.unsubscribe()
is called in the teardown logic. Do you think it's really required? I checked a few RxJS operators code in the RxJS repo; they are not doing it.Beta Was this translation helpful? Give feedback.
All reactions