Propagate state down the widget tree #1023
JohnnyRainbow81
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using stacked for a good while now, but honestly I did not achieve clarity on how to let children, grand-children, grand-grand-children, (etc) know about when the state of their (grand-)parent changes - without rebuilding the whole widget tree ?
Of course, the (grand-)parent could just rebuild itself, but that would be wasteful.
How do I achieve with stacked that only the children rebuild when the parent updates a value where only a child is interested in?
This is really basic I guess, but I could not answer this to myself clearly.
Is there some kind of InheritedWidget / Provider / ... functionality where state is propagated down the tree to only the interested children and let those rebuild only?
Beta Was this translation helpful? Give feedback.
All reactions