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 an Observable completes on a shareLatest, all the observers are notified, they all unsubscribe, and the state gets reset for the next observer to subscribe.
When using bind this behaviour changes: it doesn't propagate the completion of the source stream, so all the existing observables will keep an active subscription to the shared stream. This leaves a question open: "what happens if another observer then subscribes on it?" and the answer is "it will not resubscribe to the source, it will just receive the latest value that was emitted".
Then "When will it reset its state so that it resubscribes to the source?" -> "as soon as there are no subscribers to the Observable".
https://github.com/re-rxjs/react-rxjs.org/blame/master/docs/api/core/bind.md#L32
I'm having trouble seeing how these statements relate.
The text was updated successfully, but these errors were encountered: