-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split multicast, publish, et al into static functions and operators? #3833
Comments
@ReactiveX/rxjs-core |
Would this also involve deprecating the If |
Hah, well I just spend a good evening (no really, it was pretty educational) getting as far as drafting pretty much this exact issue, after banging my head against multicast weirdness today. This probably isn't a part of the API that many people use that often (I'm guess from experience, and the amount of activity on this issue), but when you do it is fairly gnarly and confusing. I can see there are some draft PRs, which I'll have a glance at soon - but it doesn't look like the plan is to get these in for v7? In the absence of that, there are a couple of things that could hopefully be fixed without larger/breaking changes:
Assuming the proposed change wont be in v7 I'm happy to make a PR for the above? |
Closed by #5634 AFAICT. |
Given that composition of
ConnectableObservable
isn't something TypeScript is capable of, and given thatConnectableObservable
is just a little different, it's probably worth discussing having the functions that returnConnectableObservable
be static, and their projected counterparts stay as operators.This is likely something we could not do until the next major version.
Problems
ConnectableObservable
doesn't compose throughpipe
very well in typed languages.connect
them at times.publish
andpublish(fn)
, for example.Static Functions
Operator Functions
(bike shed names later)
Risks
Benefits
Other things
I don't think all variations shown above actually exist. We can probably get away with just the
multicastWith
andpublishWith
variants of the operators.The text was updated successfully, but these errors were encountered: