[Location] watchPositionAsync in useEffect

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): all

Hey,

I’m wondering how one is supposed to use the Location watchPositionAsync in an useEffect block.
My problem with it is that those useEffect blocks to not support async/await syntax so as far as I see it there seems to be little I can do to actually receive the returned remove function to unsubscribe the watch.
How’s it intended to be used in a situation like that, or am I just missing something here?

Best regards,

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.