question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature similar to `distinct` in RxJs

See original GitHub issue

Is your feature request related to a problem? Please describe. I need have my Evt event emitter be idempotent since the source can emit duplicate events.

Describe the solution you’d like I’d love a pipe-like operator that can filter for events that have already been emitted.

Describe alternatives you’ve considered RxJs has a distinct operator that does exactly what I need. Since I’m already using Evt and I like the library, I’d like to continue using it if possible.

Additional context

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rhlsthrmcommented, Jul 20, 2021

Will test this out today!

1reaction
garronejcommented, Jul 20, 2021

Thank you! 😊 Yes it’s released already, both in v1 and in v2 (beta).

Read more comments on GitHub >

github_iconTop Results From Across the Web

distinct - RxJS
distinct link​​ Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.
Read more >
distinctUntilChanged - Learn RxJS
Only emit when the current value is different than the last. distinctUntilChanged uses === comparison by default, object references must match!
Read more >
Rxjs Filtering Operators — Distinctness | by John Au-Yeung
The distinct operator emits the items from the source Observable that are distinct in comparison to previous items from the source. It takes...
Read more >
RxJS distinct() Filtering Operator - Javatpoint
RxJS distinct () operator is a filtering operator that returns all the values from the source Observable that are distinct when compared with...
Read more >
How to apply distinct() to array of objects RxJS? - Stack Overflow
The distinct operator works across multiple events. For each event, it filters out any duplicates (with the definition of duplicate customizable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found