Making StateMixin variables reactive #1320
Unanswered
Gabriel-Azevedo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody!
I've been liking Getx so far but one thing that still bothers me (coming from native development) is the code organization inside a controller.
You could end up with dozens of lines of reactive code mixed with regular variables and if you throw some sort of state control, you have that too.
StateMixin is great to fix this, I could have a single
ViewState
class with all the properties my view needs and update them as needed. The problem is that I lose the reactiveness of the individual variables, so the entire screen gets updated even if just a single variable changes.I've been trying to find a solution for a few days now but no luck so far.
Have you faced a similar problem? Any idea what could work in this situation?
Here's the proposed behavior:
Beta Was this translation helpful? Give feedback.
All reactions