Circumvent compose not being called by reactive variable change #2434
-
|
Good evening! First of all, thanks for the great library 😊 I am surprised that, in a custom My use case is the following: I am building an application with multiple nested widgets. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The way to think of it is The documentation talking about compound widgets might be helpful here. |
Beta Was this translation helpful? Give feedback.
The way to think of it is
composebuilds the structure of your widget; you don't want to tear down and rebuild a structure every time. If you're using reactives the best thing to do with a compound widget that's build up withcomposeis to use the watch system and update the parts of the widget that require updating.The documentation talking about compound widgets might be helpful here.