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
Expected behavior:
shareReplay(1) subjects should not be torn down when refCount becomes 0.
Actual behavior:
When refCount becomes 0, the underlying subject is torn down, causing the observable to be re-evaluated when the next subscription is registered.
Additional information:
The text was updated successfully, but these errors were encountered:
When the refCount hits zero, and the source has neither completed nor errored, `shareReplay` will now properly stay subscribed to the source, and retain the internal ReplaySubject that is caching values
fixes#2908
RxJS version:
v5.4.2
Code to reproduce:
https://plnkr.co/edit/ZInWDJSuzfKEvtEOUBir?p=preview
Uncomment the call to subscribe to reproduce the issue
Expected behavior:
shareReplay(1) subjects should not be torn down when refCount becomes 0.
Actual behavior:
When refCount becomes 0, the underlying subject is torn down, causing the observable to be re-evaluated when the next subscription is registered.
Additional information:
The text was updated successfully, but these errors were encountered: