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

Optionally debounce updates #151

Merged

Conversation

julianrubisch
Copy link
Contributor

This adds a debounce option to updates_for (or, the <updates-for> element)

so you can do

<%= updates_for(user, debounce: 100) do %>
...
<% end %>

in case you are updating a lot of records and thus are requesting a lot of fetches. If you omit the option, it just works as normal

@leastbad leastbad mentioned this pull request Sep 30, 2021
@leastbad leastbad merged commit b11d14e into stimulusreflex:master Sep 30, 2021
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.

2 participants