-
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
feat(operators): Use lift in the operators that don't currently use lift. #1941
Conversation
@@ -149,7 +148,7 @@ export function mergeStatic<T, R>(...observables: Array<ObservableInput<any> | S | |||
concurrent = <number>observables.pop(); | |||
} | |||
|
|||
if (observables.length === 1) { | |||
if (scheduler === null && observables.length === 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did this fix an unreported bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh weird, that must have slipped in when I branched from master. yes, it's a bug fix that I was tracking down earlier today but didn't get to finish writing a test for. I can try to remove it from this change set, or alternatively add the test I was going to write and push again :[
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a test for this
@@ -150,7 +150,6 @@ export {Subscriber} from './Subscriber'; | |||
export {AsyncSubject} from './AsyncSubject'; | |||
export {ReplaySubject} from './ReplaySubject'; | |||
export {BehaviorSubject} from './BehaviorSubject'; | |||
export {MulticastObservable} from './observable/MulticastObservable'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will require a BREAKING CHANGE note, if accepted. It's publicly available in all builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bummertown. I'll amend the commit message.
Edit: I think this is wrong, read my comment after this one Maybe I'm missing something but doesn't this break static operator usage, which leads me to believe we're not currently testing them like that 😱😱😱.
Did you have thoughts on the somewhat related issue of static methods not using lift? |
I totally missed that |
@jayphelps I'm also keen to update the static methods to use a creation/conversion method, but I wanted to get the instance methods out of the way first, as I imagine it'll be a bit before the static method is finalized. |
if (scheduler === null && observables.length === 1) { | ||
return <Observable<R>>observables[0]; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this another one that slipped in or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heh yep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a test for this
49f5a70
to
5866d53
Compare
needs rebase. |
5866d53
to
5b68773
Compare
@trxcllnt I forgot to remind you: this needs a BREAKING CHANGE added to the commit for the removal of |
…ift. BREAKING CHANGE: Removes MulticastObservable subclass in favor of a MulticastOperator.
5b68773
to
68af9ef
Compare
@jayphelps done |
LGTM, thanks dudebro! 👏 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
Use lift in the operators that don't currently use lift.
Related issue (if exists):
#1829