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 frame values not references #539

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Store frame values not references #539

merged 1 commit into from
Feb 10, 2025

Conversation

wagoodman
Copy link
Contributor

Before this fix the first UI update iteration would store a reference to a frame.Frame and subsequent iterations would store copies -- so type assertions after the first iteration would fail. When working with bubbletea the models passed during execution should always be copies and not references to ensure that an instances state is updated within the proper point in the UI lifecycle (during Update()) and nowhere else.

Fixes #529

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman enabled auto-merge (squash) February 10, 2025 16:53
@wagoodman wagoodman merged commit 026e6f9 into main Feb 10, 2025
7 checks passed
@wagoodman wagoodman deleted the fix-ui-panic branch February 10, 2025 16:55
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.

Seeing a panic on sign-and-notarize
2 participants