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

Callback function to run when the user location is changed?

Open usamamashkoor opened this issue 5 years ago • 2 comments

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 with this package.

Can you please let me know how I can detect the location change in your package?

usamamashkoor avatar Jun 10 '20 20:06 usamamashkoor

Isn't that what the useEffect hook is for? I think if you set watch to true the hook will update its return values and useEffect will be triggered again

GabrielBB avatar Sep 21 '20 07:09 GabrielBB

@usamamashkoor could you do it or not?

behnammodi avatar Sep 29 '21 14:09 behnammodi