Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback function to run when the user location is changed? #14

Open
usamamashkoor opened this issue Jun 10, 2020 · 2 comments
Open

Callback function to run when the user location is changed? #14

usamamashkoor opened this issue Jun 10, 2020 · 2 comments

Comments

@usamamashkoor
Copy link

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?

@GabrielBB
Copy link

GabrielBB commented Sep 21, 2020

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

@behnammodi
Copy link
Contributor

@usamamashkoor could you do it or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants