add onUpdateBounds to callback deps
This commit is contained in:
parent
a9f6bfadeb
commit
5a8aa98b9a
|
@ -25,7 +25,7 @@ const BoundsChangeListener = ({onBoundsChange}: {onBoundsChange?: (bounds: L.Lat
|
||||||
map.getBounds()
|
map.getBounds()
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
[map],
|
[map, onBoundsChange],
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue