Closed seanpoulter closed 5 years ago
Proposed changes
Observable.prototype.forEach
Promise
TypeError
subscription.dispose
forEach
do
dispose
unsubscribe
This PR will close #160.
Demo There is no error on the console. 🎉
CC: @morenoh149
Proposed changes
Observable.prototype.forEach
returns aPromise
. This causes the original example code to throw aTypeError
whensubscription.dispose
is not found. Switching fromforEach
todo
solves this issue.dispose
is nowunsubscribe
.This PR will close #160.
Demo There is no error on the console. 🎉
CC: @morenoh149