Skip to content

Commit

Permalink
revert useEffect deps change
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane98c committed Feb 15, 2024
1 parent d34970f commit 15279ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useControls = () => {
return () => {
map.off('move', updateControlsSync)
}
}, [])
}, [map])

return { center: center, zoom: zoom }
}

0 comments on commit 15279ec

Please sign in to comment.