Rebase changes

This commit is contained in:
Timothy Armes
2024-10-01 09:28:37 +02:00
parent 8a6502d398
commit ac77459afb
+1 -2
View File
@@ -34,10 +34,9 @@ export const MapEvents = ({
const setMapBounds = useSetAtom(mapBoundsAtom); const setMapBounds = useSetAtom(mapBoundsAtom);
const [isPending, startTransition] = useTransition(); const [isPending, startTransition] = useTransition();
const map = useMapEvent("moveend", () => { useMapEvent("moveend", () => {
if (!updateMapBoundsAtom) return; if (!updateMapBoundsAtom) return;
useMapEvent("moveend", () => {
// Set the map bounds atoms when the user pans/zooms // Set the map bounds atoms when the user pans/zooms
startTransition(() => { startTransition(() => {
setMapBounds(map.getBounds()); setMapBounds(map.getBounds());