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
For example, if you have a web socket, and you get a close event, I'm proposing that we just complete it for the user. This of course means identifying different things that are like this and handling them appropriately.
AbortSignal's abort is another one I can think of off the top of my head.
Alternatively, users will just have to add a take(1) to them.
But this does illustrate another advantage to Observable over addEventListener. It also causes the subscription to teardown and clean up, which can cascade through flatMap and other composition.
The text was updated successfully, but these errors were encountered:
For example, if you have a web socket, and you get a
close
event, I'm proposing that we justcomplete
it for the user. This of course means identifying different things that are like this and handling them appropriately.AbortSignal
'sabort
is another one I can think of off the top of my head.Alternatively, users will just have to add a
take(1)
to them.But this does illustrate another advantage to
Observable
overaddEventListener
. It also causes the subscription to teardown and clean up, which can cascade throughflatMap
and other composition.The text was updated successfully, but these errors were encountered: