Skip to content

Comments

Optionally debounce updates#151

Merged
leastbad merged 13 commits intostimulusreflex:masterfrom
julianrubisch:optionally-debounce-updates
Sep 30, 2021
Merged

Optionally debounce updates#151
leastbad merged 13 commits intostimulusreflex:masterfrom
julianrubisch:optionally-debounce-updates

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