tomchentw / react-google-maps

React.js Google Maps integration component

Home Page:https://tomchentw.github.io/react-google-maps/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

More than 700 re renderings

premshetty opened this issue · comments

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 ')
    });

assign this to me