2Up1Down
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)  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...