nglauber
08/28/2023, 7:00 PMShahzad Ansari
08/28/2023, 7:07 PMdewildte
08/28/2023, 7:20 PMdewildte
08/28/2023, 7:20 PMnglauber
08/28/2023, 7:27 PMdewildte
08/28/2023, 7:30 PMdewildte
08/28/2023, 7:32 PMdewildte
08/28/2023, 7:32 PMStylianos Gakis
08/28/2023, 8:50 PMshikasd
08/28/2023, 9:38 PMnglauber
08/28/2023, 9:47 PMdewildte
08/28/2023, 9:52 PMnglauber
08/28/2023, 9:56 PMNode
object which can contain children).
Something like:
ServerUi(node=root)
inside of the ServerUi
I'm checking...
when (node.tag) {
"text" -> // call a Text composable
"column" -> // call a Column
"button" -> // call a Button
// etc..
}
dewildte
08/28/2023, 9:59 PMnglauber
08/28/2023, 10:00 PMdewildte
08/28/2023, 10:00 PMdewildte
08/28/2023, 10:01 PMnglauber
08/28/2023, 10:03 PMServerUi
composable, what happens is that skip counter of the other elements increasedewildte
08/28/2023, 10:13 PMdewildte
08/28/2023, 10:15 PMdewildte
08/28/2023, 10:17 PMshikasd
08/29/2023, 5:05 AMnglauber
08/29/2023, 6:07 PMnglauber
08/30/2023, 8:10 PMdewildte
08/30/2023, 8:10 PMnglauber
08/30/2023, 8:16 PMText
server element was considered a leaf of my tree. Then I was trying to update the state using the ID of the leaf, where I should use the ID of the parent.
• Another issue was that I'm using a data class
in the state, and a var
field was not being considered in the equals
function, so Compose was not considering the state change and the recomposition was not working...
There were a few more things... But to summarize, it was all my mistake 😄