We must be careful with geolocation watching not to have it on all the time.
Specifically if many different components are calling it simultaneously, we must make sure that it stops when they've all been unmounting.
A counter approach to keep track of how many mount/unmount seems to be more robust.
We must be careful with geolocation watching not to have it on all the time. Specifically if many different components are calling it simultaneously, we must make sure that it stops when they've all been unmounting. A counter approach to keep track of how many mount/unmount seems to be more robust.