Skip to content

Replace custom debounce function with lodash.debounce#250

Merged
JamesBrill merged 1 commit intomasterfrom
lodash
Apr 25, 2025
Merged

Replace custom debounce function with lodash.debounce#250
JamesBrill merged 1 commit intomasterfrom
lodash

Conversation

@smorimoto
Copy link
Collaborator

I picked the irrelevant change from #247.

Signed-off-by: Sora Morimoto <sora@morimoto.io>
@smorimoto smorimoto added the enhancement New feature or request label Apr 12, 2025
@smorimoto smorimoto requested review from JamesBrill and Copilot April 12, 2025 04:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

src/RecognitionManager.js:28

  • Verify that using { leading: true } in lodash.debounce provides equivalent behavior to the previous immediate flag in the custom debounce implementation.
this.updateFinalTranscript = debounce(this.updateFinalTranscript, 250, {

@smorimoto
Copy link
Collaborator Author

@JamesBrill Gentle ping!

@JamesBrill JamesBrill merged commit 46bbba9 into master Apr 25, 2025
4 checks passed
@smorimoto smorimoto deleted the lodash branch April 25, 2025 16:03
@smorimoto smorimoto mentioned this pull request Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants