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

Minimise quit state checking in help example #1252

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ChausseBenjamin
Copy link

@ChausseBenjamin ChausseBenjamin commented Nov 23, 2024

Currently, every time the view is rendered, the app checks for the
quitting boolean which seems unnecessary. This approach simply returns
a unique view for quitting which removes the need for a quitting boolean
variable an the if quitting {...} check currently run everytime
model.View() gets called.

Currently, everytime the view is rendered, the app checks for the
quitting boolean which seems unnecessary. This approach simply returns
a unique view for quitting which removes the need for a `quitting` boolean
variable an the `if quitting {...}` check currently run  on every
`View()`.
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