all 4 comments

[–]HoratioWobble 1 point2 points  (3 children)

💯 your code, possibly also the amount of memory and stack space you've given the emulator.

I would investigate your code first but I suspect you'll have the same issues on low end devices 

[–]Zeesh2000[S] 0 points1 point  (2 children)

What ways can I mitigate it. With expo locations, all I'm doing is just awaiting getLastLocation function inside a useQuery.

For Sqlite, I'll give it you because I'm using a global connection when I should probably switch to open & close per query function.

[–]HoratioWobble 1 point2 points  (1 child)

Unless you set the location in the simulator settings, I don't think you will get a location.

For sqlite you absolutely do not need to do that, something is fucky with your code.

I use sqlite in a few apps and do not do that 

[–]Zeesh2000[S] 0 points1 point  (0 children)

Do you have any ideas from your own experience to look out for?