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

useInterval with driftless #8

Open
paulmelnikow opened this issue Jul 4, 2019 · 2 comments
Open

useInterval with driftless #8

paulmelnikow opened this issue Jul 4, 2019 · 2 comments

Comments

@paulmelnikow
Copy link

Hi! Would you be interested in a PR to optionally pass custom setInterval and clearInterval functions? I'd like to use this with driftless for better precision over time.

@objectiveSee
Copy link

Sounds cool to me! As long as it works! Is there any performance loss?

@paulmelnikow
Copy link
Author

Driftless is surely a little less performant than native, though the developer can choose this tradeoff when more precision is important. In the case of use-interval, using something like driftless would be opt-in, so there is no performance loss unless a developer chooses it.

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

No branches or pull requests

2 participants