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 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());
|
||||||
|
|||||||
Reference in New Issue
Block a user