-
Notifications
You must be signed in to change notification settings - Fork 113
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
Can this support states of child components? #29
Comments
Nevermind this was explained in the blog post! |
Actually the more I read into it it seems a global state is required, the My concern is that for components like buttons we would now need to track their state globally. For example a button that tracks when it's hovered may have internal state to change it's background color. |
If that's the case we could an 'IntoView' trait and have a 'Button' be in the global state so that we can can call 'into_view' on it |
Both views and widgets can have internal state. There's also the |
For example, if a button has a boolean state of
pressed
and I have a lot of them, do they have to become part of the global state now?If so I think some way of combining the data tree with the widget tree could make this more flexible
The text was updated successfully, but these errors were encountered: