Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy elementId in Clay__AddHashMapItem() in case underlying stringId has changed #239

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

monodop
Copy link
Contributor

@monodop monodop commented Jan 29, 2025

If the string reference passed to an element id has changed between frames (e.g. moved), then the reference stored in the hash item can become stale. This change makes sure that we're always using the latest value.

…has moved

If the string reference passed to an element id has changed between frames (e.g. moved), then the reference stored in the hash item can become stale. This change makes sure that we're always using the latest value.
fix indent
@nicbarker
Copy link
Owner

Great catch! Thanks 🎉

@nicbarker nicbarker merged commit efad3de into nicbarker:main Jan 29, 2025
3 checks passed
@monodop monodop deleted the patch-2 branch January 29, 2025 21:22
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.

2 participants