react-hook-geolocation
react-hook-geolocation copied to clipboard
A React hook to access data from the Geolocation API
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...
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)
Fixes #58. Fixes #59.