945a11bb644de0aafa749c65e2cdcfc487d99c92
- Updated the first useEffect to fetch POI data from the API and store it in state. - Added poiData as a dependency to the second useEffect to ensure it runs only after poiData is fetched. - Ensured that the second useEffect waits for poiData to be populated before processing locations and adding markers to the map. This change guarantees that the markers are only processed and displayed once the necessary POI data is available.
Description
No description provided
Languages
JavaScript
50.4%
HTML
42%
CSS
6.7%
PowerShell
0.9%