Skip to content

Deduplicate result event emissions (#99) - #218

Merged
scottsfarley93 merged 3 commits into
version4from
deduplicate-result-event
Mar 19, 2019
Merged

scottsfarley93 merged 3 commits into
version4from
deduplicate-result-event

Conversation

@scottsfarley93

@scottsfarley93 scottsfarley93 commented Mar 18, 2019 •

Copy link
Copy Markdown

This PR addresses the bug reported in #99 by keeping a state variable indicating the last selected feature.

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • update CHANGELOG.md with changes under master heading before merging

\cc @katydecorah @yuletide

@scottsfarley93 scottsfarley93 added this to the v4.0.0 milestone Mar 18, 2019

@katydecorah katydecorah left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach makes sense! I left a small comment

Comment thread lib/index.js Resolved
@scottsfarley93
scottsfarley93 merged commit 1c44b72 into version4 Mar 19, 2019
@andrewharvey andrewharvey mentioned this pull request Mar 20, 2019
2 of 3 tasks
@andrewharvey

Copy link
Copy Markdown
Collaborator

I must admit, this is an ingenious workaround for the underlying bug in suggestions. 😉 Certainly an improvement over the status quo.

There is a corner case where you re-select the same result and the result event is skipped, but I think that's too minor and arguably shouldn't re-fire anyway, that it's okay.

@scottsfarley93 scottsfarley93 mentioned this pull request Mar 21, 2019
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants