use-position icon indicating copy to clipboard operation
use-position copied to clipboard

🌍 React hook usePosition() for fetching and following a browser geolocation

Results 9 use-position issues
Sort by recently updated
recently updated
newest added

I'm seeing an this `Violation` increasing continuously on the page `[Violation] Only request geolocation information in response to a user gesture.` ![Screen Shot 2020-01-20 at 2 02 43 PM](https://user-images.githubusercontent.com/2718382/72751454-ad2c2380-3b8d-11ea-84be-5d5678edaa35.png) This...

I am using this in reactJS and I am just trying to get the value to log but it keeps returnng undefined despite the fact I am using the variable...

Hi, I'm trying to use your library in safari and it's not working. MacOs = Catalina Version 10.15.5 Both latitude and longitude returns `undefined`. Even error returns `undefined` ``` const...

Hi, I want to send data of the location change to the server-side using node js and socket.io but I can not seem to find a way to do this...

Hi, I want to update latitude and longitude as browser detects geolocation change. So I just followed what document says, but it doesn't seem to work. It always returns the...

Avoid re-rendering of components that use the hook.

I am creating a pwa so can i get location if pwa app is killed or not and Whenever the location will get change will it work?

$ npm i use-position --save npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR!...

Allow geolocation to be skipped with an optional parameter. This is useful for cases where lat/lon can optionally be retrieved by other means (e.g., geocoding) and there is no need...