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

Fix second render on sheet dismissal #1595

Merged
merged 2 commits into from
Jan 12, 2025
Merged

Fix second render on sheet dismissal #1595

merged 2 commits into from
Jan 12, 2025

Conversation

Sjmarf
Copy link
Member

@Sjmarf Sjmarf commented Jan 11, 2025

Closes #1492
Closes #1593

Because the view body to which the .sheet modifier was attached accessed properties from NavigationModel, changing a NavigationModel property would cause the view body to be evaluated again. I've refactored it to avoid being dependent on NavigationModel.

@Sjmarf Sjmarf requested a review from a team as a code owner January 11, 2025 22:25
@Sjmarf Sjmarf requested review from EricBAndrews and removed request for a team January 11, 2025 22:25
@Sjmarf Sjmarf changed the title Fix Double Render on Sheet Dismissal Fix double render on sheet dismissal Jan 11, 2025
@Sjmarf Sjmarf changed the title Fix double render on sheet dismissal Fix second render on sheet dismissal Jan 11, 2025
Copy link
Member

@EricBAndrews EricBAndrews left a comment

Choose a reason for hiding this comment

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

LGTM! 🔥

Nice work on this one, that was a nasty little bug

@Sjmarf Sjmarf merged commit ac18da8 into dev Jan 12, 2025
2 checks passed
@Sjmarf Sjmarf deleted the sjmarf/sheet-fix-2 branch January 12, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants