Skip to content

Commit

Permalink
Minor wording change in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bence-toth committed Aug 19, 2022
1 parent 74fd3a1 commit eb45f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const geolocation = useGeolocation({}, onGeolocationUpdate);

### Waiting for the user to opt in

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.
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.

If you would like to bail out of this hook immediately asking for geolocation access from the user when the component mounts, you can pass a third `isEnabled` parameter to the hook with the value `false`, and set it to `true` later once the reason for asking for geolocation is indicated to the user.

Expand Down

0 comments on commit eb45f87

Please sign in to comment.