2Up1Down

Results 3 issues of 2Up1Down

When using the useGeolocation hook it renders indefinitely when using the optional callback function. See the example below: [https://codesandbox.io/s/nextjs-geolocation-b3defn?file=/pages/react-hook-geolocation.js](https://codesandbox.io/s/nextjs-geolocation-b3defn?file=/pages/react-hook-geolocation.js) ![image](https://user-images.githubusercontent.com/39255639/201482204-dd314221-62dc-43a2-aa54-aa844ef45c12.png) When the optional callback function is set to null its...

Return a loading state while the data is being read by the sensor. Something similar is done in the useGeolocation hook from the react-use collection. [https://github.com/streamich/react-use/blob/master/docs/useGeolocation.md](https://github.com/streamich/react-use/blob/master/docs/useGeolocation.md)

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