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

Remove @State and @Binding where not needed #50

Merged
merged 5 commits into from
Jun 8, 2023

Conversation

rhysm94
Copy link
Contributor

@rhysm94 rhysm94 commented Jun 8, 2023

As discussed on Discord, I've removed a bunch of instances where @State or @Binding was used, but was not necessary.

@IsaacMarovitz IsaacMarovitz added the fix Fix for an existing feature label Jun 8, 2023
Copy link
Member

@IsaacMarovitz IsaacMarovitz left a comment

Choose a reason for hiding this comment

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

lgtm

@IsaacMarovitz IsaacMarovitz merged commit 20e3817 into Whisky-App:main Jun 8, 2023
1 check passed
@rhysm94 rhysm94 deleted the quick-fixes branch June 8, 2023 21:44
ohaiibuzzle pushed a commit to ohaiibuzzle/Whisky that referenced this pull request Jun 20, 2023
* BottleRenameView doesn't need a Binding

* BottleListEntry doesn't need a Binding

* ProgramsView and ProgramItemView doesn't need a Binding
ProgramItemView also doesn't use the Bottle it's passed
(In fact, very little that uses class types needs Bindings)

* Removes an instance of @State where it's not needed, and removes an import that's not needed

* Removes some more instances where `@State` is used and not needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants