Skip to content

distinctUntilKeyChanged throws exception when one of the values on the stream is null/undefined. #3576

@mdarefull

Description

@mdarefull

RxJS version:
5.5.2
Code to reproduce:
Apply it to a stream that produces null/undefined values.

Expected behavior:
If both values are undefined or null both can be considered the same. We should just perform the key inspection if both values are defined.

Actual behavior:
It will throw an exception about trying to access a property on undefined. This essentially makes the operator useless if there can be null/undefined values on the stream.

Additional information:
Let me know if you need to discuss the issue further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions