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

Don't store modifiers in an adjacent List #2047

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

swankjesse
Copy link
Collaborator

@swankjesse swankjesse commented May 21, 2024

There's a 'context' field in Node that's a better fit.

The problem with storing modifiers in an adjacent list is that Yoga occasionally will create a mutable copy of the layout nodes to do some layout calculation, and this mutable copy may drift from our true copy with respect to child counts.


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

There's a 'context' field in Node that's a better fit.

The problem with storing modifiers in an adjacent list is that
Yoga occasionally will create a mutable copy of the layout nodes
to do some layout calculation, and this mutable copy may drift
from our true copy with respect to child counts.
@underscoretang
Copy link
Collaborator

underscoretang commented May 21, 2024

sneaky yoga, starting to feel more like pilates

Copy link
Member

@colinrtwhite colinrtwhite left a comment

Choose a reason for hiding this comment

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

This looks good to me 👍

@swankjesse swankjesse enabled auto-merge (squash) May 21, 2024 18:00
@swankjesse swankjesse merged commit a891de3 into trunk May 21, 2024
10 checks passed
@swankjesse swankjesse deleted the jwilson.0521.clone branch May 21, 2024 18:14
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.

4 participants