79654904

Date: 2025-06-05 16:58:34
Score: 0.5
Natty:
Report link

Your useEffect needs to react to the params change.

useEffect(() => {
    if (route.params?.lat && route.params?.lng) {
      navigateToCoords(route.params.lat, route.params.lng);
    }
}, [route.params]);

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: johnhaup