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
Control for useGeolocation() #2372
Labels
enhancement
New feature or request
Comments
This could be a solution:
|
9 tasks
antfu
pushed a commit
that referenced
this issue
Nov 8, 2022
Co-authored-by: egstartsev <egstartsev@ozon.ru> Co-authored-by: BenaXskope <78896684+BenaXskope@users.noreply.github.com> closes #2372
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clear and concise description of the problem
Once used
useGeolocation()
, it is not possible to stop (and continue) the geolocation update. The only way is unmounting the component that uses it.There are scenarios where you need to temporally pause the position update, or simply capture the current position by taking multiple positions until accuracy is as desired.
Suggested solution
Add
pause()
andresume()
functions to control thewatcher
.Alternative
Export
watcher
and leave user to control it.Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: