Open Ehsan5g opened 11 months ago
I used Geolocation.getCurrentPosition , but my state is not updated
code :
Geolocation.getCurrentPosition( (position)=> { console.log(position); setLocation(position); }, undefined, { maximumAge: 0, timeout: 5000, enableHighAccuracy: true, }, );
Facing same issue
Environment
I used Geolocation.getCurrentPosition , but my state is not updated
code :
Platforms
Versions
Description
Reproducible Demo