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

Preserve @Bindable's binding identity #56

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

stephencelis
Copy link
Member

SwiftUI's vanilla @Bindable seems to preserve the underlying identity of its derived bindings, so we should do the same by holding onto a private binding over time under the hood.

Fixes #55.

SwiftUI's vanilla `@Bindable` seems to preserve the underlying identity
of its derived bindings, so we should do the same by holding onto a
private binding over time under the hood.

Fixes #55.
@stephencelis stephencelis requested a review from mbrandonw April 4, 2024 22:47
@stephencelis stephencelis merged commit 520c458 into main Apr 4, 2024
2 checks passed
@stephencelis stephencelis deleted the fix-bindable-binding-identity branch April 4, 2024 22:57
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.

Perception Bindable bindings cause body re-evaluations
2 participants