react-google-maps
react-google-maps copied to clipboard
refactor(AdvancedMarker): improve stability of position and event handlers
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.