Replies: 1 comment
-
After a couple of hours of reading other questions, I got it working. All states need to be contained within each component to avoid re-rendering, meaning that if the marker needs to change location, you need to add all state-related behavior within that component. The same goes for any element that triggers the dom. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to move a marker but the map is always render when the marker moves.
I'm using
mapRef.current.addListener
andmapRef.current.panTo
to change the position.@JustFly1984 , do I need to use
onCenterChanged
fromGoogleMap
component to avoid rendering the map each time the marker moves?Beta Was this translation helpful? Give feedback.
All reactions