79539922

Date: 2025-03-27 20:09:02
Score: 1
Natty:
Report link

Solved, the main issue was the [selectedCoords, setSelectedCoords] = useState({ lat: 18.220833, lng: -66.590149 }); For some reason, the InfoWindow kept using the initial state while the AdvancedMarker updated correctly. Changing the initial state to null fixed the issue:

const [selectedCoords, setSelectedCoords] = useState<any>(null);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dp258