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

[2.x] Add some additional poll helpers #2074

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

grantholle
Copy link

This PR adds toggle and polling() functions to the poll object.

I think I need a little help with the React and Svelte side. It seems a little more intuitive that there's a polling reactive property that gets returned from the usePoll hooks.

stop: () => poll.stop(),
start: () => poll.start(),
}
return poll
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure why the reference gets broken here, but it's needed to keep the reactivity later down the line

@grantholle grantholle changed the title Add some additional poll helpers [2.x] Add some additional poll helpers Nov 2, 2024
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.

1 participant