You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When SubscriberFunction.next is executed without this, it will fail silently.
In the following code (CodeSandbox), only 1 and 3 is observed.
importObservablefrom"core-js/features/observable";constobserver=newObservable((observer)=>{const{ next }=observer;observer.next(1);// Will reach subscribernext(2);// Will not reach subscriber, and fail silentlyobserver.next(3);// Will reach subscriber});observer.subscribe({next: (value)=>console.log(value)});
In the console log:
1
3
I believe when calling next(2), it should be either:
Fail with exception
Succeed/observed (this is bound)
The text was updated successfully, but these errors were encountered:
Version:
[email protected]
When
SubscriberFunction.next
is executed withoutthis
, it will fail silently.In the following code (CodeSandbox), only
1
and3
is observed.In the console log:
I believe when calling
next(2)
, it should be either:this
is bound)The text was updated successfully, but these errors were encountered: