use-position
use-position copied to clipboard
Callback function to run when the user location is changed?
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?
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
@usamamashkoor could you do it or not?