tamotam-com / tamotam-app

(🧪 Early Beta) 🤙 TamoTam. HangOut. Offline.
https://tamotam.com
35 stars 4 forks source link

User's events are sometimes added automatically to Cloud Firestore for Firebase #42

Open danieldanielecki opened 2 years ago

danieldanielecki commented 2 years ago

Try to debug it, it might be related to this part of the code:

const [selectedLocation, setSelectedLocation] = useState<Coordinate>({
  latitude: 0,
  longitude: 0,
});

or

let markerCoordinates: Coordinate = { latitude: 0, longitude: 0 };

but it's a bit strange because addEventHandler is fired after <Button />'s onPress(...).