mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-22 20:16:57 +00:00
Rebase changes
This commit is contained in:
@@ -34,10 +34,9 @@ export const MapEvents = ({
|
||||
const setMapBounds = useSetAtom(mapBoundsAtom);
|
||||
const [isPending, startTransition] = useTransition();
|
||||
|
||||
const map = useMapEvent("moveend", () => {
|
||||
useMapEvent("moveend", () => {
|
||||
if (!updateMapBoundsAtom) return;
|
||||
|
||||
useMapEvent("moveend", () => {
|
||||
// Set the map bounds atoms when the user pans/zooms
|
||||
startTransition(() => {
|
||||
setMapBounds(map.getBounds());
|
||||
|
||||
Reference in New Issue
Block a user