addLocationListener triggered multiple times instead of one
VishalMathimaran opened this issue · 3 comments
VishalMathimaran commented
Usage :-
this.locationListener = SystemSetting.addLocationListener(
async (locationEnabled) =>{
if(!locationEnabled){
console.log("Location is turned off in between");
await this.getLocationAccess();
}
}
);
The logs are printing multiple times...How to prevent this effect?
pradeepanCodetez commented
I also facing same issue, How to resolve this?
vishnu390 commented
is this issue Solved?
I also facing same issue, How to resolve this?
Asscher commented
I had the same issue, but i resolved it hacky with a debounce function... not ideal but it works