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

Implement debounce configuration #70

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

albertchae
Copy link
Collaborator

Summary

Add debounce configuration, Follows similar pattern to recently added throttle

The integration test timing could lead to flakes but I tried to leave
a generous buffer to minimize this without making the test too long.

I wanted to add a second integration test for the debounce timeout,
but configuring debounce with a timeout seems to result in the
function never getting executed on the latest dev server (0.29.6). I
verified this is true with the JS SDK as well.

Documentation for debounce mostly copied from JS SDK

Checklist

  • Update documentation
  • Added unit/integration tests

Related

Copy link

linear bot commented Sep 3, 2024

@albertchae albertchae force-pushed the albert/inn-3333-add-debounce-configuration branch from b1d9daf to 23b0d6a Compare September 3, 2024 11:24
Base automatically changed from riadh/inn-2815-send-multiple-events to main September 3, 2024 14:30
@albertchae albertchae marked this pull request as ready for review September 6, 2024 06:33
Follows similar pattern to recently added `throttle`

The integration test timing could lead to flakes but I tried to leave
a generous buffer to minimize this without making the test too long.

I wanted to add a second integration test for the debounce `timeout`,
but configuring debounce with a `timeout` seems to result in the
function never getting executed on the latest dev server (0.29.6). I
verified this is true with the JS SDK as well.
@albertchae albertchae force-pushed the albert/inn-3333-add-debounce-configuration branch from 23b0d6a to 8396fb9 Compare September 6, 2024 13:14
@albertchae albertchae merged commit bf3920b into main Sep 6, 2024
9 checks passed
@albertchae albertchae deleted the albert/inn-3333-add-debounce-configuration branch September 6, 2024 13:32
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