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

Fix Poll fetchPoll action not being debounced. #13485

Merged
merged 2 commits into from
Apr 16, 2020

Conversation

rasjonell-zz
Copy link
Contributor

handleRefresh function in app/javascript/mastodon/components/poll.js was dispatching fetchPoll action, but since it was not debounced it was sending a request everytime a user clicked on refresh.

I've added refresh prop which is a debounced fetchPoll function.


This is my first PR on Mastodon, I looked at contributing guidelines but if I've done something incorrectly please mention it so I can fix it.

@Gargron Gargron merged commit ab8d7c0 into mastodon:master Apr 16, 2020
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