react-hook-geolocation icon indicating copy to clipboard operation
react-hook-geolocation copied to clipboard

A React hook to access data from the Geolocation API

Results 4 react-hook-geolocation issues
Sort by recently updated
recently updated
newest added

Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...

dependencies

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)