-
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
.distinctUntilChanged does not throw when comparer func is missing args #2294
Comments
@kwonoj that issue is exactly the same problem. I tend to agree with the stance taken by the team. My bigger concern is how to upgrade from RxJs4 towards RxJs5 without running into these kind of hard to trace bugs. It is mentioned in the Luckily my testsuite is extensive for the Rx part but still the migration took a long time. This might not be the case for everyone 😢 and that combined with these hard to track issues will most likely negatively influence user adoption. |
I'll use #2153 as umbrella issue to discuss runtime validations. |
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. |
RxJS version:
5.0.3
Code to reproduce:
Expected behavior:
This code should throw an error that the comparer function given does not equal the amount of parameters required.
Actual behavior:
Code executes with strange
distinctUntilChanged
behaviour.Additional information:
This is more of a migration issue; When migrating from RxJS4 from usage of
distinctUntilChanged
with a key selector you end up with the above syntax. It does not return any error that you might have done something wrong but instead of the expected distinction of elements it only emits the first value of the complete stream because the keyselector function is passed as comparer function and it actually does not compare anything.The text was updated successfully, but these errors were encountered: