Feature proposal: Waiting for user to opt in on useGeolocation
Is your feature request related to a problem? Please describe. The best practice is to only try to geolocate the user on the userβs request, or at least when it is indicated to the user why the browser is asking for their location. In my case the indication is the visual queue of a map that is loading in the background. Unfortunately it asks the user for the geolocation before the loading of the map is finished.
Describe the solution you'd like It should be possible to delay the request for the geolocation somehow. So that the user can be asked for the geolocation when there is visual queue for it or when the user pressed a button that is related to his position.
Describe alternatives you've considered This is something that is already implemented on the following repo: https://github.com/bence-toth/react-hook-geolocation
@2Up1Down please assign it to me