react-google-maps icon indicating copy to clipboard operation
react-google-maps copied to clipboard

refactor(AdvancedMarker): improve stability of position and event handlers

Open rodrigofariow opened this issue 3 months ago • 0 comments

Hi there 👋 For a library like this one that relies heavily on correct and stable rendering of useEffect and useMemo dependencies, I suggest we add a useEffectEvent ponyfill, to fill that gap. This ponyfill is proven to work and the new version of eslint react-hooks plugin, that is already installed, supports verifying and using these events.

I took the freedom to add it in key places like useMapsEventListener and useDomEventListener.

rodrigofariow avatar Nov 05 '25 09:11 rodrigofariow