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
…tion function (#2046)
Removed reliance on inherited `_subscribe` method from `Subject`. ReplaySubject has different behaviors during subscription for notifying new subscribers after a completion or error. After moving the `super._subscribe` call before the notification from saved `_events`, it was apparent that the inherited behavior from `Subject` was stopping the subscriber before it could be notified properly.
fixes#2044
RxJS version:
rxjs@5.0.0-rc.1
Code to reproduce:
Expected behavior:
Output: 1, 2, 3
Actual behavior:
Output: 1
Additional information:
This works properly in RxJS v4
It seems that the issue comes from this code: https://github.com/ReactiveX/rxjs/blob/master/src/ReplaySubject.ts#L40
Where we first call the subsrcibe handler with the previous values, before we actually subscribe him for
next
values.The text was updated successfully, but these errors were encountered: