Slackbot
03/09/2026, 11:12 AMmin
03/09/2026, 11:13 AMMohammad Fallah
03/09/2026, 11:18 AMval read = counter
in scope depth 0 so it cause the whole composable lambda to be recomposed.min
03/09/2026, 11:21 AMSCOPE com.example.reactivity D depth 0
SCOPE com.example.reactivity D depth 1
SCOPE com.example.reactivity D depth 2
SCOPE com.example.reactivity D depth 3
SCOPE com.example.reactivity D depth 4
SCOPE com.example.reactivity D depth 1
SCOPE com.example.reactivity D depth 2
SCOPE com.example.reactivity D depth 3
SCOPE com.example.reactivity D depth 4
What do you mean? depth 0 is skipped for some reasonMohammad Fallah
03/09/2026, 11:21 AMdepth 0 is reading the state, so the whole lambda will be recomposed on state changes.Mohammad Fallah
03/09/2026, 11:22 AMval read = counter
and it should skip depth1 and depth2 and I believe even depth 3 should be skipped.min
03/09/2026, 11:56 AMmin
03/09/2026, 11:57 AMmin
03/09/2026, 12:02 PMmin
03/09/2026, 12:10 PMMohammad Fallah
03/09/2026, 12:15 PM