Prevent overlapping requests in usePoll
#2628
abrar-blip
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible to add a built-in mechanism in the
usePollcomposable to avoid creating a new request while the previous one is still in progress?At the moment, I handle this manually with a flag inside the component, but it feels like something that could be part of the
PollOptionsconfiguration.Here’s my current workaround:
A native option (e.g.
preventOverlap: true) would make this pattern much cleaner.Beta Was this translation helpful? Give feedback.
All reactions