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

Store trait sequences as tuples, not lists #620

Merged
merged 6 commits into from
Sep 3, 2024

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Sep 3, 2024

Ref #592 (comment)

This should be easier to follow for users. Mutating a list trait doesn't propagate any updates to the frontend. Rather, you must set a new object. Storing tuple traits instead of list traits means that it's impossible for the user to accidentally not sync those updates to the frontend.

@kylebarron kylebarron changed the title Store sequences of traits as tuples, not lists Store trait sequences as tuples, not lists Sep 3, 2024
@kylebarron kylebarron enabled auto-merge (squash) September 3, 2024 16:47
@kylebarron kylebarron merged commit e67fb8a into main Sep 3, 2024
5 checks passed
@kylebarron kylebarron deleted the kyle/store-tuples-not-list branch September 3, 2024 17:24
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.

1 participant