This message was deleted.
# compose
s
This message was deleted.
m
Because you are reading the state :
Copy code
val read = counter
in scope depth 0 so it cause the whole composable lambda to be recomposed.
I mean the lambda that is passed to
depth 0
is reading the state, so the whole lambda will be recomposed on state changes.
You can try removing this line:
Copy code
val read = counter
and it should skip depth1 and depth2 and I believe even depth 3 should be skipped.
Can you send the example here.