tomchentw / react-google-maps

React.js Google Maps integration component
https://tomchentw.github.io/react-google-maps/
MIT License
4.63k stars 936 forks source link

More than 700 re renderings #1097

Open premshetty opened 1 year ago

premshetty commented 1 year ago

FullScreen button creates more than 700 re-renders per click

here is the video https://www.awesomescreenshot.com/video/12779474?key=39f6b743210d3e57e0d6f01c55413f01

when clicking on the fullscreen button it creates this much of renders

 const fulscreenMapbtn = document.getElementsByClassName('gm-fullscreen-control')
    fulscreenMapbtn[0]?.addEventListener("click", () => {
        return console.log('clicked ')
    });
bhavyag54 commented 1 year ago

assign this to me