add onUpdateBounds to callback deps

This commit is contained in:
Winzlieb - 2022-03-11 12:01:39 +01:00
parent a9f6bfadeb
commit 5a8aa98b9a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const BoundsChangeListener = ({onBoundsChange}: {onBoundsChange?: (bounds: L.Lat
map.getBounds()
)
},
[map],
[map, onBoundsChange],
);
useEffect(() => {