enum State
#2778
Replies: 1 comment 1 reply
-
Hey @lam7, thanks for bringing this up, and thanks for the small repro example! I think you have uncovered a real issue here, and luckily I think we can fix it pretty easily. We'll get back to you soon. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to write code that uses enum instead of struct for State.
Here is a sample code.
If I tap the One button and then the Two button with this code, the text will not update from One to Two.
However, when the Reset button is tapped, the text is updated from One to noneSelected.
I rewrote the same code with an implementation using ViewStore and everything worked fine.
Is it bad to use enum for State in an implementation using the new ObservableState macro?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions