Skip to content

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

Merged
usefulthink merged 10 commits intovisgl:mainfrom
rodrigofariow:improve-stability-position-and-events
Feb 5, 2026
Merged

refactor(AdvancedMarker): improve stability of position and event handlers#866
usefulthink merged 10 commits intovisgl:mainfrom
rodrigofariow:improve-stability-position-and-events

Conversation

@rodrigofariow
Copy link
Contributor

@rodrigofariow rodrigofariow commented Nov 5, 2025

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.

Copy link
Collaborator

@usefulthink usefulthink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time, and apologies for me taking so long to review and respond to it. If you like, I can take care of the changes myself so we can get this into the 1.8.0 release.

@rodrigofariow
Copy link
Contributor Author

Hi @usefulthink !
Thanks for getting back to me.

Feel free to make whatever changes to the code you see fit!

Cheers

@usefulthink usefulthink merged commit e44933e into visgl:main Feb 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants