react-use icon indicating copy to clipboard operation
react-use copied to clipboard

Feature proposal: Waiting for user to opt in on useGeolocation

Open 2Up1Down opened this issue 3 years ago β€’ 1 comments

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 avatar Nov 08 '22 19:11 2Up1Down

@2Up1Down please assign it to me

sonali131 avatar Aug 07 '25 15:08 sonali131