-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Set default debounce time in CableReady::Config #263
Conversation
✅ Deploy Preview for cableready ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@julianrubisch looks good to me! Could you add a test for it? I recently added #254 which should be super straightforward.
I wanted to, but it introduces a race condition which sometimes breaks updatable tests 😕 |
Could we resolve that with a similar helper method we added in StimulusReflex? |
I’ll give it a try! |
Splendid! 🙌 @hopsoft this also allows us to leave the default debounce time at 0.1 seconds |
|
||
# Specify a default debounce time for CableReady::Updatable callbacks | ||
# Doing so is a best practice to avoid heavy ActionCable traffic | ||
# | ||
# config.updatable_debounce_time = 0.1.seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
Enhancement
Description
Allows to set the default
updatable_debounce_time
in the CableReady config. This allows every application to set it to a desired valueChecklist