Skip to content
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

refactor: replace debounce function #18503

Merged
merged 5 commits into from Aug 10, 2023

Conversation

ramonlsouza
Copy link
Member

What does this PR do?

Replaces radash debounce with a native function.

Motivation

The existing debounce implementation (from radash) lacks support for the leading and trailing modifiers. As a result, certain inconsistencies were found in its behavior (thanks @prlanzarin!) compared to the previously used library (lodash).

@ramonlsouza ramonlsouza added this to the Release 2.7 milestone Aug 9, 2023
@@ -0,0 +1,43 @@
export function debounce(func, delay, options = {}) {
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a few lines of explanation for the function (including that options is comprised of leading, trailing etc)? I.e. lodash, radash, missing options...

@sonarcloud
Copy link

sonarcloud bot commented Aug 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@antobinary antobinary merged commit 5a878c6 into bigbluebutton:v2.7.x-release Aug 10, 2023
15 of 16 checks passed
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.

None yet

2 participants